mlsanityData to 14 Oct 2026

Learning to Represent Programs with Graphs

arXiv 1711.00740 ↗First posted 1 Nov 2017cs.LG cs.AI cs.PLcited by 220

Not on the map. Why?

Abstract (arXiv)

Learning tasks on source code (i.e., formal languages) have been considered recently, but most work has tried to transfer natural language methods and does not capitalize on the unique opportunities offered by code's known syntax. For example, long-range dependencies induced by using the same variable or function in distant locations are often not considered. We propose to use graphs to represent both the syntactic and semantic structure of code and use graph-based deep learning methods to learn to reason over program structures. In this work, we present how to construct graphs from source code and how to scale Gated Graph Neural Networks training to such large graphs. We evaluate our method on two tasks: VarNaming, in which a network attempts to predict the name of a variable given its usage, and VarMisuse, in which the network learns to reason about selecting the correct variable that should be used at a given program location. Our comparison to methods that use less structured program representations shows the advantages of modeling known structure, and suggests that our models learn to infer meaningful names and to solve the VarMisuse task in many cases. Additionally, our testing showed that VarMisuse identifies a number of bugs in mature open-source projects.

Key facts. Cited by 220 papers in the map (data through 14 Oct 2026). First posted on arXiv 1 Nov 2017.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2020: 1; 2021: 59; 2022: 47; 2023: 53; 2024: 26; 2025: 19; 2026: 15.

220 papers.

Sort:

By area:

  1. 2021Program Synthesis with Large Language Modelscited by 3,637
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  3. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
  4. 2021How Attentive are Graph Attention Networks?cited by 835
  5. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  6. 2023A Comprehensive Survey of AI-Generated Content (AIGC): A History of Generative AI from GAN to ChatGPTcited by 224
  7. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 194
  8. 2021Two Sides of the Same Coin: Heterophily and Oversmoothing in Graph Convolutional Neural Networkscited by 182
  9. 2021Graph Learning: A Surveycited by 141
  10. 2021Breaking the Limit of Graph Neural Networks by Improving the Assortativity of Graphs with Local Mixing Patternscited by 95
  11. 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
  12. 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
38 more
  1. 2021LTL2Action: Generalizing LTL Instructions for Multi-Task RLcited by 74
  2. 2022A Survey on Deep Graph Generation: Methods and Applicationscited by 69
  3. 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
  4. 2021Language-Agnostic Representation Learning of Source Code from Structure and Contextcited by 63
  5. 2021Self-Supervised Bug Detection and Repaircited by 59
  6. 2022NatGen: Generative pre-training by "Naturalizing" source codecited by 54
  7. 2021Dorylus: Affordable, Scalable, and Accurate GNN Training with Distributed CPU Servers and Serverless Threadscited by 51
  8. 2023Stealthy Backdoor Attack for Code Modelscited by 49
  9. 2023Transformers Meet Directed Graphscited by 40
  10. 2021What do pre-trained code models know about code?cited by 36
  11. 2021Combining Graph Neural Networks with Expert Knowledge for Smart Contract Vulnerability Detectioncited by 34
  12. 2024AST-T5: Structure-Aware Pretraining for Code Generation and Understandingcited by 33
  13. 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
  14. 2023Distilled GPT for Source Code Summarizationcited by 31
  15. 2021Code Completion by Modeling Flattened Abstract Syntax Trees as Graphscited by 30
  16. 2021Code Structure Guided Transformer for Source Code Summarizationcited by 30
  17. 2023Large Language Models of Code Fail at Completing Code with Potential Bugscited by 29
  18. 2021How could Neural Networks understand Programs?cited by 26
  19. 2021Project-Level Encoding for Neural Source Code Summarization of Subroutinescited by 24
  20. 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 24
  21. 2023InstructABSA: Instruction Learning for Aspect Based Sentiment Analysiscited by 23
  22. 2021Understanding Neural Code Intelligence Through Program Simplificationcited by 22
  23. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  24. 2024CodePori: Large-Scale System for Autonomous Software Development Using Multi-Agent Technologycited by 22
  25. 2021VELVET: a noVel Ensemble Learning approach to automatically locate VulnErable sTatementscited by 20
  26. 2023Graph Meets LLMs: Towards Large Graph Modelscited by 20
  27. 2024Can Large Language Models Serve as Data Analysts? A Multi-Agent Assisted Approach for Qualitative Data Analysiscited by 20
  28. 2021Improving Code Summarization with Block-wise Abstract Syntax Tree Splittingcited by 19
  29. 2021Memorization and Generalization in Neural Code Intelligence Modelscited by 19
  30. 2022Dataflow Analysis-Inspired Deep Learning for Efficient Vulnerability Detectioncited by 19
  31. 2024PromSec: Prompt Optimization for Secure Generation of Functional Source Code with Large Language Models (LLMs)cited by 19
  32. 2021Do We Need Anisotropic Graph Neural Networks?cited by 18
  33. 2021DeepDebug: Fixing Python Bugs Using Stack Traces, Backtranslation, and Code Skeletonscited by 17
  34. 2021Towards Learning (Dis)-Similarity of Source Code from Program Contrastscited by 17
  35. 2022Assemble Foundation Models for Automatic Code Summarizationcited by 17
  36. 2021Learning Structural Edits via Incremental Tree Transformationscited by 16
  37. 2024Stable Code Technical Reportcited by 16
  38. 2021GraphSearchNet: Enhancing GNNs via Capturing Global Dependencies for Semantic Code Searchcited by 15

50 most cited of 220 All 220 (JSON)