- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper studies how to extend GRPO to multi-turn code generation with execution feedback. Standard GRPO is mainly designed for single-turn prompt-response settings, but real code generation agents often revise their solutions over multiple turns after observing executor feedback such as error messages, stack traces, and failing test cases. To address this problem, the authors propose MURPHY, a feedback-aware GRPO method. MURPHY expands failed candidate solutions into later turns together with executor feedback, forming a feedback-conditioned rollout tree. It then propagates rewards from later successful refinements back to earlier failed attempts, so that an earlier failed attempt can receive positive credit if it produced useful feedback for later correction. The paper proposes two reward propagation strategies, MARS based on Max Reward and MERS based on Mean Reward, and also introduces pruning strategies to reduce the training cost of multi-turn rollouts.
Strengths and weaknesses
O Strengths
-
The paper addresses an important and timely problem. GRPO has recently become widely used for LLM reasoning post-training, but it is basically designed for single-turn settings. In contrast, code generation agents often execute code multiple times and revise their answers based on failure feedback. Therefore, extending GRPO to multi-turn code generation with execution feedback is practical and meaningful.
-
The proposed method is intuitive and well motivated. The paper does not treat a failed code generation simply as a bad attempt. Instead, it considers that a failed attempt may produce useful feedback that helps a later refinement. This is a reasonable motivation for retrospective credit assignment in multi-turn code generation.
-
The method is relatively simple. MURPHY does not require a separate verification policy, and it keeps the GRPO-style update while modifying the reward assignment mechanism for the multi-turn rollout tree. This makes the method easy to understand and relatively clean compared with methods that require additional verification or value-estimation components.
O Weaknesses
-
The comparison with prior multi-turn execution-feedback methods is not fully comprehensive or uniform. REVEAL is compared only in the LiveCodeBench-v6 setting with Qwen3-4B, and it is evaluated using its own official generation-verification scaffold rather than the same Reflexion scaffold used for other baselines. This introduces a cross-scaffold confound. In addition, RLEF is excluded due to compute cost, although it is one of the most directly related multi-turn RL baselines.
-
The training cost and scalability of MURPHY remain important concerns. Since MURPHY constructs feedback-conditioned rollout trees, the number of generated trajectories can grow quickly as the number of turns increases. Although the paper proposes pruning strategies, pruning is applied after rollout generation, so the generation cost and execution reward computation cost largely remain. Therefore, it is still unclear how well the method scales to longer refinement horizons or larger training datasets.
-
The evaluation scope is limited to code generation benchmarks where execution feedback is relatively clean. In repository-level debugging, issue resolution, or broader software engineering agent tasks, feedback can be noisier, delayed, or distributed across multiple files. It is therefore unclear whether MURPHY can generalize well to more complex software engineering tasks.
-
The claims of the paper depend heavily on a two-turn setting, although the method is motivated as a general multi-turn and tree-structured framework. Most main experiments use S=2, and the only three-turn result mainly compares pruned and unpruned three-turn variants. It does not clearly compare three-turn MURPHY against two-turn MURPHY. Therefore, it is unclear whether increasing the tree depth provides additional benefits, or whether the main gains mostly come from one-step retrospective credit assignment.
Questions
- Can the authors clarify how MURPHY scales when the refinement horizon becomes longer, given that pruning is applied after rollout generation?
- Can the authors compare two-turn MURPHY with three-turn or deeper MURPHY to show whether deeper rollout trees provide additional benefits?
Limitations
Yes
Paper formatting concerns
No
Final justification
I have reviewed the authors’ rebuttal and updated my score accordingly.
We thank reviewer CALu for the detailed feedback and thoughtful comments. Please note that below, W denotes weaknesses and Q denotes questions.
W1. (The comparison ... multi-turn RL baselines)
Comparisons with REVEAL: In the main paper, Base, GRPO-MT, μCode, and MURPHY use the same Reflexion scaffold, while REVEAL uses its official implementation and native generation–verification scaffold. We made this choice because REVEAL has a method-specific inference procedure / inference scaffold, including its own prompts, output parser, test generation, execution feedback, and memor, and replacing it with Reflexion could potentially disadvantage the method.
Nevertheless, we agree that this creates a potential cross-scaffold confound. We therefore reran REVEAL with Qwen3-4B using the same Reflexion harness as the other methods, similar to Table-5 in the appendix. Its performance is similar under the native and Reflexion harnesses, and MURPHY achieves a higher mean score than the better REVEAL configuration at every difficulty level and iteration budget. Here,
Δis MURPHY’s absolute percentage-point improvement over the better of the two REVEAL results. Note that here `Iter' denotes the number of inference-time generation/refinement iterations in the Reflexion framework.Following the reviewer’s suggestion, we also performed a fully controlled Qwen3-1.7B comparison using the Reflexion harness for all methods on HumanEval, MBPP, and LiveCodeBench-v6. Because our focus is multi-turn execution-feedback learning, Iteration 3, after the model has received and acted on execution feedback, is our primary comparison; we report Iteration 1 for completeness. The table reports Pass@1 (mean ± sample standard deviation) over three runs, with LiveCodeBench-v6 evaluated on the Aggregate split. Here,
Δdenotes the Iteration-3 improvement over the Base model’s Iteration-3 score.Comparisons with RLEF: Regarding RLEF, we agree that it is closely related. However, a faithful reproduction is beyond our available resources: RLEF reports 1,024 rollouts per iteration and 288 H100 GPUs for its 8B experiments, increasing to 2,304 H100 GPUs for 70B, and no official implementation is available. Although μCode and REVEAL (our baselines) also discuss RLEF as related work, neither reports an empirical comparison. We will clarify these limitations, expand our qualitative comparison with RLEF, and add the new scaffold-controlled REVEAL results to the revision.
W2. & W3. (The training ... larger training datasets) and (The evaluation ... engineering tasks)
We agree that feedback-conditioned rollout generation and execution contribute to MURPHY’s training cost, particularly because our current pruning strategies operate after rollouts are generated. However, this concern is not specific to MURPHY. Our principal multi-turn baselines, REVEAL and μCode, also generate, evaluate, and refine multiple candidate solutions and therefore face the same fundamental increase in generation and execution costs as the refinement horizon grows. Although their mechanisms and exact cost profiles differ, neither eliminates the underlying expense of multi-turn interaction.
Such interaction is intrinsic to agentic tasks such as code generation, debugging, and tool use, where an agent must act, observe environmental feedback, and revise its behavior. The relevant comparison is therefore how effectively each method uses a fixed multi-turn compute budget. In our experiments, MURPHY and the baselines use the same training data and matched compute budgets and are evaluated under the same refinement budget. Under these controlled conditions, MURPHY consistently outperforms REVEAL and μCode, indicating that its gains arise from using the available multi-turn experience more effectively rather than from additional data or computation.
As preliminary evidence that these benefits extend beyond function-level code generation to more complex software-engineering tasks, we additionally evaluate the Qwen3-4B checkpoint from Figure 1 using the mini-swe-agent harness on all 500 SWE-Bench Verified tasks, with a 32K-token context window and up to 50 agent iterations per task. In this substantially more complex repository-level setting, MURPHY resolves 5.20% (26/500) of tasks, compared with 2.80% (14/500) for the base model and 2.40% (12/500) for GRPO-MT. These results provide initial evidence that MURPHY’s learned feedback-conditioned behavior transfers to longer-horizon, repository-level software-engineering tasks.
These preliminary results complement the scope of our main evaluation. As stated in the paper, our primary claims concern the evaluated model sizes, dataset scales, compute budgets, and refinement horizons. Moreover, HumanEval, MBPP and LiveCodeBench-v6 are standard evaluation settings used by the relevant baselines, and neither REVEAL nor μCode establishes scalability to arbitrarily long refinement horizons or arbitrarily large datasets. MURPHY is therefore evaluated at a scale consistent with prior work rather than under an unusually restricted setting, while the SWE-Bench Verified results provide additional evidence beyond that standard scope.
Finally, scalability cannot be determined from the number of turns alone. It depends on several interacting factors, including base-model capability, task difficulty and dataset composition, the quality and informativeness of execution feedback, branching factor, and the rate at which successful trajectories terminate early. For example, a stronger base model or higher-quality feedback may require fewer refinement attempts, substantially reducing the realized rollout and execution cost. We therefore view longer-horizon scalability as a broader, setting-dependent question for multi-turn feedback-based methods, including REVEAL and μCode, rather than a limitation isolated to MURPHY. While our SWE-Bench Verified results are encouraging, they do not by themselves resolve training-time scalability to substantially larger datasets or rollout trees. We leave broader evaluation across models, agent scaffolds, training scales, and complex software-engineering tasks to future work.
For our ablation on sensitivity to the executor-feedback format and quality, please refer to our response to W1 from Reviewer N9ef.
[Continued below]