mlsanityData to 7 Oct 2026

Neural Program Generation Modulo Static Analysis

arXiv 2111.01633 ↗First posted 26 Oct 2021cs.LG cs.AI cs.PLcited by 13

Not on the map. Why?

Abstract (arXiv)

State-of-the-art neural models of source code tend to be evaluated on the generation of individual expressions and lines of code, and commonly fail on long-horizon tasks such as the generation of entire method bodies. We propose to address this deficiency using weak supervision from a static program analyzer. Our neurosymbolic method allows a deep generative model to symbolically compute, using calls to a static-analysis tool, long-distance semantic relationships in the code that it has already generated. During training, the model observes these relationships and learns to generate programs conditioned on them. We apply our approach to the problem of generating entire Java methods given the remainder of the class that contains the method. Our experiments show that the approach substantially outperforms state-of-the-art transformers and a model that explicitly tries to learn program semantics on this task, both in terms of producing programs free of basic semantic errors and in terms of syntactically matching the ground truth.

Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 25 of its 58 references that are in the map. First posted on arXiv 26 Oct 2021.

Builds on

25 of 58 references.

References · 25

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
  5. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  6. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  7. 2021Measuring Coding Challenge Competence With APPScited by 879
  8. 2015Gated Graph Sequence Neural Networkscited by 792
  9. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  10. 2017Grammar Variational Autoencodercited by 283
  11. 2018code2vec: Learning Distributed Representations of Codecited by 249
  12. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
13 more
  1. 2016DeepCoder: Learning to Write Programscited by 145
  2. 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
  3. 2018Syntax-Directed Variational Autoencoder for Structured Datacited by 103
  4. 2018Tree-to-tree Neural Networks for Program Translationcited by 93
  5. 2016Neuro-Symbolic Program Synthesiscited by 84
  6. 2016Latent Predictor Networks for Code Generationcited by 73
  7. 2018Generative Code Modeling with Graphscited by 59
  8. 2020Learning Differentiable Programs with Admissible Neural Heuristicscited by 30
  9. 2015Program Synthesis from Polymorphic Refinement Typescited by 20
  10. 2014Structured Generative Models of Natural Source Codecited by 19
  11. 2014Mining Idioms from Source Codecited by 19
  12. 2020Learning to Represent Programs with Property Signaturescited by 16
  13. 2020Relevance Transformer: Generating Concise Code Snippets with Relevance Feedbackcited by 6

Built on by

Cited by year

Citing papers per year: 2022: 7; 2023: 4; 2024: 1; 2025: 1.

13 papers.

Sort:

By area: