acceptodds
Published as a conference paper at NeurIPS 2026

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

Abstract

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 and its variants are inherently single-turn: they optimize terminal rewards on isolated prompt-response pairs, leaving them poorly suited to agentic settings where models iteratively refine solutions using environmental feedback. We introduce MURPHY, a multi-turn extension of GRPO for self-correcting code generation. MURPHY constructs feedback-conditioned rollout trees in which failed candidate solutions are paired with executor feedback and expanded into subsequent turns. It then propagates rewards backward through the tree so that later successful refinements credit earlier attempts that surfaced informative feedback. We study two propagation strategies, Max Reward (MaRS) and Mean Reward (MeRS), and introduce post-rollout pruning mechanisms that reduce multi-turn optimization cost. Across three code generation benchmarks, HumanEval, MBPP, and LiveCodeBench-v6, and two model families, Qwen3-1.7B/4B and OLMo-2-7B, MURPHY delivers up to **6%** absolute pass@1 gains over the strongest prior multi-turn execution-feedback methods. Gains are largest on the Medium/Hard LiveCodeBench subsets, reaching **+4.38%/+4.20%** at Iter-5, where iterative self-correction matters most.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_CALuOpenReview ↗
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
  1. Can the authors clarify how MURPHY scales when the refinement horizon becomes longer, given that pruning is applied after rollout generation?
  2. 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.

1 comment

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.

DifficultyIter.REVEAL (native harness)REVEAL (Reflexion harness)MURPHY (Our Method)Δ
Easy186.23 ± 1.0984.1 ± 1.187.49 ± 0.52+1.26
Easy392.49 ± 0.5692.9 ± 1.193.38 ± 0.18+0.48
Easy593.79 ± 0.5492.8 ± 1.194.23 ± 0.16+0.44
Medium146.51 ± 1.5348.2 ± 0.551.12 ± 0.53+2.92
Medium362.38 ± 2.5860.7 ± 0.966.23 ± 0.54+3.85
Medium561.61 ± 1.7461.3 ± 1.367.57 ± 0.61+5.96
Hard111.43 ± 1.5910.8 ± 1.514.33 ± 0.41+2.90
Hard318.13 ± 1.2818.5 ± 0.821.29 ± 0.43+2.79
Hard519.14 ± 0.8620.3 ± 1.624.29 ± 0.38+3.99

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.

VariantHumanEval Iter-1HumanEval Iter-3ΔMBPP Iter-1MBPP Iter-3ΔLCB Iter-1LCB Iter-3Δ
Base74.19 ± 1.9580.07 ± 1.27—43.47 ± 0.6453.93 ± 3.52—32.54 ± 0.1938.52 ± 1.06—
GRPO-MT70.33 ± 0.9382.11 ± 0.35+2.0446.00 ± 0.4058.53 ± 1.03+4.6034.32 ± 0.2441.05 ± 0.05+2.53
μCode [9]73.58 ± 1.2783.34 ± 0.70+3.2744.00 ± 0.6956.20 ± 0.60+2.2736.08 ± 0.6743.42 ± 1.14+4.90
REVEAL72.76 ± 3.3682.72 ± 3.07+2.6544.40 ± 0.7256.67 ± 1.72+2.7434.44 ± 1.1241.27 ± 0.76+2.75
MURPHY (Our Method)79.67 ± 3.0186.58 ± 1.06+6.5144.73 ± 0.5062.00 ± 1.91+8.0737.41 ± 0.5245.35 ± 0.81+6.83

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]

Reviewer_1DsqOpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper proposes MURPHY, a multi-turn extension of GRPO for code generation with execution feedback. The method constructs feedback-conditioned rollout trees, where failed candidate programs are expanded into later refinement attempts using executor feedback. It then propagates rewards backward through the tree so that earlier failed attempts can receive credit when their feedback leads to later successful refinements. The paper studies two reward propagation strategies, MARS and MERS, and introduces pruning strategies to reduce optimization cost. Experiments are conducted on HumanEval, MBPP, and LiveCodeBench-v6 across Qwen3 and OLMo model families.

Strengths and weaknesses

Strengths

  • Clear and useful idea. This work addresses the central challenge of credit assignment in feedback-conditioned multi-turn code generation. The observation that failed attempts can produce useful feedback for later correction is intuitive and important.
  • Simple GRPO-compatible design. MURPHY does not require a PPO critic, learned verifier, or separate verification policy. This makes the method cleaner than some prior execution-feedback training methods.
  • Solid experimental evidence. The paper evaluates on HumanEval, MBPP, and LiveCodeBench-v6, across multiple model families and model sizes. The gains are especially clear in multi-turn settings where self-correction matters.
  • Good ablation and efficiency analysis. The paper compares MARS and MERS, studies pruning strategies, reports mean and standard deviation across runs, includes scaffold sensitivity analysis, and provides a useful compute breakdown.

Weaknesses

  • MURPHY remains more expensive than single-turn GRPO, as the authors acknowledge. INTERP pruning substantially reduces optimization time, but rollout generation and execution-feedback collection are mostly unchanged because pruning is applied after rollouts are generated. This may limit scalability to longer-horizon settings.
  • The algorithmic novelty is moderate. MARS and MERS are natural max/mean backup rules over rollout trees. The main contribution is not a fundamentally new credit-assignment algorithm, but a clean and effective integration of retrospective reward propagation into GRPO for feedback-conditioned code refinement.
Questions

I do not have major questions, as the paper is generally complete and the experimental results are convincing. Could the authors comment on which domains beyond code generation they expect MURPHY to transfer to most naturally? In particular, what properties of the feedback signal are necessary for retrospective reward propagation to be effective?

Limitations

Yes.

Paper formatting concerns

I did not notice any major formatting or anonymity concerns.

Final justification

I have reviewed the authors’ rebuttal and additional experiments and have decided to maintain my original rating.

1 comment

We thank reviewer 1Dsq for the detailed feedback and thoughtful comments as well as the recognition of our work.

Q1. (I do not ... to be effective?)

To better understand which properties of the feedback signal are important for retrospective reward propagation, we ran an additional controlled experiment with Qwen3-1.7B on all 164 HumanEval and 500 MBPP tasks. We compare the full executor feedback used in the paper with several weaker, noisier, or deliberately misaligned alternatives:

  • Binary pass/fail: Reports only whether any visible test failed. This tests whether a minimal correctness signal is sufficient.

  • Aggregate score: Reports only the number and percentage of visible tests passed. This provides information about the degree of success but no diagnostic details.

  • Natural-language error category: Reports only a coarse label, timeout, syntax error, runtime error, or wrong result.

  • Corrupted executor output: Randomly deletes 30% of nonblank output lines and replaces 15% of retained alphanumeric tokens with [CORRUPTED]. This tests robustness to incomplete and noisy diagnostic information.

  • No executor feedback: Provides no execution signal. This isolates the benefit of additional generation and self-refinement from the benefit of executor feedback.

  • Same-task shuffled feedback: Provides full feedback from a different failed candidate for the same task. This tests whether feedback must be precisely aligned with the current candidate or whether broadly task-relevant diagnostics can still help.

  • Full executor output: Provides the visible-test pass count and complete raw executor output, including failed assertions, exceptions, and observed values. This is the setting used in the paper.

For each task and seed, every condition starts from exactly the same Iter-1 implementation; only the feedback shown during refinement changes. Final programs are evaluated on hidden tests. The table reports Iter-3 Pass@1 and its improvement over Iter-1, with mean ± sample standard deviation across three independent seeds.

