mlsanityData to 7 Oct 2026

Coarse-Tuning Models of Code with Reinforcement Learning Feedback

arXiv 2305.18341 ↗First posted 25 May 2023cs.PL cs.AI cs.LGcited by 2

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2022Training language models to follow instructions with human feedbackcited by 15,712
  5. 2017Proximal Policy Optimization Algorithmscited by 14,441
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  7. 2021Program Synthesis with Large Language Modelscited by 3,509
  8. 2020Learning to summarize from human feedbackcited by 2,562
  9. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  10. 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
  11. 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 1,916
  12. 2016Generative Adversarial Imitation Learningcited by 1,576
22 more
  1. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  2. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  3. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  4. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  5. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  6. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  7. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  8. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
  9. 2022Efficient Training of Language Models to Fill in the Middlecited by 248
  10. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
  11. 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
  12. 2019Write, Execute, Assess: Program Synthesis with a REPLcited by 92
  13. 2020Contrastive Code Representation Learningcited by 76
  14. 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
  15. 2019Adversarial Examples for Models of Codecited by 61
  16. 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
  17. 2021Latent Execution for Neural Program Synthesiscited by 35
  18. 2022Fault-Aware Neural Code Rankerscited by 33
  19. 2021Neural Program Generation Modulo Static Analysiscited by 13
  20. 2019COSET: A Benchmark for Evaluating Neural Program Embeddingscited by 10
  21. 2020Evaluation of Generalizability of Neural Program Analyzers under Semantic-Preserving Transformationscited by 9
  22. 2019Learning Neural Sequence-to-Sequence Models from Weak Feedback with Bipolar Ramp Losscited by 3

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 1.

2 papers.