Automatic Unit Test Data Generation and Actor-Critic Reinforcement Learning for Code Synthesis
Not on the map. Why?
Abstract (arXiv)
The advent of large pre-trained language models in the domain of Code Synthesis has shown remarkable performance on various benchmarks, treating the problem of Code Generation in a fashion similar to Natural Language Generation, trained with a Language Modelling (LM) objective. In addition, the property of programming language code being precisely evaluable with respect to its semantics -- through the use of Unit Tests to check its functional correctness -- lends itself to using Reinforcement Learning (RL) as a further training paradigm. Previous work has shown that RL can be applied as such to improve models' coding capabilities; however, such RL-based methods rely on a reward signal based on defined Unit Tests, which are much harder to obtain compared to the huge crawled code datasets used in LM objectives. In this work, we present a novel approach to automatically obtain data consisting of function signatures and associated Unit Tests, suitable for RL training of Code Synthesis models. We also introduce a straightforward, simple yet effective Actor-Critic RL training scheme and show that it, in conjunction with automatically generated training data, leads to improvement of a pre-trained code language model's performance by up to 9.9% improvement over the original underlying code synthesis LM, and up to 4.3% over RL-based models trained with standard PPO or CodeRL.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 25 of its 40 references that are in the map. First posted on arXiv 20 Oct 2023.
Builds on
25 of 40 references.
References · 25
- 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
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 1,916
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
13 more
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
- 2020A Survey of Evaluation Metrics Used for NLG Systemscited by 164
- 2022Interactive Code Generation via Test-Driven User-Intent Formalizationcited by 50
- 2022PanGu-Coder: Program Synthesis with Function-Level Language Modelingcited by 47
- 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
- 2019Learning and Evaluating Contextual Embedding of Source Codecited by 33
- 2022StructCoder: Structure-Aware Transformer for Code Generationcited by 33
- 2022Consistent Dropout for Policy Gradient Reinforcement Learningcited by 9
Built on by
Citing papers per year: 2024: 3; 2025: 1.
4 papers.
- 2024Code-Optimise: Self-Generated Preference Data for Correctness and Efficiencycited by 16
- 2025Symbolic Graphics Programming with Large Language Modelscited by 6
- 2024GenX: Mastering Code and Test Generation with Execution Feedbackcited by 4
- 2024Mastering the Craft of Data Synthesis for CodeLLMscited by 3
- 2025Symbolic Graphics Programming with Large Language Models5 Sep 2025
- 2024GenX: Mastering Code and Test Generation with Execution Feedback18 Dec 2024
- 2024Mastering the Craft of Data Synthesis for CodeLLMs16 Oct 2024
- 2024Code-Optimise: Self-Generated Preference Data for Correctness and Efficiency18 Jun 2024