Feedback during refinementHumanEval Iter-3 (%)HumanEval Δ from Iter-1 (%)MBPP Iter-3 (%)MBPP Δ from Iter-1 (%)
Binary pass/fail84.55 ± 1.27+4.88 ± 0.6150.87 ± 0.83+4.07 ± 0.31
Aggregate score84.15 ± 2.11+4.47 ± 0.7051.13 ± 0.61+4.33 ± 0.12
Natural-language error category84.15 ± 0.61+4.47 ± 2.3150.87 ± 1.55+4.07 ± 0.99
Corrupted executor output84.76 ± 1.83+5.08 ± 0.3555.00 ± 1.44+8.20 ± 0.87
No executor feedback85.16 ± 1.86+5.49 ± 0.0050.33 ± 0.83+3.53 ± 0.31
Same-task shuffled feedback86.18 ± 0.93+6.50 ± 0.9358.60 ± 1.22+11.80 ± 0.72
Full executor output (paper setting)86.58 ± 1.06+6.9162.00 ± 1.91+17.27

These results lead to several observations:

  1. Even minimal feedback is useful. Binary pass/fail feedback, aggregate scores, and coarse error categories all produce improvements on both benchmarks. Retrospective reward propagation therefore does not require detailed execution traces to be effective.

  2. MURPHY tolerates noisy feedback. The gains under corrupted executor output show that the method remains effective even when substantial portions of the diagnostic information are missing or corrupted.

  3. Feedback need not be perfectly candidate-aligned. The strong performance of same-task shuffled feedback suggests that diagnostic information about common failures for the same task can remain useful even when it comes from a different candidate.

  4. Self-refinement explains only part of the improvement. The no-feedback condition shows that additional generation and self-refinement provide some benefit. However, full executor feedback performs best overal, particularly on MBPP, where it improves Pass@1 by 17.27 percentage points, compared with 3.53 points without feedback. Detailed, candidate-specific feedback therefore provides considerable additional value, even if it is not strictly required.

Based on these findings, we expect MURPHY to transfer naturally to domains in which candidate solutions can receive some form of informative evaluation. Examples include mathematical reasoning, formal theorem proving in systems such as Lean, and tasks involving simulators, constraint checkers, or automated verifiers. Overall, from our experiments it appears that feedback appears most effective when it is:

  • grounded in a valid evaluation of the task;

  • at least weakly correlated with solution quality;

  • relevant to the task or its likely failure modes; and

  • sufficiently informative to distinguish productive from unproductive decisions.

Greater detail, reliability, and candidate alignment generally make the feedback more useful, but our experiments suggest that these are helpful properties rather than strict requirements. Because improvements persist with sparse, coarse, corrupted, and candidate-misaligned feedback, MURPHY may also apply to domains with inherently noisy signals, such as human preferences or learned reward-model feedback. We view evaluating these settings, together with feedback validation and confidence weighting, as promising directions for future work.

Reviewer_N9efOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper proposes MURPHY, a feedback-aware extension of GRPO for multi-turn code generation. MURPHY represents code generation process as a feedback-conditioned rollout tree: failed programs are expanded into later refinement attempts using their execution feedback, and later rewards are propagated backward to earlier attempts through retrospective credit assignment. The paper studies two backup rules, MARS and MERS, and introduces pruning strategies to reduce the optimization burden of multi-turn rollouts. The reported results show consistent gains in multi-turn evaluation, especially on harder LiveCodeBench subsets where iterative correction is more important.

Strengths and weaknesses

Strenths are:

  1. I think one big strength is the simplicity of the proposed method relative to several prior multi-turn code RL methods. MURPHY does not require a learned verifier, a separate critic, or a dedicated verification policy. It keeps the GRPO-style local group normalization and changes the reward assignment through retrospective propagation. This makes the algorithm easier to understand and potentially easier to implement within existing GRPO training pipelines.
  2. The paper identifies a real mismatch between single-turn RLVR training and multi-turn code-agent behavior. In execution-feedback settings, a wrong first attempt is not always useless: it may expose a failing test, a runtime error, or an edge case that makes a later correction possible. The rollout-tree formulation is a clean way to preserve this causal relation between an attempted solution, the feedback it produces, and the refinements that follow.
  3. The extensive experiments are good. The paper evaluates on three benchmarks, multiple model families and sizes, and several inference-turn budgets. The results are most persuasive in Iter-3 and Iter-5 settings, because those are the settings where feedback-conditioned refinement is actually tested.

