Research map / Reinforcement learning / RL from feedback
MURPHY: Feedback-Aware GRPO with Retrospective Credit Assignment for Multi-Turn Code Generation
Chanakya Ekbote, Vijay Lingam, Sujay Sanghavi, Luke Huan, Behrooz O Tehrani, Anoop Deoras, Stefano Soatto
MIT - Massachusetts Institute of Technology · Amazon · University of Texas at Austin · University of California, Los Angeles
Read the paperPlace an idea next to itCheck your own paper ↗
Proposes MURPHY, a multi-turn GRPO extension that builds feedback-conditioned rollout trees and propagates rewards backward (MaRS/MeRS) plus pruning, for self-correcting code generation.
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.
Problem
Standard GRPO optimizes terminal rewards on isolated single-turn responses, so it cannot credit failed code attempts that surface informative execution feedback enabling later successful refinements in multi-turn code generation.
Approach
Build feedback-conditioned rollout trees where failed programs are expanded with executor feedback, propagate execution rewards backward through the tree (max-backup MaRS or mean-backup MeRS), then apply local GRPO advantages to credit-adjusted rewards; add IntraP/InterP pruning to cut optimization cost.
Key results
- Up to +6.20 pp pass@1 over strongest comparator at Iter-3 on OLMo-2-1124-7B-Instruct (HumanEval), with +6.07 pp on MBPP.
- On LiveCodeBench-v6 with Qwen3-4B, gains of +4.38 (Medium) and +4.20 (Hard) at Iter-5.
- InterP pruning cuts optimization time by 74.1% and per-step training time by 21.4% while staying within 0.4-0.8 pp of unpruned Iter-3 performance.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use max-reward (MaRS) instead of mean-reward (MeRS, gamma=1) propagation (ablation) | Murphy on Qwen3-1.7B · HumanEval Iter-3 | pass@1: 85.57 -> 86.58 | Improved |
| use max-reward (MaRS) instead of mean-reward (MeRS, gamma=1) propagation (ablation) | Murphy on Qwen3-1.7B · MBPP Iter-3 | pass@1: 60.93 -> 62.00 | Improved |
| use max-reward (MaRS) instead of mean-reward (MeRS, gamma=1) propagation (ablation) | Murphy on OLMo-2-1124-7B-Instruct · HumanEval Iter-3 | pass@1: 41.87 -> 52.24 | Improved |
| use max-reward (MaRS) instead of mean-reward (MeRS, gamma=1) propagation (ablation) | Murphy on OLMo-2-1124-7B-Instruct · MBPP Iter-3 | pass@1: 34.40 -> 39.67 | Improved |
| use MeRS gamma=0.9 instead of MaRS (ablation) | Murphy on Qwen3-1.7B · MBPP Iter-1 | pass@1: 44.73 -> 46.53 | Mixed |
| add intra-group pruning (IntraP) (ablation) | Murphy (MaRS) on Qwen3-1.7B · HumanEval Iter-3 | pass@1: 86.58 -> 84.28 | Hurt |
| add intra-group pruning (IntraP) (ablation) | Murphy (MaRS) on Qwen3-1.7B · MBPP Iter-3 | pass@1: 62.00 -> 59.87 | Hurt |
| add intra-group pruning (IntraP) (ablation) | Murphy (MaRS) on Qwen3-1.7B · HumanEval Iter-1 | pass@1: 79.67 -> 82.34 | Improved |
| add inter-group pruning (InterP) (ablation) | Murphy (MaRS) on Qwen3-1.7B · HumanEval Iter-3 | pass@1: 86.58 -> 86.17 | No clear effect |
| add inter-group pruning (InterP) (ablation) | Murphy (MaRS) on Qwen3-1.7B · MBPP Iter-3 | pass@1: 62.00 -> 61.20 | No clear effect |
| add inter-group pruning (InterP) (ablation) | Murphy (MaRS) on Qwen3-1.7B · optimization time | time reduction: 74.1% lower optimization time, 21.4% lower per-step time | Improved |
| add inter-group pruning (InterP) (ablation) | Murphy (MaRS) on Qwen3-1.7B · trajectories per prompt | retained trajectories: 72 -> 40 | Improved |
Surprising findings
- IntraP improves single-turn Iter-1 performance but regresses by 2-2.3 pp at Iter-3 on Qwen3-1.7B.
- Murphy shows a small regression on Qwen3-1.7B MBPP at Iter-1 (-1.27 pp).
Limitations
- Multi-turn rollout-tree training is more expensive than GRPO even with pruning.
- Evaluation limited to code generation with clean execution feedback; noisier feedback and longer horizons untested.
- Training and ablations limited to two turns; reuse of KV cache across shared prefixes not exploited.
Open problems this paper states
- “Evaluation limited to code generation with clean execution feedback; noisier feedback and longer horizons untested.” → Only checkable binary rewards were tested, not noisy, subjective or learned ones. (an open problem in GRPO stability and variants)
Open problems in GRPO stability and variants
Do GRPO fixes still work with noisy or non-verifiable rewards, on larger models, and without per-setting tuning?
- Only checkable binary rewards were tested, not noisy, subjective or learned ones. · 22 papers state it
- Models beyond 7B or 8B were not tried, and 70B or MoE models are untested. · 18 papers state it
- Gains are shown on math, and code and other reasoning domains are unchecked. · 12 papers state it
Experimental setup
Datasets: KodCode
Benchmarks: HumanEval MBPP LiveCodeBench-v6
Metrics: pass@1
Baselines: Base GRPO-MT muCode ReVeal RLEF
Builds on: GRPO Reflexion RLEF muCode ReVeal
Closest papers by meaning
- Multi-Turn Code Generation Through Single-Step Rewards (ICML 2025 · similarity 0.90)
- Empowering Multi-Turn Tool-Integrated Agentic Reasoning with Group Turn Policy Optimization (ACL 2026 · similarity 0.90)
- Group Verification-based Policy Optimization for Interactive Coding Agents (ICLR 2026 · similarity 0.89)
- RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learning (ICML 2025 · similarity 0.88)
- Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimization (NeurIPS 2025 · similarity 0.88)
- PAIR: Prefix-Aware Internal Reward Model for Multi-Turn Agent Optimization (NeurIPS 2026 · similarity 0.88)
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.