paper-with-me

Papers

Automatic Unit Test Data Generation and Actor-Critic Reinforcement Learning for Code Synthesis

2023-10-20 · Philip John Gorinski, Matthieu Zimmer, Gerasimos Lampouras, Derrick Goh Xin Deik, Ignacio Iacobacci

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.

📄 PDF Abstract BibTeX arXiv:2310.13669

Code (2)

huawei-noah/noah-research 공식 구현 pytorch
SagesAi/terminal-agent

Tasks

Code GenerationLanguage ModellingReinforcement Learning (RL)Text Generation

Methods 이 논문이 사용한 방법론

Entropy Regularization 설명 없음
PPO Proximal Policy Optimization, or PPO, is a policy gradient method for reinforcement learning. The motivation was to have an algorithm with the data efficiency and reliable…

Similar Papers 제목 키워드 기반

Automatic Correction of Internal Units in Generative Neural Networks

2021-04-13 · CVPR 2021 1 · Ali Tousi, Haedong Jeong, Jiyeon Han, Hwanil Choi 외

Generative Adversarial Networks (GANs) have shown satisfactory performance in synthetic image generation by devising complex network structure and adversarial training scheme. Even though GANs are able to synthesize real…

Image Generation

Automatic Distractor Generation for Multiple Choice Questions in Standard Tests

2020-11-26 · COLING 2020 8 · Zhaopeng Qiu, Xian Wu, Wei Fan

To assess the knowledge proficiency of a learner, multiple choice question is an efficient and widespread form in standard tests. However, the composition of the multiple choice question, especially the construction of d…

Distractor GenerationMultiple-choice

CDGP: Automatic Cloze Distractor Generation based on Pre-trained Language Model

2024-03-15 · Shang-Hsuan Chiang, Ssu-Cheng Wang, Yao-Chung Fan

Manually designing cloze test consumes enormous time and efforts. The major challenge lies in wrong option (distractor) selection. Having carefully-design distractors improves the effectiveness of learner ability assessm…

Cloze TestDistractor GenerationLanguage ModelingLanguage Modelling

CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learning

2022-07-05 · Hung Le, Yue Wang, Akhilesh Deepak Gotmare, Silvio Savarese 외

Program synthesis or code generation aims to generate a program that satisfies a problem specification. Recent approaches using large-scale pretrained language models (LMs) have shown promising results, yet they have som…

Code GenerationDecoderDeep Reinforcement Learningmbpp+3

iPanda: An LLM-based Agent for Automated Conformance Testing of Communication Protocols

2025-07-01 · Xikai Sun, Fan Dang, Shiqi Jiang, Jingao Xu 외 arxiv

Conformance testing is essential for ensuring that protocol implementations comply with their specifications. However, traditional testing approaches involve manually creating numerous test cases and scripts, making the …

Code Generation