Weaknesses:

  1. My big concern is the evaluation is limited to code-generation tasks with relatively clean executable feedback. This is a natural starting point, but it means the method has not yet been shown to work when feedback is noisy, ambiguous, delayed, or human-provided.
  2. My second concern is about the cost. INTERP reduces the number of sequences used in optimization, but the rollout tree still has to be generated and executed before pruning. Thus, the main computational bottleneck is only partly addressed.
  3. I think MARS may over-credit some early failures. If a descendant solution succeeds because of sampling luck or because the model abandons the parent’s reasoning path, the parent attempt may receive credit even though its feedback was not actually informative. The MARS vs. MERS ablation is helpful, but the paper would benefit from a failure analysis of cases where retrospective credit assignment helps versus cases where it reinforces misleading attempts.
Questions
  1. How sensitive are the gains to the executor feedback format? For example, do the results hold with only pass/fail labels, noisy public tests, or natural-language error summaries?
  2. How often does MARS assign high credit to an early failed attempt whose feedback was not actually useful? A small qualitative taxonomy of such cases would be useful.
  3. Can the authors provide an end-to-end compute/performance frontier, including rollout generation, code execution, optimization, and inference-time cost?
Limitations

yes

Paper formatting concerns

N/A

1 comment

We thank reviewer N9ef for the detailed feedback and thoughtful comments. Below, W denotes weakness and Q denotes questions.

W1. & Q1. (My big concern ... or human-provided) and (How sensitive ... error summaries?)

To assess sensitivity to the executor feedback format, we compare the feedback used in the paper with progressively weaker, noisier, or misaligned alternatives:

  • Full executor output (used in the paper): The visible-test pass count and complete raw executor output, including failed assertions, exceptions, and observed values.
  • Binary pass/fail: Only whether any visible test failed, with no pass count or failure details.
  • Aggregate score: Only the number and percentage of visible tests passed, without per-test details.
  • Natural-language error category: Only timeout, syntax error, runtime error, or wrong result, without raw executor output.
  • Corrupted executor output: A lossy version of the full feedback. Each nonblank line is independently deleted with probability 0.30. If all lines are removed, one is restored so that the feedback remains nonempty. This corruption changes only the text shown to the model; it does not alter the program, tests, test outcomes, or hidden-test evaluation.
  • No executor feedback: No execution signal, isolating the improvement obtained from additional generation and self-refinement alone.
  • Same-task shuffled feedback: Full feedback from a different failed candidate for the same task, testing whether task-relevant but candidate-misaligned feedback remains useful.

We run this controlled comparison with Qwen3-1.7B trained using MURPHY - MARS (Table 4) on all 164 HumanEval and 500 MBPP tasks. For each task and seed, the feedback-ablation conditions start from exactly the same Iter-1 implementation; only the feedback shown during refinement changes. Final programs are evaluated on hidden tests. The table reports Iter-3 Pass@1 and its change from Iter-1, with mean ± sample standard deviation over three independent seeds.

