paper-with-me

홈 › Papers

Multi-Turn Code Generation Through Single-Step Rewards

2025-02-27 · Arnav Kumar Jain, Gonzalo Gonzalez-Pumariega, Wayne Chen, Alexander M Rush, Wenting Zhao, Sanjiban Choudhury

We address the problem of code generation from multi-turn execution feedback. Existing methods either generate code without feedback or use complex, hierarchical reinforcement learning to optimize multi-turn rewards. We propose a simple yet scalable approach, $\mu$Code, that solves multi-turn code generation using only single-step rewards. Our key insight is that code generation is a one-step recoverable MDP, where the correct code can be recovered from any intermediate code state in a single turn. $\mu$Code iteratively trains both a generator to provide code solutions conditioned on multi-turn execution feedback and a verifier to score the newly generated code. Experimental evaluations show that our approach achieves significant improvements over the state-of-the-art baselines. We provide analysis of the design choices of the reward models and policy, and show the efficacy of $\mu$Code at utilizing the execution feedback. Our code is available at https://github.com/portal-cornell/muCode.

📄 PDF Abstract BibTeX arXiv:2502.20380

Code (1)

portal-cornell/mucode 공식 구현

Tasks

Code GenerationHierarchical Reinforcement Learning

Similar Papers 제목 키워드 기반

Benchmarking Correctness and Security in Multi-Turn Code Generation

2025-10-13 · Ruchit Rawal, Jeffrey Yang Fan Chiang, Chihao Shen, Jeffery Siyuan Tian 외 arxiv

AI coding assistants powered by large language models (LLMs) have transformed software development, significantly boosting productivity. While existing benchmarks evaluate the correctness and security of LLM-generated co…

Code Generation

Bridging Online and Offline RL: Contextual Bandit Learning for Multi-Turn Code Generation

2026-02-03 · Ziru Chen, Dongdong Chen, Ruinan Jin, Yingbin Liang 외 arxiv

Recently, there have been significant research interests in training large language models (LLMs) with reinforcement learning (RL) on real-world tasks, such as multi-turn code generation. While online RL tends to perform…

Reinforcement LearningCode GenerationOffline RL

TurnWise: The Gap between Single- and Multi-turn Language Model Capabilities

2026-03-17 · Victoria Graf, Valentina Pyatkin, Nouha Dziri, Nathan Lambert 외 arxiv

Multi-turn conversations are a common and critical mode of language model interaction. However, current open training and evaluation data focus on single-turn settings, failing to capture the additional dimension of thes…

MURPHY: Feedback-Aware GRPO with Retrospective Credit Assignment for Multi-Turn Code Generation

2025-11-11 · Chanakya Ekbote, Vijay Lingam, Sujay Sanghavi, Jun Huan 외 arxiv

Reinforcement Learning with Verifiable Rewards (RLVR) has become a standard recipe for post-training LLMs on reasoning tasks, with Group Relative Policy Optimization (GRPO) emerging as a leading approach. However, GRPO a…

Reinforcement LearningCode Generation

MOCHA: Are Code Language Models Robust Against Multi-Turn Malicious Coding Prompts?

2025-07-25 · Muntasir Wahed, Xiaona Zhou, Kiet A. Nguyen, Tianjiao Yu 외 arxiv

Recent advancements in Large Language Models (LLMs) have significantly enhanced their code generation capabilities. However, their robustness against adversarial misuse, particularly through multi-turn malicious coding p…

Code Generation