paper-with-me

홈 › Papers

Can Neural Networks Understand Programs like Humans?

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Program understanding is a fundamental task in program language processing. Despite the success, existing works fail to take human minds as reference in understanding programs. In this paper, we incorporate human minds and propose the PGNN-EK model that consists of two main components. On the one hand, inspired by the “divide-and-conquer” reading behaviours of humans, we present a partitioning-based graph neural network model PGNN on the upgraded AST of codes. On the other hand, to characterize human minds of resorting to other resources to help code comprehension, we transform raw codes with external knowledge and apply pre-training techniques for information extraction. Finally, we combine the two embeddings generated from the two components to output code embeddings. We conduct extensive experiments to show the superior performance of PGNN-EK on the code summarization and code clone detection tasks. In particular, to show the generalization ability of our model, we release a new dataset that is more challenging for code clone detection and could advance the development of the community. Our codes and data are publicly available at https://github.com/anonymousforpaper1997/PGNN-EK.

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Tasks

Clone DetectionCode SummarizationGraph Neural Network

Methods 이 논문이 사용한 방법론

Graph Neural Network 설명 없음

Similar Papers 제목 키워드 기반

Library learning with e-graphs on jazz harmony

2026-05-06 · Zeng Ren, Maddy Bowers, Xinyi Guan, Martin Rohrmeier arxiv

Humans can acquire a highly structured intuitive understanding of musical patterns, yet these patterns often require multiple iterations of reflection and re-listening to internalize fully. To capture such an internaliza…

Question Asking as Program Generation

2017-11-16 · NeurIPS 2017 12 · Anselm Rothe, Brenden M. Lake, Todd M. Gureckis

A hallmark of human intelligence is the ability to ask rich, creative, and revealing questions. Here we introduce a cognitive model capable of constructing human-like questions. Our approach treats questions as formal pr…

Informativeness

Modeling question asking using neural program generation

2019-07-23 · Ziyun Wang, Brenden M. Lake

People ask questions that are far richer, more informative, and more creative than current AI systems. We propose a neuro-symbolic framework for modeling human question asking, which represents questions as formal progra…

DecoderQuestion GenerationQuestion-Generationreinforcement-learning+2

Translating LPOD and CR-Prolog2 into Standard Answer Set Programs

2018-05-02 · Joohyung Lee, Zhun Yang

Logic Programs with Ordered Disjunction (LPOD) is an extension of standard answer set programs to handle preference using the construct of ordered disjunction, and CR-Prolog2 is an extension of standard answer set progra…

New Evolutionary Computation Models and their Applications to Machine Learning

2021-10-01 · Mihai Oltean

Automatic Programming is one of the most important areas of computer science research today. Hardware speed and capability have increased exponentially, but the software is years behind. The demand for software has also …

BIG-bench Machine Learning