Feedback during refinementHumanEval Iter-3 (%)HumanEval Δ from Iter-1 (%)MBPP Iter-3 (%)MBPP Δ from Iter-1 (%)
Binary pass/fail84.55 ± 1.27+4.88 ± 0.6150.87 ± 0.83+4.07 ± 0.31
Aggregate score84.15 ± 2.11+4.47 ± 0.7051.13 ± 0.61+4.33 ± 0.12
Natural-language error category84.15 ± 0.61+4.47 ± 2.3150.87 ± 1.55+4.07 ± 0.99
Corrupted executor output84.76 ± 1.83+5.08 ± 0.3555.00 ± 1.44+8.20 ± 0.87
No executor feedback85.16 ± 1.86+5.49 ± 0.0050.33 ± 0.83+3.53 ± 0.31
Same-task shuffled feedback86.18 ± 0.93+6.50 ± 0.9358.60 ± 1.22+11.80 ± 0.72
Full executor output (paper setting)86.58 ± 1.06+6.9162.00 ± 1.91+17.27

The gains therefore persist when feedback is reduced to a binary label, an aggregate score, or a coarse natural-language category, and also when the executor output is substantially corrupted. The no-feedback control shows that additional generation and self-refinement explain part of the improvement. The strong result with same-task shuffled feedback further suggests that task-relevant diagnostic information can remain useful even when it is not aligned with the current candidate. Thus, MURPHY tolerates sparse, coarse, corrupted, and candidate-misaligned feedback when the underlying tests are valid. We will clarify this distinction in the paper and identify test validation, selection, and confidence weighting as important directions for future work.

W3. & Q2. (I think ... misleading attempts) and (How often ... be useful)

To analyze whether a successful descendant reflects informative executor feedback, sampling variation, or a change in the model’s reasoning path, we evaluate the fully trained Qwen3-1.7B MaRS model on 50 held-out MBPP problems that were not part of the training data.

We use three sampling seeds. For each seed, the model generates eight initial solutions per problem. For each failed initial solution within this group, we condition the model on the original problem, the corresponding failed solution, and its executor feedback, and generate eight new solutions. MaRS propagates a higher reward to the failed initial solution if at least one of these eight new solutions passes all visible tests.

This occurs for 64 of 212 failed initial solutions for seed 123, 62 of 194 for seed 124, and 60 of 208 for seed 125. Pooling the three seeds, MaRS assigns retrospective credit to 186 of 614 failed initial solutions.

For each of these 186 cases, we then generate two independent holdout sets:

  • With feedback: Eight new solutions generated using the original problem, failed solution, and executor feedback.
  • Without feedback: Eight new solutions generated using the same problem and failed solution, but without the executor feedback.

We use newly generated solutions for this comparison because reusing the solutions that triggered the original MaRS backup would guarantee a success in the feedback condition by construction. The holdout comparison instead tests whether the feedback advantage reappears in independent samples.

We evaluate the role of feedback using two measures:

  • Best-of-eight result: Among the 186 MaRS-credited cases, feedback wins in 97 cases: at least one of the eight feedback-guided solutions passes all visible tests while all eight solutions generated without feedback fail. Averaged across the three seeds, this corresponds to 52.3% ± 6.1% of cases. The two conditions tie in 86 cases (46.1% ± 4.7%): both find a passing revision in 48 cases, while neither does so in 38. No-feedback resampling wins in only 3 cases (1.6% ± 1.6%). Thus, feedback is important in 52.3% of cases, enabling a best-of-eight success that ordinary resampling misses, while it rarely harms performance: no-feedback resampling succeeds when feedback does not in only 1.6% of cases

  • Pass percentage: For each condition, we compute the percentage of the eight newly generated solutions that pass all visible tests. For example, if two of eight solutions pass, the pass percentage is 25%. Pooling the three seeds, feedback produces a higher pass percentage in 127 of 186 cases, the same pass percentage in 51, and a lower pass percentage in only 8. Across seeds, feedback improves the pass percentage in 68.4% ± 5.2% of MaRS-credited failures and is strictly worse in only 4.3% ± 0.8%.

Thus, both results show that feedback is useful in most MaRS-credited cases: it produces a uniquely successful best-of-eight outcome in more than half and increases the pass percentage in more than two-thirds.

