Neural Program Generation Modulo Static Analysis
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2015Gated Graph Sequence Neural Networkscited by 792
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2017Grammar Variational Autoencodercited by 283
- 2018code2vec: Learning Distributed Representations of Codecited by 249
- 2020IntelliCode Compose: Code Generation Using Transformercited by 225
13 more
- 2016DeepCoder: Learning to Write Programscited by 145
- 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
- 2018Syntax-Directed Variational Autoencoder for Structured Datacited by 103
- 2018Tree-to-tree Neural Networks for Program Translationcited by 93
- 2016Neuro-Symbolic Program Synthesiscited by 84
- 2016Latent Predictor Networks for Code Generationcited by 73
- 2018Generative Code Modeling with Graphscited by 59
- 2020Learning Differentiable Programs with Admissible Neural Heuristicscited by 30
- 2015Program Synthesis from Polymorphic Refinement Typescited by 20
- 2014Structured Generative Models of Natural Source Codecited by 19
- 2014Mining Idioms from Source Codecited by 19
- 2020Learning to Represent Programs with Property Signaturescited by 16
- 2020Relevance Transformer: Generating Concise Code Snippets with Relevance Feedbackcited by 6
Built on by
Citing papers per year: 2022: 7; 2023: 4; 2024: 1; 2025: 1.
13 papers.
Sort:
By area:
- 2022A Survey on Deep Graph Generation: Methods and Applicationscited by 69
- 2022Datasheet for the Pilecited by 41
- 2022Towards Data-and Knowledge-Driven Artificial Intelligence: A Survey on Neuro-Symbolic Computingcited by 34
- 2022Fault-Aware Neural Code Rankerscited by 33
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Modelscited by 28
- 2023Guiding Language Models of Code with Global Context using Monitorscited by 20
- 2022On Distribution Shift in Learning-based Bug Detectorscited by 15
- 2022Fooling MOSS Detection with Pretrained Language Modelscited by 12
- 2024Constrained Decoding for Fill-in-the-Middle Code Language Models via Efficient Left and Right Quotienting of Context-Sensitive Grammarscited by 8
- 2023COMEX: A Tool for Generating Customized Source Code Representationscited by 3
- 2023Coarse-Tuning Models of Code with Reinforcement Learning Feedbackcited by 2
- 2025RA-Gen: A Controllable Code Generation Framework Using ReAct for Multi-Agent Task Executioncited by 2
1 more
- 2025RA-Gen: A Controllable Code Generation Framework Using ReAct for Multi-Agent Task Execution9 Oct 2025
- 2024Constrained Decoding for Fill-in-the-Middle Code Language Models via Efficient Left and Right Quotienting of Context-Sensitive Grammars28 Feb 2024
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Models21 Aug 2023
- 2023COMEX: A Tool for Generating Customized Source Code Representations10 Jul 2023
- 2023Guiding Language Models of Code with Global Context using Monitors19 Jun 2023
- 2023Coarse-Tuning Models of Code with Reinforcement Learning Feedback25 May 2023
- 2022Towards Data-and Knowledge-Driven Artificial Intelligence: A Survey on Neuro-Symbolic Computing28 Oct 2022
- 2022Fault-Aware Neural Code Rankers4 Jun 2022
- 2022Transformer-based Program Synthesis for Low-Data Environments18 May 2022
- 2022On Distribution Shift in Learning-based Bug Detectors21 Apr 2022
- 2022A Survey on Deep Graph Generation: Methods and Applications13 Mar 2022
- 2022Fooling MOSS Detection with Pretrained Language Models19 Jan 2022
1 more
- 2022Datasheet for the Pile13 Jan 2022
- 2022A Survey on Deep Graph Generation: Methods and Applicationscited by 69
- 2022Datasheet for the Pilecited by 41
- 2022Towards Data-and Knowledge-Driven Artificial Intelligence: A Survey on Neuro-Symbolic Computingcited by 34
- 2022Fault-Aware Neural Code Rankerscited by 33
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Modelscited by 28
- 2023Guiding Language Models of Code with Global Context using Monitorscited by 20
- 2022On Distribution Shift in Learning-based Bug Detectorscited by 15
- 2022Fooling MOSS Detection with Pretrained Language Modelscited by 12
- 2024Constrained Decoding for Fill-in-the-Middle Code Language Models via Efficient Left and Right Quotienting of Context-Sensitive Grammarscited by 8
- 2023COMEX: A Tool for Generating Customized Source Code Representationscited by 3
- 2023Coarse-Tuning Models of Code with Reinforcement Learning Feedbackcited by 2
- 2022Transformer-based Program Synthesis for Low-Data Environmentscited by 1
- 2024Constrained Decoding for Fill-in-the-Middle Code Language Models via Efficient Left and Right Quotienting of Context-Sensitive Grammars28 Feb 2024
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Models21 Aug 2023
- 2023COMEX: A Tool for Generating Customized Source Code Representations10 Jul 2023
- 2023Guiding Language Models of Code with Global Context using Monitors19 Jun 2023
- 2023Coarse-Tuning Models of Code with Reinforcement Learning Feedback25 May 2023
- 2022Towards Data-and Knowledge-Driven Artificial Intelligence: A Survey on Neuro-Symbolic Computing28 Oct 2022
- 2022Fault-Aware Neural Code Rankers4 Jun 2022
- 2022Transformer-based Program Synthesis for Low-Data Environments18 May 2022
- 2022On Distribution Shift in Learning-based Bug Detectors21 Apr 2022
- 2022A Survey on Deep Graph Generation: Methods and Applications13 Mar 2022
- 2022Fooling MOSS Detection with Pretrained Language Models19 Jan 2022
- 2022Datasheet for the Pile13 Jan 2022