paper-with-me

홈 › Papers

Improving Code Generation by Training with Natural Language Feedback

2023-03-28 · Angelica Chen, Jérémy Scheurer, Tomasz Korbak, Jon Ander Campos, Jun Shern Chan, Samuel R. Bowman, Kyunghyun Cho, Ethan Perez

The potential for pre-trained large language models (LLMs) to use natural language feedback at inference time has been an exciting recent development. We build upon this observation by formalizing an algorithm for learning from natural language feedback at training time instead, which we call Imitation learning from Language Feedback (ILF). ILF requires only a small amount of human-written feedback during training and does not require the same feedback at test time, making it both user-friendly and sample-efficient. We further show that ILF can be seen as a form of minimizing the KL divergence to the ground truth distribution and demonstrate a proof-of-concept on a neural program synthesis task. We use ILF to improve a Codegen-Mono 6.1B model's pass@1 rate by 38% relative (and 10% absolute) on the Mostly Basic Python Problems (MBPP) benchmark, outperforming both fine-tuning on MBPP and fine-tuning on repaired programs written by humans. Overall, our results suggest that learning from human-written natural language feedback is both more effective and sample-efficient than training exclusively on demonstrations for improving an LLM's performance on code generation tasks.

📄 PDF Abstract BibTeX arXiv:2303.16749

Code (1)

nyu-mll/ILF-for-code-generation 공식 구현 jax

Tasks

Code GenerationImitation LearningmbppProgram Synthesis

Methods 이 논문이 사용한 방법론

Test 설명 없음

Similar Papers 제목 키워드 기반

LeTI: Learning to Generate from Textual Interactions

2023-05-17 · Xingyao Wang, Hao Peng, Reyhaneh Jabbarvand, Heng Ji

Fine-tuning pre-trained language models (LMs) is essential for enhancing their capabilities. Existing techniques commonly fine-tune on input-output pairs (e.g., instruction tuning) or with numerical rewards that gauge th…

Code GenerationEvent Argument ExtractionHumanEvalmbpp

Bridging the Gap: A Survey on Integrating (Human) Feedback for Natural Language Generation

2023-05-01 · Patrick Fernandes, Aman Madaan, Emmy Liu, António Farinhas 외

Many recent advances in natural language generation have been fueled by training large language models on internet-scale data. However, this paradigm can lead to models that generate toxic, inaccurate, and unhelpful cont…

Text Generation

SYNDICOM: Improving Conversational Commonsense with Error-Injection and Natural Language Feedback

2023-09-18 · Christopher Richardson, Anirudh Sundar, Larry Heck

Commonsense reasoning is a critical aspect of human communication. Despite recent advances in conversational AI driven by large language models, commonsense reasoning remains a challenging task. In this work, we introduc…

Response Generationvalid

Rendering-Aware Reinforcement Learning for Vector Graphics Generation

2025-05-27 · Juan A. Rodriguez, Haotian Zhang, Abhay Puri, Aarash Feizi 외

Scalable Vector Graphics (SVG) offer a powerful format for representing visual designs as interpretable code. Recent advances in vision-language models (VLMs) have enabled high-quality SVG generation by framing the probl…

Code Generationreinforcement-learningReinforcement LearningReinforcement Learning (RL)+1

GenX: Mastering Code and Test Generation with Execution Feedback

2024-12-18 · Nan Wang, Yafei Liu, Chen Chen, Haonan Lu

Recent advancements in language modeling have enabled the translation of natural language into code, and the use of execution feedback to improve code generation. However, these methods often rely heavily on pre-existing…

Code GenerationData AugmentationLanguage ModelingLanguage Modelling