atlas

Research map / Reinforcement learning / RL from feedback

Multi-Turn Code Generation Through Single-Step Rewards

ICML 2025 · Reinforcement learning › RL from feedback · approach: Scaling RL with verifiable rewards · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes μCODE, which trains a generator and a learned verifier for multi-turn code generation from execution feedback by treating the task as one-step recoverable and reducing RL to imitation learning with single-step rewards.

Problem

Multi-turn code generation from execution feedback, where existing RL methods with multi-turn rewards suffer from sparse signals and are complex to train.

Approach

Code generation is a one-step recoverable MDP, so a learned verifier can guide a local search expert that relabels rollouts, and the generator is fine-tuned by imitation on these labels (expert iteration), with multi-turn best-of-N at inference using the verifier.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use μCODE training instead of RFTLlama-3.2-1B-Instruct code generator · MBPPBoN accuracy: 35.7 -> 37.9Helped
Use μCODE training instead of RFTLlama-3.2-1B-Instruct code generator · HumanEvalBoN accuracy: 34.1 -> 35.4Helped
Use μCODE multi-turn BoN instead of the strongest baselineLlama-3.2-1B-Instruct code generator · MBPPBoN accuracy: 47.3 -> 51.1Helped
Use μCODE multi-turn BoN instead of the strongest baselineLlama-3.2-1B-Instruct code generator · HumanEvalBoN accuracy: 35.7 -> 41.5Helped
Use μCODE multi-turn BoN instead of Instruct +BoNLlama-3.1-8B-Instruct code generator · MBPPBoN accuracy: 69.7 -> 70.6Helped
Use μCODE multi-turn BoN instead of Instruct +BoNLlama-3.1-8B-Instruct code generator · HumanEvalBoN accuracy: 62.9 -> 63.8Helped
Use μCODE multi-turn BoN instead of RFT +BoNLlama-3.1-8B-Instruct code generator · CodeContestsBoN accuracy: 14.9 -> 16.3Helped
Add learned-verifier selection when choosing training rollouts (ablation)RFT code generator · MBPPBoN accuracy: 46.7 -> 49.0Helped
Add learned-verifier selection when choosing training rollouts (ablation)RFT code generator · HumanEvalBoN accuracy: 36.5 -> 38.9Helped
Add one-step-recoverability relabeling with oracle verifier (ablation)RFT code generator · MBPPBoN accuracy: 46.7 -> 48.2Helped
Add one-step-recoverability relabeling with oracle verifier (ablation)RFT code generator · HumanEvalBoN accuracy: 36.5 -> 38.0Helped
Use both oracle and learned verifier scores for relabeling instead of either verifier alone (ablation)μCODE code generator · MBPPBoN accuracy: 48.2 -> 51.1; 48.5 -> 51.1Helped

Surprising findings

Limitations

Experimental setup

Datasets: MBPP HumanEval CodeContests

Benchmarks: MBPP HumanEval CodeContests MBPP+ HumanEval+ MBPP (POMDP)

Metrics: BoN accuracy pass@1 (BoN@1)

Baselines: Instruct RFT CodeRL RLEF PPOCoder SCoRe RISE

Builds on: expert iteration DAgger rejection fine-tuning Bradley-Terry reward modeling

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy