Coarse-Tuning Models of Code with Reinforcement Learning Feedback
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) pre-trained on code have recently emerged as the dominant approach to program synthesis. However, these models are trained using next-token prediction, which ignores the syntax and semantics of code. We propose RLCF, that further trains a pre-trained LLM via reinforcement learning, using feedback from a grounding function that scores the quality of the code. The grounding function uses (i) compiler-derived feedback on whether the code it generates passes a set of correctness checks; and (ii) feedback from a different LLM that compares the generated code to a reference code. RLCF is model- and language-agnostic. We empirically evaluate it on the MBJP and MathQA tasks for Java. Our experiments show that RLCF raises the odds that an LLM-generated program compiles, is executable, and produces the right output on tests, often allowing LLMs to match the performance of 2x-8x larger LLMs.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 34 of its 46 references that are in the map. First posted on arXiv 25 May 2023.
Builds on
34 of 46 references.
References · 34
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2020Learning to summarize from human feedbackcited by 2,562
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 1,916
- 2016Generative Adversarial Imitation Learningcited by 1,576
22 more
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2022Efficient Training of Language Models to Fill in the Middlecited by 248
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
- 2019Write, Execute, Assess: Program Synthesis with a REPLcited by 92
- 2020Contrastive Code Representation Learningcited by 76
- 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
- 2019Adversarial Examples for Models of Codecited by 61
- 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
- 2021Latent Execution for Neural Program Synthesiscited by 35
- 2022Fault-Aware Neural Code Rankerscited by 33
- 2021Neural Program Generation Modulo Static Analysiscited by 13
- 2019COSET: A Benchmark for Evaluating Neural Program Embeddingscited by 10
- 2020Evaluation of Generalizability of Neural Program Analyzers under Semantic-Preserving Transformationscited by 9
- 2019Learning Neural Sequence-to-Sequence Models from Weak Feedback with Bipolar Ramp Losscited by 3
Built on by
Citing papers per year: 2024: 1; 2025: 1.
2 papers.