mlsanityData to 7 Oct 2026

A Neural Network Architecture for Program Understanding Inspired by Human Behaviors

arXiv 2206.04730 ↗First posted 10 May 2022cs.SE cs.AI cs.LGcited by 5

Not on the map. Why?

Abstract (arXiv)

Program understanding is a fundamental task in program language processing. Despite the success, existing works fail to take human behaviors as reference in understanding programs. In this paper, we consider human behaviors and propose the PGNN-EK model that consists of two main components. On the one hand, inspired by the "divide-and-conquer" reading behaviors 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 behaviors 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/RecklessRonan/PGNN-EK.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 30 of its 54 references that are in the map. First posted on arXiv 10 May 2022.

Builds on

30 of 54 references.

References · 30

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  5. 2019Fast Graph Representation Learning with PyTorch Geometriccited by 2,414
  6. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  7. 2015Gated Graph Sequence Neural Networkscited by 792
  8. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  9. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  10. 2020On the Bottleneck of Graph Neural Networks and its Practical Implicationscited by 624
  11. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  12. 2018code2vec: Learning Distributed Representations of Codecited by 249
18 more
  1. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  2. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
  3. 2017Learning to Represent Programs with Graphscited by 219
  4. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
  5. 2020A Transformer-based Approach for Source Code Summarizationcited by 129
  6. 2014Learning to Executecited by 105
  7. 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
  8. 2014On Using Very Large Target Vocabulary for Neural Machine Translationcited by 80
  9. 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 76
  10. 2020Detecting Code Clones with Graph Neural Networkand Flow-Augmented Abstract Syntax Treecited by 68
  11. 2021Language-Agnostic Representation Learning of Source Code from Structure and Contextcited by 63
  12. 2020Big Code != Big Vocabulary: Open-Vocabulary Models for Source Codecited by 53
  13. 2020Incorporating External Knowledge through Pre-training for Natural Language to Code Generationcited by 36
  14. 2021Code Completion by Modeling Flattened Abstract Syntax Trees as Graphscited by 30
  15. 2021How could Neural Networks understand Programs?cited by 26
  16. 2020InferCode: Self-Supervised Learning of Code Representations by Predicting Subtreescited by 23
  17. 2016A deep language model for software codecited by 14
  18. 2018Open Vocabulary Learning on Source Code with a Graph-Structured Cachecited by 10

Built on by

Cited by year

Citing papers per year: 2022: 2; 2023: 2; 2024: 1.

5 papers.