From Patches to Trajectories: Privileged Process Supervision for Software-Engineering Agents
Murong Ma, Tianyu Chen, Yun Lin, Shuai Lu, Qinglin Zhu, Yeyun Gong, Zhiyong Huang, Peng CHENG, Yan Lu, Jin Song Dong
NeurIPS 2026
Abstract. Supervised fine-tuning (SFT) on long teacher trajectories is the dominant method for instilling investigation and reasoning capabilities into open software-engineering (SWE) agents. Under SFT, every retained response is an imitation target, so the student inherits not only the trajectory's outcome but also any flaw in its intermediate steps, including ungrounded leaps and redundant loops. High-quality training data must therefore be jointly effective (each step is grounded and narrows the agent's epistemic gap to the correct fix) and efficient (each step is information-bearing rather than redundant or looping). Existing recipes filter or relabel teacher rollouts using only a binary terminal verifier, which does not directly target these axes and provides no supervision on instances where the teacher fails.
Every real issue ships with a developer-authored reference patch that implicitly testifies to the file paths, runtime behaviors, and conventions a fix presupposes, but the standard pipeline discards it. We propose P2T (Patches-to-Trajectories), which uses as privileged information during curation, and frames trajectory construction as a bi-objective program over per-step effectiveness and trajectory length. A reverse phase distills into a latent process graph of contextual facts and solution milestones, encoding dense intermediate anchors in constructive ordering. A forward phase curate trajectories from blinded teacher continuations, scoring per-step progress against under a leakage-blocking groundedness check and committing the shortest segments that retain effectiveness.
Using only 1.8k curated SWE-Gym instances, P2T improves both axes simultaneously over outcome-filtered SFT and its tool-error-masking variant: on SWE-bench Verified, it lifts Pass@1 by up to +10.8 points while cutting per-instance inference cost by 15%, with consistent gains on SWE-bench Lite and across two teachers. A size-matched ablation and qualitative analysis further isolate per-trajectory quality from data scale.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
I have read the authors’ response and considered the discussion after rebuttal. In my assessment, and consistent with the reviewers’ views, the response adequately addressed the main concerns raised in the initial meta review. The authors clarified the role of the reference patch, the groundedness checks used to reduce leakage, and the empirical scope of the study. I did not rely on any information outside the written reviews, the authors’ response, and the OpenReview discussion.
This paper proposes P2T, a data curation framework that uses developer authored reference patches as privileged information to construct higher quality SFT trajectories for software engineering agents. The method first distills the reference patch into a latent process graph of contextual facts and solution milestones, then uses this graph to select effective, concise teacher trajectories under groundedness checks. With only 1.8k curated SWE Gym instances, P2T improves Pass@1 by up to 10.8 points on SWE bench Verified while reducing per instance inference cost by about 15 percent.
The paper has clear strengths. All three reviewers recognize the novelty and practical relevance of using reference patches as a source of dense process supervision rather than only as terminal verifiers. The experiments are thorough, including size matched and compute matched comparisons, trajectory quality analyses, and component ablations. The method improves both effectiveness and inference efficiency, and the ablations provide convincing support for the main design choices.
Some concerns remain. The empirical results are based on single training runs without confidence intervals or multiple seeds. The possibility of residual semantic leakage from the reference patch is not fully eliminated, even though the groundedness checks appear useful. The scope is also limited to OpenHands, Qwen family students, and the evaluated SWE benchmarks, so broader generalization remains to be tested. The presentation could also be clearer for readers unfamiliar with the pipeline.
Overall, however, these limitations do not outweigh the contribution. The paper presents a novel, practically useful, and empirically well supported approach to improving software engineering agents through higher quality trajectory curation. The remaining concerns are important but appropriate for future work rather than grounds for rejection. For these reasons, my recommendation remains Accept.
Final justification
Same as the meta review.
- Final justification
- Same as the meta review.
Read meta-review
Meta-review
I have read the authors’ response and considered the discussion after rebuttal. In my assessment, and consistent with the reviewers’ views, the response adequately addressed the main concerns raised in the initial meta review. The authors clarified the role of the reference patch, the groundedness checks used to reduce leakage, and the empirical scope of the study. I did not rely on any information outside the written reviews, the authors’ response, and the OpenReview discussion.
This paper proposes P2T, a data curation framework that uses developer authored reference patches as privileged information to construct higher quality SFT trajectories for software engineering agents. The method first distills the reference patch into a latent process graph of contextual facts and solution milestones, then uses this graph to select effective, concise teacher trajectories under groundedness checks. With only 1.8k curated SWE Gym instances, P2T improves Pass@1 by up to 10.8 points on SWE bench Verified while reducing per instance inference cost by about 15 percent.
The paper has clear strengths. All three reviewers recognize the novelty and practical relevance of using reference patches as a source of dense process supervision rather than only as terminal verifiers. The experiments are thorough, including size matched and compute matched comparisons, trajectory quality analyses, and component ablations. The method improves both effectiveness and inference efficiency, and the ablations provide convincing support for the main design choices.
Some concerns remain. The empirical results are based on single training runs without confidence intervals or multiple seeds. The possibility of residual semantic leakage from the reference patch is not fully eliminated, even though the groundedness checks appear useful. The scope is also limited to OpenHands, Qwen family students, and the evaluated SWE benchmarks, so broader generalization remains to be tested. The presentation could also be clearer for readers unfamiliar with the pipeline.
Overall, however, these limitations do not outweigh the contribution. The paper presents a novel, practically useful, and empirically well supported approach to improving software engineering agents through higher quality trajectory curation. The remaining concerns are important but appropriate for future work rather than grounds for rejection. For these reasons, my recommendation remains Accept.
3 comments
3. Does P2T generalize beyond OpenHands, Qwen students, and mostly single-file benchmarks?
We chose OpenHands because it is a public, reproducible, general-purpose scaffold used by several closely related SWE-agent training efforts, including SWE-Gym [10], SWE-Lego [15], and Skywork-SWE [28], in addition to the OpenHands platform paper [17]. Nevertheless, the forward phase operates over scaffold-specific actions and observations, so transfer to another scaffold requires regenerating the trajectory dataset rather than merely rerunning evaluation. A complete P2T curation run costs approximately 226 aggregate H200 GPU-hours on an 8xH200 node; this was not feasible alongside the three-seed study during the rebuttal period.
We have also completed the additional experiment with a Llama 3.1 8B student on SWE-bench Verified, using one greedy rollout per task under the same OpenHands 100-turn setup. Cost uses the OpenRouter listing's headline prices for Llama 3.1 8B Instruct: $0.02/$0.04 per 1M input/output tokens.
| Student | Training data | Avg. cost/task ($) | Avg. turns/task | Hit 100-turn cap | Pass@1 (%) |
|---|---|---|---|---|---|
| Llama 3.1 8B | RS SFT | 0.07212 | 94.45 | 363/500 (72.6%) | 17.8 |
| P2T SFT | 0.06783 | 86.19 | 306/500 (61.2%) | 22.6 |
P2T improves Pass@1 by +4.8 points while reducing average cost by 5.9%, average turns by 8.7%, and 100-turn-cap incidence by 11.4 points. The high absolute cap rate confirms that this 8B student remains capacity-limited even after SFT, but P2T materially reduces this failure mode. This result extends our evidence beyond the Qwen family and to a smaller student, while the current scaffold evidence remains limited to OpenHands. DeepSWE and FrontierCode were released only after the NeurIPS submission deadline (May 26 and June 8, 2026, respectively), and a further benchmark-scale experiment was not feasible during the rebuttal. We will state these limitations explicitly.
4. Can the formal presentation be made easier to follow?
We agree that the worked example makes the method easier to understand than the current formal presentation. Without changing the paper's technical structure, we will make the formalism easier to follow by adding a concise roadmap at the beginning of Sec. 4, defining each symbol immediately before it is used, and following each key equation with a plain-language interpretation. We will also use consistent terminology across Fig. 1 and Secs. 4.1-4.2, add clearer pointers to the worked example in Appendix I, and explicitly distinguish deterministic design constraints from LLM-mediated empirical checks.
Thanks for your detailed explanation and new evidence. My questions are resolved.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper explores the limitation behind SFT for SWE agents, where every assistant turn the student keeps becomes something it learns to imitate, so unideal behavior in trajectories can lead to poor learning. The authors discuss why using test-pass rejection sampling gives nothing on the issues the teacher never solves. The paper propose using the gold patch as privileged information and how the curation procedure helps to score and shape trajectories to imrpove their quality. The student never sees the gold patch.
The proposed method P2T turns the patch into a graph of contextual facts and solution milestones. Empirically, P2T improves both resolve rate and inference cost over outcome-filtered SFT, and also run other relevant ablation experiments.
Strengths and weaknesses
Strengths
- The framing is well motivated. Turning the reference patch from a pass/fail check into a source of per-step supervision is a novel idea
- The main risk of patch leakage is identified and graph construction to ensure leakage does not happen is done well.
- Great results on both axes - better resolve rate and lower inference cost.
- I like the ablation experiments. They are well thought and support the claims made in the paper.
- The worked example in Appendix helps a lot to understand what's going on. The paper introduces a lot of detail, but without the example, it's really jard to figure out the overall flow.
Weaknesses
- Writing in paper should be improved. In an attempt to introduce formal math symbols and theory, the overall idea gets lost. I found it hard to understand the method after reading the paper, until I saw the worked example. Needs simpler writing.
- The great result is on Lite and Verified. Lite is by design single-file edits and verified is 85% single-file edits. Both are easy subsets. So, I am not sure if the results and approach will hold its value on difficult multi-file tasks and difficult benchmarks like DeepSWE, FrontierCode etc.
- Some human review for the leakage checks is needed IMO.
- would be interesting to explore if the curation advantage holds when teacher and student are close in ability
Questions
- Is the gain only for Qwen? would be nice to see another model say Llama, Gemma etc. - would really help in believing that the approach works beyond Qwern model
- Other points I mentioned above in Weakness.
Limitations
Mostly yes.
Final justification
As I mentioned in my comment to authors on their response:
I like the method overall and would definitely vouch for it with a higher rating if I was convinced that the method would scale to more difficult tasks. I understand that DeepSWE was released later, but we have SWE-Bench Pro, SWE-Bench Multilingual, Multi-SWE-Bench, SWE-PolyBench and other datasets which have been available since last year.
Given that the method has been shown to work largely on simpler (and contaminated) Python-only benchmarks, the results are not convincing enough for me to believe that the method will work for other use-cases. Hence, I am maintaining my score.
Formatting concerns
I didnt find anything major
4 comments
We thank the reviewer for the positive assessment and for identifying where the paper's presentation and scope should be sharper.
1. Is the gain specific to Qwen, or does it extend to another model family?
Using fixed trajectory datasets curated by Qwen3-Coder-480B, we repeated full-parameter SFT with three independent random seeds, held each dataset and all hyperparameters fixed, and reevaluated every model on Verified and Lite. The table reports mean +/- sample standard deviation over the three independently trained models.
| Student | Training data | Verified Pass@1 (%) | Verified cost ($) | Lite Pass@1 (%) | Lite cost ($) |
|---|---|---|---|---|---|
| Qwen2.5-Coder-14B | Test-Pass RS | 35.87 +/- 0.42 | 0.923 +/- 0.025 | 22.57 +/- 0.51 | 0.917 +/- 0.021 |
| P2T size-matched | 37.20 +/- 0.40 | 0.873 +/- 0.035 | 23.23 +/- 0.50 | 0.917 +/- 0.015 | |
| P2T full | 41.67 +/- 1.50 | 0.793 +/- 0.042 | 29.77 +/- 0.40 | 0.833 +/- 0.015 | |
| Qwen2.5-Coder-32B | Test-Pass RS | 39.27 +/- 0.76 | 0.923 +/- 0.035 | 28.67 +/- 0.35 | 0.933 +/- 0.006 |
| P2T size-matched | 41.87 +/- 0.61 | 0.863 +/- 0.023 | 29.57 +/- 0.23 | 0.890 +/- 0.010 | |
| P2T full | 49.67 +/- 0.70 | 0.793 +/- 0.012 | 35.80 +/- 0.17 | 0.813 +/- 0.015 |
We have also completed an experiment with a Llama 3.1 8B student on SWE-bench Verified, using one greedy rollout per task under the same OpenHands 100-turn setup. Cost uses the OpenRouter listing's headline prices for Llama 3.1 8B Instruct: $0.02/$0.04 per 1M input/output tokens.
| Student | Training data | Avg. cost/task ($) | Avg. turns/task | Hit 100-turn cap | Pass@1 (%) |
|---|---|---|---|---|---|
| Llama 3.1 8B | RS SFT | 0.07212 | 94.45 | 363/500 (72.6%) | 17.8 |
| P2T SFT | 0.06783 | 86.19 | 306/500 (61.2%) | 22.6 |
P2T improves Pass@1 by +4.8 points while reducing average cost by 5.9%, average turns by 8.7%, and 100-turn-cap incidence by 11.4 points. The high absolute cap rate shows that this 8B student remains capacity-limited, but P2T materially reduces that failure mode. This result demonstrates transfer beyond Qwen and to a smaller model under the evaluated OpenHands scaffold.
2. Can the formal presentation be simplified so that the overall method is easier to follow?
We agree. We will retain the technical structure while adding a plain-language roadmap at the beginning of Sec. 4, defining each symbol immediately before use, interpreting every key equation in words, aligning terminology across Figure 1 and Secs. 4.1-4.2, and adding clearer pointers to the worked example in Appendix I. We will also distinguish deterministic design constraints from LLM-mediated empirical checks.
3. Will the approach remain effective on harder multi-file benchmarks such as DeepSWE or FrontierCode?
We agree that Verified and especially Lite underrepresent difficult multi-file work, so the current evidence does not establish performance on these settings. DeepSWE and FrontierCode were released on May 26 and June 8, respectively, after the NeurIPS submission deadline and therefore were unavailable when we submitted the paper. A further benchmark-scale evaluation was not feasible within the remaining rebuttal period; we will narrow the claim and state this limitation explicitly.
4. Can the authors provide human review of the leakage checks?
We conducted a blinded audit with two independent expert programmers, each with more than five years of Python experience and blinded to the system verdicts. For the process graph, we sampled five nodes from each of five instances (25 total). Experts received the issue, relevant pre-fix code, reference patch for audit comparison, and each node with its predecessor states and unlocker; they judged whether it relied on patch-only information. For constructed trajectories, we sampled five accepted curator-mutated responses from each of six trajectories (30 total), restricted to mutations within the first 30 interactions so experts could inspect the complete preceding history.
| Audited artifact | Items | Mean expert-labeled leakage proportion | Cohen's kappa |
|---|---|---|---|
| Process-graph nodes | 25 | 0.060 | 0.648 |
| Accepted curator-mutated responses | 30 | 0.083 | 0.783 |
The audit indicates low but nonzero residual leakage, not a formal guarantee. We will add the protocol, agreement statistics, representative examples, and this qualification to the main paper.
5. Does the curation advantage hold when the teacher and student are close in capability?
This is an interesting and currently unanswered regime. Our teachers are substantially larger than the 14B/32B students, so the current experiment does not isolate what happens when teacher and student capabilities are close. The similar gains under Qwen3-Coder-480B and GLM-5 suggest that P2T is not tied to one curator architecture, but it does not answer the capability-gap question. We will identify close-capability/self-curation as future work rather than extrapolate from the current teachers.
Thanks for performing the additional analysis and experiments that I requested in my review. I appreciate the time and effort you invested in the rebuttal.
I like the method overall and would definitely vouch for it with a higher rating if I was convinced that the method would scale to more difficult tasks. I understand that DeepSWE was released later, but we have SWE-Bench Pro, SWE-Bench Multilingual, Multi-SWE-Bench, SWE-PolyBench and other datasets which have been available since last year.
Given that the method has been shown to work largely on simpler (and contaminated) Python-only benchmarks, the results are not convincing enough for me to believe that the method will work for other use-cases. Hence, I am maintaining my score.
I suggest the authors to focus on 2 parts to improve the submission:
- include other languages beyond Python
- experiments on additional benchmarks beyond Lite and Verified
Once the authors show the method works across the above, it'll be a good research publication.
Thank you for the thoughtful follow-up. We agree that multilingual and harder-benchmark evaluations are important. A multilingual study could not be completed responsibly within the remaining rebuttal period, but we evaluated Qwen2.5-Coder-32B-Instruct on the more complex 266-task Python subset of SWE-bench Pro. The base model before SFT resolves 0 tasks.
| Training | Cost/task (USD) | Avg. turns | Hit 100-turn cap | Pass@1 |
|---|---|---|---|---|
| RS SFT | 0.982 | 94.53 | 192/266 (72.2%) | 8.27% |
| P2T SFT | 0.965 | 90.88 | 178/266 (66.9%) | 10.52% |
P2T improves Pass@1 by +2.25 points, reduces average turns by 3.9%. The cost reduction is modest (1.7%). The possible reason is that, both models frequently exhaust this budget (official eval scripts suggested 150 max steps cap, but we use 100 to align with the SFT constrain), costs are heavily truncated, compressing the observable cost difference. These results are modest but consistent on a substantially harder benchmark; we will clearly retain multilingual evaluation as an open limitation.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This submission studies how to build better supervised fine-tuning data for software-engineering agents. The authors argue that ordinary test-pass rejection sampling keeps whole teacher trajectories and therefore keeps redundant tool use, unsupported reasoning steps, and other bad intermediate behavior. Their method, P2T, uses the reference patch as privileged information during data curation. It first distills the patch into a prerequisite process graph G*, and then constructs shorter grounded trajectories by selecting segments that cover graph facts while blocking answer leakage. The evaluation fine-tunes Qwen2.5-Coder students on curated SWE-Gym trajectories and reports gains on SWE-bench Verified and Lite, with both higher Pass@1 and lower inference cost.
Strengths and weaknesses
This is a fairly strong paper. The problem is real: for SWE agents, a passing final patch is a weak signal if the trajectory is long, lucky, or full of tool loops. It also does not stop at saying this intuitively. It proposes a concrete curation pipeline and evaluates the two claimed axes, effectiveness and efficiency, using Pass@1 and per-instance inference cost.
A main strength is the experimental package. P2T full improves Qwen2.5-Coder-32B on SWE-bench Verified from 39.6 to 50.4 Pass@1 with the Qwen3-Coder-480B curator, and the cost goes down from $0.92 to $0.78. Similar patterns appear on SWE-bench Lite, for the 14B student, and with the GLM-5-FP8 curator. The size-matched control is useful because it shows that some gain is not only from having more solved training instances. The compute-matched 4x rejection-sampling comparison in the appendix is also a good sanity check. It is the kind of control I wanted to see.
I like that it directly studies trajectory quality. The reported reductions in agent steps and redundant file viewing appear both in the SFT data and in the trained student's evaluation rollouts. The groundedness ablation is informative too: removing the groundedness check drops Verified performance by 7-8 points, which supports the claim that leakage or unsupported jumps are not just cosmetic concerns.
My first concern is about the reliability of the LLM-mediated graph and gates. The paper uses a proposer-critic process to create G*, then uses symbolic entity checks plus LLM judges for claim grounding. The authors do include value-of-information and ablation evidence, so I am not saying this is untested. Still, the most important object in the paper is not independently verified in a strong way. A per-instance audit of graph minimality, false-positive graph facts, and rejected/accepted leakage examples would help a lot. Right now the method is convincing in aggregate, but the actual certificate of "non-leaky process supervision" remains empirical and somewhat fragile.
I also worry about scope. The experiments fix OpenHands as the scaffold and Qwen2.5-Coder as the student family. This is reasonable for one paper, but the claims are written somewhat broadly for SWE-agent SFT. It would be safer to state more explicitly that the evidence is for one agent interface and one student family. A smaller transfer experiment to a different student or a different scaffold would make the paper much harder to criticize.
One last issue is that the method is expensive and operationally complicated. The appendix reports about 226 GPU-hours of curation on 8 H200s for 1.8k instances. The compute-matched baseline is good, but users who do not already have reference patches, runnable tests, and large curator models may not be able to use P2T. This does not kill the contribution, but it is part of the practical story.
Questions
-
Could the authors provide a small human audit of G* quality? For example, sample 50 instances and report whether graph nodes are necessary, sufficient, and actually discoverable without patch knowledge.
-
How often does the groundedness critic reject a candidate that later turns out to be a valid but concise reasoning step? This false-rejection rate matters because over-strict gating may shape a too cautious agent.
-
Can the authors run one small transfer test with a non-Qwen student or a non-OpenHands scaffold? Even a limited result would clarify how much of the gain is tied to the current interface.
-
The full P2T setting recovers hard instances that ordinary rollout sampling misses. Could the authors separate the gain from "new instances recovered" versus "shorter trajectories on already solvable instances" more explicitly?
Limitations
The authors discuss important limitations in the appendix, including privileged-signal availability, LLM-mediated guarantees, curation compute, and scaffold/student scope. This is mostly adequate, though I would prefer the LLM-mediated guarantee issue to be moved into the main paper.
Final justification
Resolved: The rebuttal provides a blinded human audit showing low, though nonzero, residual leakage, and the Llama-3.1-8B experiment substantially addresses the concern that the gains are Qwen-specific. The size- and compute-matched controls also support benefits beyond additional data or compute. Unresolved: The audit remains small, the false-rejection rate of the groundedness critic is unmeasured, and transfer beyond the OpenHands scaffold is still open. An instance-overlap-matched comparison would also isolate trajectory quality more cleanly. Overall weight: After considering the rebuttal and discussion, I place greater weight on the consistent effectiveness/efficiency gains, strengthened transfer evidence, and well-controlled experiments. The remaining issues limit the scope and strength of the claims but do not outweigh the paper’s contribution.
Formatting concerns
None
3 comments
We thank the reviewer for the careful assessment and for recognizing the value of the size- and compute-matched controls. We address the four questions below.
1. Could the authors provide a human audit of process-graph quality?
We conducted a blinded audit with two independent expert programmers, each with more than five years of Python experience and blinded to the system verdicts. We sampled five process-graph nodes from each of five instances (25 total). Experts received the issue, relevant pre-fix code, reference patch for audit comparison, and each node with its predecessor states and unlocker; they judged whether the node relied on patch-only information. We also sampled five accepted curator-mutated responses from each of six trajectories (30 total), restricted to mutations within the first 30 interactions so the complete preceding history could be inspected.
| Audited artifact | Items | Mean expert-labeled leakage proportion | Cohen's kappa |
|---|---|---|---|
| Process-graph nodes | 25 | 0.060 | 0.648 |
| Accepted curator-mutated responses | 30 | 0.083 | 0.783 |
This small audit finds low but nonzero residual leakage, not a formal guarantee. We will add the protocol, agreement statistics, representative examples, and this limitation to the paper.
2. How often does the groundedness critic reject a valid but concise reasoning step?
We did not audit rejected candidates during the rebuttal and therefore cannot report a reliable false-rejection rate. Given the limited audit budget, we prioritized the higher-risk error: false acceptance directly introduces unsupported content into a retained trajectory. The accepted-mutation audit above measures this residual risk as 0.083. By contrast, if a valid grounded mutation is falsely rejected, the original blinded seeds remain in the pool. If all mutations are rejected, selection operates only on those seeds; when none clears the effectiveness floor, the fallback selects the maximum-effectiveness seed. False rejection therefore cannot introduce leakage, although it may forgo useful guidance, require additional curation windows, or produce a less efficient continuation. We will report its unmeasured rate as a limitation.
3. Can the authors test transfer to a non-Qwen student or a non-OpenHands scaffold?
During the rebuttal, we first prioritized three-seed full-parameter SFT because it directly tests our central claim: with fixed Qwen3-Coder-480B-curated datasets, P2T-full improves mean Pass@1 over Test-Pass RS by +5.80/+7.20 points for the 14B student and +10.40/+7.13 points for 32B on Verified/Lite, while reducing cost in every setting.
We have also completed an additional experiment with a Llama 3.1 8B student on SWE-bench Verified, using one greedy rollout per task under the same OpenHands 100-turn setup. Cost uses the OpenRouter listing's headline prices for Llama 3.1 8B Instruct: $0.02/$0.04 per 1M input/output tokens.
| Student | Training data | Avg. cost/task ($) | Avg. turns/task | Hit 100-turn cap | Pass@1 (%) |
|---|---|---|---|---|---|
| Llama 3.1 8B | RS SFT | 0.07212 | 94.45 | 363/500 (72.6%) | 17.8 |
| P2T SFT | 0.06783 | 86.19 | 306/500 (61.2%) | 22.6 |
P2T improves Pass@1 by +4.8 points while reducing average cost by 5.9%, average turns by 8.7%, and 100-turn-cap incidence by 11.4 points. The high absolute cap rate shows that this 8B student remains capacity-limited, but P2T materially reduces that failure mode. This directly demonstrates transfer to a non-Qwen, smaller student. A non-OpenHands transfer was not feasible in the same period: Phase 2 depends on scaffold-specific actions and observations, so changing scaffolds requires regenerating the trajectory dataset, which costs approximately 226 aggregate H200 GPU-hours on an 8xH200 node.
4. Can the gain from newly recovered instances be separated from the gain in trajectory quality?
Yes. Table 1 already includes the P2T size-matched setting, which controls the P2T trajectories to the same number as Test-Pass RS. It therefore isolates the benefit of the curated trajectories at fixed data volume. The additional gain from size-matched to P2T-full then reflects the benefit of using the larger set of trajectories recovered by P2T.
Thank you for the detailed rebuttal. The blinded audit, although small, provides useful direct evidence on residual leakage and appropriately qualifies the claim as empirical rather than formal. I also appreciate the transparent acknowledgment that the false-rejection rate remains unmeasured. The Llama 3.1 8B result substantially addresses my student-family generalization concern: the +4.8 Pass@1 gain, together with lower cost, fewer turns, and fewer cap hits, suggests that P2T is not Qwen-specific. The size-matched/full comparison also clarifies the roles of fixed-volume curation and additional recovered trajectories, although an instance-overlap-matched comparison would isolate trajectory quality more cleanly. The remaining limitations—small audit size, unmeasured false rejection, and the fixed OpenHands scaffold—should be retained clearly in the paper, but they no longer outweigh the contribution. Together with the three-seed SFT and compute-matched controls, the response resolves my main concerns. I have therefore increased my score from 4 to 5.
Thank you for the thoughtful follow-up and for updating your assessment. We appreciate your constructive feedback and will clearly retain the identified limitations in the revised paper.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes P2T (Patches-to-Trajectories), a framework for constructing high-quality SFT trajectories for software-engineering agents. The key idea is to treat the developer-authored reference patch in each SWE-Gym instance as privileged information available only during data construction. P2T first reverse-engineers the patch into a process graph containing contextual facts and solution milestones, then reconstructs shorter and better-grounded agent trajectories with a sliding-window procedure without exposing the patch to the student. Candidate trajectories are filtered by symbolic entity checks, LLM-based claim-grounding, and process-graph progress scores, and the shortest trajectory that meets an effectiveness threshold is selected. Experiments cover two teachers, two students, and SWE-bench Verified and Lite. Compared with test-pass rejection sampling, P2T improves both Pass@1 and per-instance inference cost; for example, with a 32B student and Qwen3 teacher on SWE-bench Verified, it improves performance from 39.6% to 50.4% while reducing cost from 0.92 to 0.78. The paper additionally includes size-matched and compute-matched comparisons, trajectory-quality analyses, and component ablations.
Strengths and weaknesses
Strengths
-
P2T identifies a key limitation of SWE-agent training: a trajectory that eventually produces a correct patch is not necessarily a trajectory worth imitating. Using reference patches to distill an implicit prerequisite graph and construct process-supervision trajectories is a novel idea well aligned with long-horizon agent training.
-
The method is effective across two teachers, two students, and two SWE-bench benchmarks. The size-matched and compute-matched comparisons, trajectory-quality analyses, and component ablations help disentangle the roles of data scale, computation budget, and per-trajectory quality.
-
P2T improves not only Pass@1 but also the student’s per-instance inference cost. Since these gains remain under size-matched and compute-matched comparisons, the method appears to offer practical deployment benefits beyond simply using more training data or compute.
Weaknesses
-
The main Pass@1 results are based on a single run and do not report multiple random seeds or confidence intervals. Since these results support the paper’s central empirical claim, the authors should demonstrate that the gains are robust to training randomness and evaluation variance.
-
Although the reference patch is not directly exposed and the method employs entity and claim-grounding checks, the process graph is itself reverse-engineered from the reference patch and may retain semantic information highly correlated with the specific repair direction. The current experiments establish usefulness, but do not fully rule out the possibility that the gains arise from implicit answer leakage.
-
The primary baselines are rejection sampling and SWE-Lego, leaving open whether an explicit process graph is necessary. Stronger controls could use the same reference patch to generate a short plan/checklist, or apply trajectory pruning alone, to better isolate the contribution of the process-graph design.
Questions
-
The main Pass@1 results are reported from a single training run per configuration. Could the authors provide results across multiple random seeds, or at least task-level bootstrap confidence intervals, to quantify the robustness of the reported gains?
-
Can the authors provide a more direct analysis of residual semantic leakage from the process graph? In particular, how often do graph nodes reveal patch-specific files, functions, or repair directions, and how does performance change when such information is removed or abstracted?
-
What are the success and failure rates at each stage of the pipeline, including executable-instance filtering, process-graph construction, trajectory curation, and final test verification?
Limitations
The paper acknowledges several limitations in Appendix L, including the requirement for a reference patch and executable test suite, as well as the non-trivial curation cost. I agree that these are important practical constraints: P2T may be difficult to apply to settings without developer-authored patches or reliable task-specific verification. In addition, the process graph is derived from the reference patch, so the current grounding checks do not fully rule out semantic information leakage about the repair direction. Finally, the empirical evaluation is limited to SWE-Gym/SWE-bench, the OpenHands scaffold, and Qwen-family students; broader generalization to other agent scaffolds, model families, or software-engineering settings remains to be established.
Formatting concerns
No major formatting or anonymity concerns.
3 comments
We thank the reviewer for identifying the central empirical questions. We report the new multi-seed results, human audit, and requested pipeline yields below.
1. Could the authors report multiple seeds or confidence intervals for the main Pass@1 results?
Regenerating one complete P2T trajectory dataset costs approximately 226 aggregate H200 GPU-hours on an 8xH200 node, so repeating curation three times was not feasible during the rebuttal. Using fixed trajectory datasets curated by Qwen3-Coder-480B, we repeated full-parameter SFT with three independent random seeds, held each dataset and all hyperparameters fixed, and reevaluated every model with one greedy rollout per task. The table reports mean +/- sample standard deviation over the three independently trained models.
| Student | Training data | Verified Pass@1 (%) | Verified cost ($) | Lite Pass@1 (%) | Lite cost ($) |
|---|---|---|---|---|---|
| Qwen2.5-Coder-14B | Test-Pass RS | 35.87 +/- 0.42 | 0.923 +/- 0.025 | 22.57 +/- 0.51 | 0.917 +/- 0.021 |
| P2T size-matched | 37.20 +/- 0.40 | 0.873 +/- 0.035 | 23.23 +/- 0.50 | 0.917 +/- 0.015 | |
| P2T full | 41.67 +/- 1.50 | 0.793 +/- 0.042 | 29.77 +/- 0.40 | 0.833 +/- 0.015 | |
| Qwen2.5-Coder-32B | Test-Pass RS | 39.27 +/- 0.76 | 0.923 +/- 0.035 | 28.67 +/- 0.35 | 0.933 +/- 0.006 |
| P2T size-matched | 41.87 +/- 0.61 | 0.863 +/- 0.023 | 29.57 +/- 0.23 | 0.890 +/- 0.010 | |
| P2T full | 49.67 +/- 0.70 | 0.793 +/- 0.012 | 35.80 +/- 0.17 | 0.813 +/- 0.015 |
Relative to Test-Pass RS, P2T-full improves mean Pass@1 by +5.80/+7.20 points for 14B and +10.40/+7.13 points for 32B on Verified/Lite, while reducing cost in every setting. P2T size-matched also remains ahead in all four Pass@1 comparisons. We will replace the single-run results with these aggregates and document the seed protocol.
2. Can the authors directly analyze residual semantic leakage from the process graph?
We conducted a blinded audit with two independent expert programmers, each with more than five years of Python experience and blinded to the system verdicts. For the process graph, we sampled five nodes from each of five instances (25 total). Experts received the issue, relevant pre-fix code, reference patch for audit comparison, and each node with its predecessor states and unlocker; they judged whether the statement or unlocker relied on patch-only information rather than evidence discoverable from the issue, code, and predecessors. For constructed trajectories, we sampled five accepted curator-mutated responses from each of six trajectories (30 total), restricted to mutations within the first 30 interactions so experts could inspect the complete preceding history; they judged whether each mutation introduced information unsupported by that history.
| Audited artifact | Items | Mean expert-labeled leakage proportion | Cohen's kappa |
|---|---|---|---|
| Process-graph nodes | 25 | 0.060 | 0.648 |
| Accepted curator-mutated responses | 30 | 0.083 | 0.783 |
The audit finds non-zero but low leakage. We will add the protocol, agreement statistics, and this limitation to the main paper.
3. What are the success and failure rates at each stage of the P2T pipeline?
The exact flow is:
| Stage | Retained / input | Stage retention | Outcome |
|---|---|---|---|
| SWE-Gym environment check | 2,126 / 2,438 | 87.2% | Executable Docker environment |
| Reference-patch verification | 1,878 / 2,126 | 88.3% | |
| Process-graph construction | 1,815 / 1,878 | 96.6% | Within six rounds and the 27-node admission limit |
| Forward construction | 1,815 / 1,815 | 100% | Terminal trajectory produced using candidate fallback when needed |
| Final patch verification | 1,706 / 1,815 | 94.0% | Passing trajectory admitted to P2T-full |
Thus 312 instances lack executable environments; 248 additional instances fail reference-patch verification; 63 raw graphs exceed the 27-node limit and are removed before forward realization; and 109 constructed trajectories (6.0%) fail final verification and are discarded. Rejection-sampling baselines can use all 2,126 executable instances because they do not require a valid reference patch. We will add this flow table and clarify that 1,815 is the curation-eligible graph pool, while 1,706 trajectories pass the final admission gate.
Thank you again for your detailed review. As the rebuttal period is nearing its deadline, we wanted to gently follow up and ask whether our responses and additional evidence have addressed your main concerns. We would be grateful for any feedback.
Thanks for your detailed explanation. The additional multi-seed results, leakage audit, and stage-wise retention analysis improve the empirical support and transparency of the paper. I have taken these clarifications into account and will maintain my current assessment.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper presents P2T (Patches-to-Trajectories), a data curation framework designed to construct high-quality process-supervision data for Supervised Fine-Tuning (SFT) of Software Engineering (SWE) LLM agents.
Strengths and weaknesses
Strengths:
-
The problem is accurately identified, and the theoretical motivation is sufficient.
-
The architectural design is reasonable.
Weaknesses:
-
High Computational Overhead at Curation Time: While this method successfully reduces the token consumption of the student model during testing, its data curation process is quite cumbersome. The entire pipeline requires multi-agent collaborative backgraph distillation, multiple candidate rollout samplings, frequent Docker sandbox state interactions, and progressive LLM validation. This makes building large-scale, high-quality datasets computationally challenging, and the paper lacks a quantitative assessment of the total GPU time and token cost in the preprocessing stage.
-
Strong Dependence on Teacher/Judge Model Capabilities and Potential Error Propagation: Key steps in the system (such as the construction of the backgraph and the forward semantic-level logic leakage detection) heavily rely on the logical reasoning capabilities of top-tier Teacher models (such as the Qwen3-Coder-480B class). If the Teacher model misjudges (False Positive/Negative) when extracting dependencies or making logical jumps, this error may be amplified as a strong constraint during the trajectory implementation stage, thus polluting the final trajectory dataset used for fine-tuning.
-
Potential Suppression of Over-Trimming Valid Trial-and-Error by the "Shortest Path" Selection Strategy: The paper employs a "Shortest-Above-Floor" strategy (retaining the shortest path while meeting the effectiveness threshold) to eliminate redundancy. However, in some complex real-world software engineering scenarios, reasonable exploration (e.g., "attempt to modify A -> unit test fails -> undo and move on to modify B") is crucial debugging logic. Overly pursuing the shortest path may inadvertently eliminate these necessary exploratory steps, causing the Student model to overfit to a "perfect direct solution" and lack the ability to cope with setbacks and self-correct when faced with unknown complex bugs.
-
Strong Dependency on Standard Patches & Deterministic Environments: The P2T framework design heavily relies on two core prerequisites: high-quality developer reference patches () and a precisely reproducible execution sandbox (such as Docker). For open-ended tasks lacking standard reference solutions, synthetic/weakly labeled data scenarios, or real-world environments with non-deterministic behavior such as concurrency and networking, the effectiveness and transferability of the framework's graph distillation and symbol verification mechanisms still require further verification.
Questions
Questions:
-
Data Construction Cost and Computational Overhead (Curator Computational Overhead): Please provide a quantitative breakdown of the total computational cost (e.g., GPU Hours or total Token expenditure) consumed by the framework when constructing the complete 1.8k P2T trajectory dataset. Compared to traditional "Outcome-filtered Rejection Sampling," what is the additional computational overhead of its Curation phase?
-
Graph Error Propagation & Fault Tolerance in Graph Distillation: During the Proposer-Critic multi-agent loop generation of the process graph , if the Critic fails to capture incorrect dependency nodes or unreasonable sub-objectives proposed by the Proposer, is there a self-correction or fault-tolerance mechanism in the forward Receding-Horizon search phase to correct these deviations?
-
Misjudgment Risk and Leakage of the Neural Judge: The forward pass relies on a neural logic reasoning judge to determine semantic-level logical jumps and answer leakage. Has the author evaluated the false positive/false negative rate of this judge? What consequences would result if the judge mistakenly classifies a valid step containing key derivations but not revealing the answer as a leak?
-
Extension to Synthetic Data & Unverified Patch in Scenarios Without Standard Solutions: P2T heavily relies on high-quality developer reference patches p*. In real-world scenarios lacking manually written standard solutions (such as codebases automatically generated by SWE-smith/R2E-Gym or weakly labeled data), if p* itself contains redundant or suboptimal code, is the graph distillation mechanism of P2T still effective?
-
Sensitivity to Student Model Capacity: The experiments were primarily based on strong codebase models such as Qwen2.5-Coder-32B. How does the data distilled by P2T perform on models with small to medium parameter scales (e.g., 7B/14B)? Will the "Shortest-Above-Floor" strategy lead to training instability due to insufficient inference ability in small models?
-
Graph Complexity & Pruning Threshold: The complexity varies greatly across different issues. How does the algorithm dynamically control the node granularity and depth (Depth/Breadth) of the graph during the backdistillation stage? Are there any overly complex bugs that generate excessively large DAG graphs, leading to search space explosion in the forward Realization stage?
-
Sandbox Environment Dependence and Execution Determinism: The forward phase relies on a Docker execution sandbox to provide dynamic feedback. For software engineering tasks with non-deterministic behavior (such as concurrent testing, network timeouts, and reliance on random numbers), how does P2T ensure accurate consistency between symbolic level checks and state changes?
-
Deep Attribution of Reduced Inference Token Consumption During Testing: Experiments show that the student model's inference token consumption has decreased by approximately 15%. Is this efficiency improvement mainly due to the model reducing "redundant tool calls and environment interactions," or is it because the model-generated thought/inference chain (CoT) has become more concise?
-
Comparison with Reinforcement Fine-Tuning: Current baseline comparisons mainly focus on SFT variants (such as Standard SFT and Tool-error Masking). Compared to Reinforcement Fine-Tuning methods based on Process Reward Models (PRM) or Group Relative Policy Optimization (GRPO), what advantages does P2T have in terms of sampling efficiency and final Pass@1?
-
Handling Destructive Edges & Refactoring: In some complex refactoring bugs, the correct solution path might involve "modifying code A first, then reverting and modifying code B if it doesn't work." Will P2T's "Shortest-Above-Floor" selection strategy misjudge and eliminate such reasonable and necessary trial-and-error/exploration steps?
Limitations
yes
Final justification
No major concern. I keep my original rating (borderline accept)
Formatting concerns
no
4 comments
We thank the reviewer for the constructive questions. We address each point below and will incorporate these clarifications and new analyses in the revision.
1. What is P2T's total curation cost relative to outcome-filtered rejection sampling?
Thank you for requesting this phase-level breakdown. All figures use the same 8xH200 setup and SWE-Gym curation pool.
| Method | Phase 1: process-graph distillation | Phase 2: trajectory realization / RS rollout collection | Total H200 GPU-hours |
|---|---|---|---|
| Test-Pass RS, one rollout pass | - | 68 | 68 |
| Test-Pass RS, four passes (compute-matched) | - | 272 | 272 |
| P2T | 32 | 194 | 226 |
Phase 1 accounts for 14.2% of P2T's cost and Phase 2 for 85.8%. End-to-end P2T costs 3.32x one ordinary RS pass; Phase 2 alone costs 2.85x. This is a one-time data-curation cost, and the compute-matched result in Appendix K shows that it is more compute-effective than allocating a comparable or larger budget to additional RS rollouts: four-pass RS uses 272 GPU-hours, yet produces a student that trails P2T, which uses 226 GPU-hours, in both downstream Pass@1 and inference cost. We will add this breakdown beside that result.
2. How does P2T tolerate graph-construction errors and prevent their propagation?
At a high level, we address this risk with direct evidence and two safeguards: a human audit quantifies residual process-graph errors, the Phase 2 critic independently screens every graph-guided mutation, and the original blinded seeds provide a graph-independent fallback if those mutations are removed.
We agree that process-graph construction is empirical and can leave erroneous or leaky nodes. Our human audit in Response to AC, Q2 finds a nonzero but low mean expert-labeled leakage proportion of 0.060 among sampled graph nodes.
Phase 2 provides a second containment layer before such an error can enter a retained trajectory. A process-graph node influences construction only when selected to produce a graph-guided mutation, which must then pass the hybrid groundedness critic; a mutation detected as containing an unsupported claim or entity is rejected and removed. Our separate audit of mutations that passed this check finds a low but nonzero residual leakage proportion of 0.083 among accepted curator-mutated responses. Moreover, every candidate pool retains the original blinded seeds. If all graph-guided mutations are removed, P2T selects from those seeds instead. Thus, an erroneous graph node may reduce useful guidance or efficiency, but it neither automatically propagates into the trajectory nor causes trajectory construction to fail. The final test gate additionally discards any resulting non-passing trajectory.
3. What are the neural judge's misjudgment and leakage risks, and what are their consequences?
To avoid ambiguity in the labels, we distinguish false rejection (reject a valid grounded step) from false acceptance (accept an unsupported step can introduce leakage into the retained trajectory).
The two errors have asymmetric consequences. False acceptance is more consequential because an unsupported mutation can enter a retained trajectory. P2T mitigates this risk by requiring every mutation to pass both the neural entailment judge and an independent symbolic referential-integrity check. The accepted-mutation audit above finds a mean residual leakage proportion of 0.083 (see Response to AC, Q2). This measures end-to-end residual leakage after the hybrid check, not the neural judge's error rate in isolation.
False rejection removes a potentially useful grounded mutation but will not introduce leakage. Its possible cost is a less efficient continuation, but the original blinded seeds remain available and P2T can always fallback to select the best blinded seeds. Given the limited human audit budget during rebuttal period, we prioritized the higher-risk accepted mutations and did not audit rejected candidates, so we cannot report a reliable false-rejection rate. We will state both the nonzero residual leakage and this unmeasured rate explicitly in the revision.
4. Can P2T extend to synthetic data or imperfect and unverified reference patches?
For synthetic tasks with a validated golden patch, yes; for imperfect or unverified model-generated patches, not in P2T's current scope. P2T treats the reference patch as its privileged supervision source, so patch reliability is an input requirement rather than something the method establishes. Sec. 5.1 therefore restricts curation to instances with an executable verifier and a reference patch satisfying , while Appendix L identifies privileged-signal availability as a limitation.
A synthetic task with a known inverse-injection patch, as in SWE-smith or R2E-Gym, can satisfy this requirement after execution validation. By contrast, P2T does not claim to validate, correct, or derive supervision from an unreliable model-generated patch; such weakly labeled settings are outside the present scope. We will make this boundary explicit in the revision.
5. Does P2T remain effective and stable for smaller students such as 7B or 14B?
The main paper includes a 14B student. Using fixed Qwen3-Coder-480B-curated datasets, we repeated full-parameter SFT with three independent random seeds and report mean +/- sample standard deviation below.
| Student | Training data | Verified Pass@1 (%) | Verified cost ($) | Lite Pass@1 (%) | Lite cost ($) |
|---|---|---|---|---|---|
| Qwen2.5-Coder-14B | Test-Pass RS | 35.87 +/- 0.42 | 0.923 +/- 0.025 | 22.57 +/- 0.51 | 0.917 +/- 0.021 |
| P2T size-matched | 37.20 +/- 0.40 | 0.873 +/- 0.035 | 23.23 +/- 0.50 | 0.917 +/- 0.015 | |
| P2T full | 41.67 +/- 1.50 | 0.793 +/- 0.042 | 29.77 +/- 0.40 | 0.833 +/- 0.015 | |
| Qwen2.5-Coder-32B | Test-Pass RS | 39.27 +/- 0.76 | 0.923 +/- 0.035 | 28.67 +/- 0.35 | 0.933 +/- 0.006 |
| P2T size-matched | 41.87 +/- 0.61 | 0.863 +/- 0.023 | 29.57 +/- 0.23 | 0.890 +/- 0.010 | |
| P2T full | 49.67 +/- 0.70 | 0.793 +/- 0.012 | 35.80 +/- 0.17 | 0.813 +/- 0.015 |
At 14B, P2T-full improves mean Pass@1 over Test-Pass RS by +5.80/+7.20 points on Verified/Lite while reducing cost, with no evidence of training instability. We have also completed an experiment with a Llama 3.1 8B student on SWE-bench Verified, using one greedy rollout per task under the same OpenHands 100-turn setup. Cost uses the OpenRouter listing's headline prices for Llama 3.1 8B Instruct: $0.02/$0.04 per 1M input/output tokens.
| Student | Training data | Avg. cost/task ($) | Avg. turns/task | Hit 100-turn cap | Pass@1 (%) |
|---|---|---|---|---|---|
| Llama 3.1 8B | RS SFT | 0.07212 | 94.45 | 363/500 (72.6%) | 17.8 |
| P2T SFT | 0.06783 | 86.19 | 306/500 (61.2%) | 22.6 |
P2T improves Pass@1 by +4.8 points while reducing average cost by 5.9%, average turns by 8.7%, and 100-turn-cap incidence by 11.4 points. The high absolute cap rate confirms that Llama 3.1 8B remains capacity-limited even after SFT, but P2T materially reduces this failure mode. Together, the 14B multi-seed results and this 8B non-Qwen result show that P2T remains effective and stable at smaller scales.
6. How are graph granularity and complexity controlled to avoid search-space explosion?
We impose explicit size controls before forward realization. Phase 1 allows at most six proposer-critic expansion rounds and admits at most 27 graph nodes. We will clarify this filtering step and the raw-versus-retained counts in the revision.
Phase 2 therefore never realizes an unbounded graph and does not enumerate DAG paths. With , each window evaluates two blinded seeds plus at most one mutation per seed, for at most four candidates. These bounds prevent graph depth or breadth from causing a combinatorial search-space explosion.
7. How does P2T handle nondeterministic sandbox behavior?
P2T adopts the same reproducible-environment assumption as SWE-bench/SWE-Gym. We first require a buildable fixed Docker image and a reference patch that passes the designated tests. Candidate segments run from isolated snapshots; dynamic nodes are established only from the actual observation in that candidate; and the committed patch is tested again before admission.
These measures isolate state across candidates, but they do not solve intrinsically flaky tests, external network failures, races, or unseeded randomness. Importantly, this reproducibility assumption is shared by Test-Pass RS, SWE-Lego, and P2T: all methods depend on the same executable environments and test outcomes. Thus nondeterminism limits the external scope of all compared methods. We will make this shared limitation explicit.
8. Is the lower inference cost caused by fewer interactions or shorter per-step reasoning?
The reduction comes primarily from fewer interactions and redundant tool calls, not shorter per-step text. Figure 2 already reports this decomposition at both the SFT-data and student-evaluation stages, showing fewer steps and redundant file views.
Qwen2.5-Coder-Instruct has no separate reasoning_content field, so we also measured visible assistant text before each tool call for the 14B student on Verified. It is 50.52 tokens/step for RS versus 53.40 for P2T. P2T's per-step text is slightly longer, not shorter. The aggregate saving therefore comes from reaching termination in fewer, less repetitive interactions.
9. How does P2T compare with PRM- or GRPO-based reinforcement fine-tuning?
P2T is a data-construction method for offline SFT, whereas PRM/GRPO methods are policy-optimization methods requiring a reward and online samples. A direct Pass@1 or sampling-efficiency claim would require a controlled RL implementation and is outside this paper's stated question; we make no such claim. The methods are complementary: the graph-derived establishment/progress signal could train a process reward model or shape online RL, which we identify in Appendix L as future work.
10. Does shortest-above-floor remove necessary trial-and-error and recovery behavior?
We agree that both issue -> A -> observe failure -> revert A -> B and issue -> B can be informative solution paths: the former additionally demonstrates self-reflection and recovery. P2T does not claim to discover or retain every valid path from an issue to the reference fix. Its objective is to construct one grounded, effective, and efficient path, so when both paths clear the effectiveness floor, shortest-above-floor will generally favor the direct path.
However, trial-and-error is not categorically removed. If an unsuccessful edit and its resulting observation are needed to expose the root cause, that evidence is part of the prerequisite process and the sequence can remain in the graph and realized trajectory. We agree that deliberately retaining a controlled set of otherwise optional failure-reflection-recovery traces may improve robustness; this is a valuable future direction beyond the current objective.
Thank you again for your detailed review. As the rebuttal period is nearing its deadline, we wanted to gently follow up and ask whether our responses and additional evidence have addressed your main concerns. We would be grateful for any feedback.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the Area Chair for the careful synthesis. We address the four concerns with new evidence and concrete revisions below.
1. Are the empirical gains robust across training runs and evaluation variance?
Regenerating one complete P2T trajectory dataset requires substantial compute, approximately 226 aggregate H200 GPU-hours on an 8xH200 node, so repeating the full curation process three times was not feasible within the rebuttal period. Using the fixed trajectory datasets curated by Qwen3-Coder-480B, we instead repeated full-parameter SFT with three independent random seeds, holding each trajectory dataset and all hyperparameters fixed, and reevaluated every model with one greedy rollout per task on SWE-bench Verified and Lite. The table reports the mean +/- sample standard deviation over the three independently trained models; the deviation therefore quantifies variation across SFT random seeds.
The conclusions are stable. Relative to Test-Pass RS, P2T-full improves mean Pass@1 by +5.80/+7.20 points for 14B and +10.40/+7.13 points for 32B on Verified/Lite, while reducing cost in every setting. The size-matched control also remains better than RS in all four Pass@1 comparisons, showing that the gain is not explained by trajectory count alone; the paired analysis in Fig. 2 separately confirms shorter, less redundant trajectories on shared instances. We will replace the single-run table with these aggregate results and document the seed protocol.
2. How much residual semantic leakage remains in the process graph and grounded trajectories?
We agree that LLM-based checks are empirical safeguards, not a formal non-leakage guarantee. Following the AC and Reviewers EY3P, wL3e, and R9rh, we conducted a blinded human audit with two independent expert programmers, each with more than five years of Python experience. The experts were blinded to the system verdicts.
For the process graph, we sampled five nodes from each of five instances (25 nodes total). Experts received the issue, relevant pre-fix code context, reference patch for audit comparison, and each sampled node together with its predecessor states and unlocker. They judged whether the node statement or unlocker relied on patch-only information rather than evidence discoverable from the issue, code context, and predecessors. For the constructed trajectories, we sampled five accepted curator-mutated responses from each of six trajectories (30 mutated responses total), restricted to mutations within the first 30 interactions so that experts could inspect the complete preceding history; experts judged whether each mutated response introduced information unsupported by that history.
This small audit finds nonzero but low leakage among the sampled graph nodes and accepted curator mutations, with substantial inter-annotator agreement. It estimates residual leakage after the checks rather than how much leakage the checks remove; separately, the groundedness ablation shows that removing the check costs 7.2/8.2 Pass@1 points for 32B/14B. We will add the audit protocol, agreement statistics, and this limitation to the main paper. We will not claim a formal certificate.