Compilable Neural Code Generation with Compiler Feedback
Not on the map. Why?
Abstract (arXiv)
Automatically generating compilable programs with (or without) natural language descriptions has always been a touchstone problem for computational linguistics and automated software engineering. Existing deep-learning approaches model code generation as text generation, either constrained by grammar structures in decoder, or driven by pre-trained language models on large-scale code corpus (e.g., CodeGPT, PLBART, and CodeT5). However, few of them account for compilability of the generated programs. To improve compilability of the generated programs, this paper proposes COMPCODER, a three-stage pipeline utilizing compiler feedback for compilable code generation, including language model fine-tuning, compilability reinforcement, and compilability discrimination. Comprehensive experiments on two code generation tasks demonstrate the effectiveness of our proposed approach, improving the success rate of compilation from 44.18 to 89.18 in code completion on average and from 70.3 to 96.2 in text-to-code generation, respectively, when comparing with the state-of-the-art CodeGPT.
Key facts. Cited by 46 papers in the map (data through 7 Oct 2026). Builds on 33 of its 43 references that are in the map. First posted on arXiv 10 Mar 2022.
Builds on
33 of 43 references.
References · 33
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2015Sequence Level Training with Recurrent Neural Networkscited by 568
21 more
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2020IntelliCode Compose: Code Generation Using Transformercited by 225
- 2019SPoC: Search-based Pseudocode to Codecited by 176
- 2018Fast Abstractive Summarization with Reinforce-Selected Sentence Rewritingcited by 158
- 2021Retrieval Augmented Code Generation and Summarizationcited by 148
- 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 144
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 99
- 2018Tree-to-tree Neural Networks for Program Translationcited by 93
- 2020Graph-based, Self-Supervised Program Repair from Diagnostic Feedbackcited by 93
- 2017Abstract Syntax Networks for Code Generation and Semantic Parsingcited by 92
- 2018A Retrieve-and-Edit Framework for Predicting Structured Outputscited by 73
- 2021Break-It-Fix-It: Unsupervised Learning for Program Repaircited by 71
- 2020Code Prediction by Feeding Trees to Transformerscited by 70
- 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
- 2019Code Generation as a Dual Task of Code Summarizationcited by 62
- 2020Multi-task Learning based Pre-trained Language Model for Code Completioncited by 58
- 2017Code Completion with Neural Attention and Pointer Networkscited by 49
- 2019Learning to Infer Program Sketchescited by 44
- 2019CoaCor: Code Annotation for Code Retrieval with Reinforcement Learningcited by 22
- 2019A Self-Attentional Neural Architecture for Code Completion with Multi-Task Learningcited by 18
- 2021Energy-Based Models for Code Generation under Compilability Constraintscited by 10
Built on by
Citing papers per year: 2022: 2; 2023: 13; 2024: 12; 2025: 15; 2026: 4.
46 papers.
Sort:
By area:
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
- 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 95
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 77
- 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedbackcited by 74
- 2023Large Language Models for Supply Chain Optimizationcited by 61
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2023A New Era in Software Security: Towards Self-Healing Software via Large Language Models and Formal Verificationcited by 42
- 2024Test-Driven Development for Code Generationcited by 32
- 2023Vulnerabilities in AI Code Generators: Exploring Targeted Data Poisoning Attackscited by 29
- 2023CoTran: An LLM-based Code Translator using Reinforcement Learning with Feedback from Compiler and Symbolic Executioncited by 21
- 2025Process-Supervised Reinforcement Learning for Code Generationcited by 21
34 more
- 2023INTERVENOR: Prompting the Coding Ability of Large Language Models with the Interactive Chain of Repaircited by 18
- 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunitiescited by 17
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 16
- 2023B-Coder: Value-Based Deep Reinforcement Learning for Program Synthesiscited by 16
- 2024Code-Optimise: Self-Generated Preference Data for Correctness and Efficiencycited by 16
- 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Trainingcited by 15
- 2025Pre-Trained Policy Discriminators are General Reward Modelscited by 14
- 2024RLSF: Fine-tuning LLMs via Symbolic Feedbackcited by 13
- 2023Zero-shot Visual Question Answering with Language Model Feedbackcited by 11
- 2023Reinforcement Learning for Generative AI: A Surveycited by 11
- 2025Exploring Code Language Models for Automated HLS-based Hardware Generation: Benchmark, Infrastructure and Analysiscited by 10
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2024Does Your Neural Code Completion Model Use My Code? A Membership Inference Approachcited by 9
- 2024FALCON: Feedback-driven Adaptive Long/short-term memory reinforced Coding Optimization systemcited by 8
- 2022CodePAD: Sequence-based Code Generation with Pushdown Automatoncited by 7
- 2024mathbbUSCD: Improving Code Generation of LLMs by Uncertainty-Aware Selective Contrastive Decodingcited by 6
- 2025Automatically Generating Web Applications from Requirements Via Multi-Agent Test-Driven Developmentcited by 5
- 2023Automatic Unit Test Data Generation and Actor-Critic Reinforcement Learning for Code Synthesiscited by 4
- 2025CodeEvo: Interaction-Driven Synthesis of Code-centric Data through Hybrid and Iterative Feedbackcited by 4
- 2023Neural Machine Translation for Code Generationcited by 3
- 2024Teaching Machines to Code: Smart Contract Translation with LLMscited by 3
- 2024Mastering the Craft of Data Synthesis for CodeLLMscited by 3
- 2025PAT-Agent: Autoformalization for Model Checkingcited by 3
- 2025Integrating Symbolic Execution into the Fine-Tuning of Code-Generating LLMscited by 2
- 2025CodeBC: A More Secure Large Language Model for Smart Contract Code Generation in Blockchaincited by 2
- 2025CRPE: Expanding The Reasoning Capability of Large Language Model for Code Generationcited by 2
- 2025SLMFix: Leveraging Small Language Models for Domain Specific Language Error Fixing with Reinforcement Learningcited by 2
- 2025Enhancing the Non-Functional Quality Compliance of LLM-Generated Code through Quality-Aware Preference Learningcited by 1
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agentcited by 1
- 2026Unseen-Codebases-Domain Data Synthesis and Training Based on Code Graphscited by 1
- 2025BitsAI-Fix: LLM-Driven Approach for Automated Lint Error Resolution in Practicecited by 0
- 2026EffiPair: Improving the Efficiency of LLM-generated Code with Differential Execution Feedbackcited by 0
- 2026Generative Compilation: On-the-Fly Compiler Feedback as AI Generates Codecited by 0
- 2026Natural-Language to SysMLv2 Translation via Conformance-Driven Iterative Refinementcited by 0
- 2026Generative Compilation: On-the-Fly Compiler Feedback as AI Generates Code15 Jul 2026
- 2026Natural-Language to SysMLv2 Translation via Conformance-Driven Iterative Refinement14 Jul 2026
- 2026EffiPair: Improving the Efficiency of LLM-generated Code with Differential Execution Feedback6 Apr 2026
- 2026Unseen-Codebases-Domain Data Synthesis and Training Based on Code Graphs24 Feb 2026
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agent17 Dec 2025
- 2025SLMFix: Leveraging Small Language Models for Domain Specific Language Error Fixing with Reinforcement Learning24 Nov 2025
- 2025Automatically Generating Web Applications from Requirements Via Multi-Agent Test-Driven Development29 Sep 2025
- 2025PAT-Agent: Autoformalization for Model Checking28 Sep 2025
- 2025BitsAI-Fix: LLM-Driven Approach for Automated Lint Error Resolution in Practice5 Aug 2025
- 2025CodeEvo: Interaction-Driven Synthesis of Code-centric Data through Hybrid and Iterative Feedback25 Jul 2025
- 2025Pre-Trained Policy Discriminators are General Reward Models7 Jul 2025
- 2025CRPE: Expanding The Reasoning Capability of Large Language Model for Code Generation15 May 2025
34 more
- 2025CodeBC: A More Secure Large Language Model for Smart Contract Code Generation in Blockchain28 Apr 2025
- 2025Integrating Symbolic Execution into the Fine-Tuning of Code-Generating LLMs21 Apr 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025Enhancing the Non-Functional Quality Compliance of LLM-Generated Code through Quality-Aware Preference Learning12 Mar 2025
- 2025Exploring Code Language Models for Automated HLS-based Hardware Generation: Benchmark, Infrastructure and Analysis19 Feb 2025
- 2025Process-Supervised Reinforcement Learning for Code Generation3 Feb 2025
- 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunities23 Jan 2025
- 2024FALCON: Feedback-driven Adaptive Long/short-term memory reinforced Coding Optimization system28 Oct 2024
- 2024Mastering the Craft of Data Synthesis for CodeLLMs16 Oct 2024
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2024mathbbUSCD: Improving Code Generation of LLMs by Uncertainty-Aware Selective Contrastive Decoding9 Sep 2024
- 2024Code-Optimise: Self-Generated Preference Data for Correctness and Efficiency18 Jun 2024
- 2024A Survey on Large Language Models for Code Generation1 Jun 2024
- 2024RLSF: Fine-tuning LLMs via Symbolic Feedback26 May 2024
- 2024Does Your Neural Code Completion Model Use My Code? A Membership Inference Approach22 Apr 2024
- 2024Teaching Machines to Code: Smart Contract Translation with LLMs13 Mar 2024
- 2024Test-Driven Development for Code Generation21 Feb 2024
- 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedback2 Feb 2024
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents1 Jan 2024
- 2023INTERVENOR: Prompting the Coding Ability of Large Language Models with the Interactive Chain of Repair16 Nov 2023
- 2023Automatic Unit Test Data Generation and Actor-Critic Reinforcement Learning for Code Synthesis20 Oct 2023
- 2023B-Coder: Value-Based Deep Reinforcement Learning for Program Synthesis4 Oct 2023
- 2023Reinforcement Learning for Generative AI: A Survey28 Aug 2023
- 2023Vulnerabilities in AI Code Generators: Exploring Targeted Data Poisoning Attacks4 Aug 2023
- 2023Large Language Models for Supply Chain Optimization8 Jul 2023
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedback26 Jun 2023
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problems26 Jun 2023
- 2023CoTran: An LLM-based Code Translator using Reinforcement Learning with Feedback from Compiler and Symbolic Execution11 Jun 2023
- 2023Zero-shot Visual Question Answering with Language Model Feedback26 May 2023
- 2023A New Era in Software Security: Towards Self-Healing Software via Large Language Models and Formal Verification24 May 2023
- 2023Neural Machine Translation for Code Generation22 May 2023
- 2023Execution-based Code Generation using Deep Reinforcement Learning31 Jan 2023
- 2022CodePAD: Sequence-based Code Generation with Pushdown Automaton2 Nov 2022
- 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Training4 May 2022
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 77
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2025Automatically Generating Web Applications from Requirements Via Multi-Agent Test-Driven Developmentcited by 5
- 2025PAT-Agent: Autoformalization for Model Checkingcited by 3
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agentcited by 1
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agent17 Dec 2025
- 2025Automatically Generating Web Applications from Requirements Via Multi-Agent Test-Driven Development29 Sep 2025
- 2025PAT-Agent: Autoformalization for Model Checking28 Sep 2025
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents1 Jan 2024
- 2025Pre-Trained Policy Discriminators are General Reward Modelscited by 14
- 2024RLSF: Fine-tuning LLMs via Symbolic Feedbackcited by 13
- 2024FALCON: Feedback-driven Adaptive Long/short-term memory reinforced Coding Optimization systemcited by 8
- 2025Integrating Symbolic Execution into the Fine-Tuning of Code-Generating LLMscited by 2
- 2025Pre-Trained Policy Discriminators are General Reward Models7 Jul 2025
- 2025Integrating Symbolic Execution into the Fine-Tuning of Code-Generating LLMs21 Apr 2025
- 2024FALCON: Feedback-driven Adaptive Long/short-term memory reinforced Coding Optimization system28 Oct 2024
- 2024RLSF: Fine-tuning LLMs via Symbolic Feedback26 May 2024
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
- 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 95
- 2023Large Language Models for Supply Chain Optimizationcited by 61
- 2023A New Era in Software Security: Towards Self-Healing Software via Large Language Models and Formal Verificationcited by 42
- 2024Test-Driven Development for Code Generationcited by 32
- 2023CoTran: An LLM-based Code Translator using Reinforcement Learning with Feedback from Compiler and Symbolic Executioncited by 21
- 2025Process-Supervised Reinforcement Learning for Code Generationcited by 21
- 2023INTERVENOR: Prompting the Coding Ability of Large Language Models with the Interactive Chain of Repaircited by 18
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 16
- 2023B-Coder: Value-Based Deep Reinforcement Learning for Program Synthesiscited by 16
- 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Trainingcited by 15
12 most cited of 29 All 29 (JSON)
- 2026Generative Compilation: On-the-Fly Compiler Feedback as AI Generates Code15 Jul 2026
- 2026Natural-Language to SysMLv2 Translation via Conformance-Driven Iterative Refinement14 Jul 2026
- 2026EffiPair: Improving the Efficiency of LLM-generated Code with Differential Execution Feedback6 Apr 2026
- 2025SLMFix: Leveraging Small Language Models for Domain Specific Language Error Fixing with Reinforcement Learning24 Nov 2025
- 2025BitsAI-Fix: LLM-Driven Approach for Automated Lint Error Resolution in Practice5 Aug 2025
- 2025CodeEvo: Interaction-Driven Synthesis of Code-centric Data through Hybrid and Iterative Feedback25 Jul 2025
- 2025CodeBC: A More Secure Large Language Model for Smart Contract Code Generation in Blockchain28 Apr 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025Enhancing the Non-Functional Quality Compliance of LLM-Generated Code through Quality-Aware Preference Learning12 Mar 2025
- 2025Exploring Code Language Models for Automated HLS-based Hardware Generation: Benchmark, Infrastructure and Analysis19 Feb 2025
- 2025Process-Supervised Reinforcement Learning for Code Generation3 Feb 2025
- 2024mathbbUSCD: Improving Code Generation of LLMs by Uncertainty-Aware Selective Contrastive Decoding9 Sep 2024
12 newest of 29 All 29 (JSON)