Qualitative taxonomy. We additionally inspect a balanced set of 20 feedback/no-feedback comparisons: 10 cases in which feedback increases the pass percentage and 10 in which it does not. This balanced selection is used only to contrast the qualitative behaviors and does not represent their prevalence in the full evaluation. For compact presentation, we group the comparisons using six descriptive labels. The qualitative labels were generated by GPT-5.6-sol using the failed initial solution, executor feedback, solutions generated with and without feedback, and their test outcomes. We use this taxonomy as an illustrative analysis and do not claim human inter-annotator agreement.

OutcomeAnnotation labelComparisonsRepresentative behavior
Feedback increases pass percentageOutput-contract repair5The executor output reveals an interface error, such as printing instead of returning a tuple or returning tuple elements in the wrong order. Solutions generated with feedback correct the required output structure, while those generated without feedback generally retain the error.
Feedback increases pass percentageAlgorithmic or semantic repair4A failed assertion localizes a conceptual error, such as counting individual characters instead of a substring or using an incorrect recurrence. Solutions generated with feedback adopt the correct interpretation more consistently.
Feedback increases pass percentageRuntime or API localization1A runtime error identifies a missing or incorrectly named entry point, enabling the generated solution to expose the required function.
Feedback does not increase pass percentageRepair is not feedback-specific2Solutions generated both with and without feedback independently discover the same correction, so the successful repair is not unique to the feedback condition.
Feedback does not increase pass percentageFeedback is ignored or only partially used6The executor output identifies the required type, ordering, or behavior, but the generated solution changes only a comment, preserves the error, or makes an incomplete repair.
Feedback does not increase pass percentageAlgorithmic misconception persists2The generated solution reacts to the failed example but retains the underlying incorrect interpretation or algorithm and continues to fail.

Overall, the counterfactual results show that executor feedback is informative in most MaRS-credited cases: it increases the pass percentage in 127 of 186 cases pooled across the three seeds, while reducing it in only 8. The qualitative analysis further shows that feedback commonly enables concrete output-contract, semantic, runtime, and API repairs. Cases without improvement mainly arise when the model independently discovers the same repair or fails to use the available diagnostic information. These findings support MaRS as a useful credit-assignment mechanism while also characterizing the limited set of cases in which a best-of-eight success is not unique to the feedback condition. We will add this analysis and taxonomy to the paper.

[Continued below]

Comments on the paper

1 comment
Meta-review

This paper introduces MURPHY, a GRPO-compatible method for multi-turn feedback-driven code generation that retrospectively credits failed attempts when their feedback enables successful refinements. The method is simple and well motivated, and achieves consistent improvements over the evaluated multi-turn baselines across multiple code benchmarks and model configurations.

The main concern in the initial meta-review, also raised by CALu, was whether the evidence supports the broader tree-structured multi-turn framing beyond one-step retrospective credit assignment. The rebuttal provides a direct two- versus three-turn comparison, showing benefits on LiveCodeBench but little or negative improvement elsewhere. This partially addresses the concern: deeper propagation can be useful, particularly on harder tasks, but scalability and benefits for substantially deeper training-time trees remain unestablished.

Other concerns were more substantially addressed. The authors provide scaffold-controlled REVEAL comparisons and compute-matched GRPO-MT experiments, reducing the baseline and efficiency concerns raised by CALu and N9ef. Additional feedback ablations and counterfactual analyses strengthen the evidence for MaRS credit assignment, while the Sudoku experiment substantially reduces the generalization concern; N9ef subsequently considered this concern largely addressed. The remaining limitations are primarily deeper-tree scalability and the moderate algorithmic novelty noted by 1Dsq.

Overall, the empirical gains are consistent and establish an advantage over the evaluated multi-turn feedback-training baselines, although the margins are not uniformly large and the conceptual advance is relatively modest. Given the simplicity of the method, the controlled empirical evidence, and the concerns substantially addressed during rebuttal, I find the contribution sufficient for acceptance, while recognizing that it is not among the strongest accepts.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.