TrajFix : Correcting Failed Trajectories to Scale Verifiable Software-Engineering Data
Import ICLR 2027 submission sU2zvAm0va: 20 notes
@openreview[bot] · 2026-11-22 21:47 UTC · 5f72aa79a07d ·
reviews/openreview/su2zvam0va/forms.json added
+++ b/reviews/openreview/su2zvam0va/forms.json@@ -0,0 +1,183 @@+{+ "schema": "forms/1",+ "forms": {+ "Meta_Review": {+ "label": "Meta-review",+ "fields": [+ {+ "key": "metareview",+ "label": "Meta-review",+ "type": "text"+ },+ {+ "key": "summary",+ "label": "Summary",+ "type": "text"+ },+ {+ "key": "additional_comments_on_reviewer_discussion",+ "label": "Reviewer discussion",+ "type": "text"+ },+ {+ "key": "recommendation",+ "label": "Recommendation",+ "type": "choice"+ }+ ]+ },+ "Decision": {+ "label": "Decision",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "hidden": true+ },+ {+ "key": "decision",+ "label": "Decision",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ }+ ]+ },+ "Official_Comment": {+ "label": "Comment",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ }+ ]+ },+ "Public_Comment": {+ "label": "Public comment",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ }+ ]+ },+ "Withdrawal": {+ "label": "Withdrawal",+ "fields": [+ {+ "key": "withdrawal_confirmation",+ "label": "Confirmation",+ "hidden": true+ }+ ]+ },+ "Desk_Rejection": {+ "label": "Desk rejection",+ "fields": [+ {+ "key": "desk_reject_comments",+ "label": "Reason",+ "type": "text"+ }+ ]+ },+ "Official_Review": {+ "label": "Official review",+ "summary": [+ "rating",+ "confidence",+ "soundness",+ "presentation",+ "informativeness"+ ],+ "fields": [+ {+ "key": "rating",+ "label": "Rating",+ "type": "score",+ "min": 1,+ "max": 4+ },+ {+ "key": "confidence",+ "label": "Confidence",+ "type": "score",+ "min": 1,+ "max": 4+ },+ {+ "key": "soundness",+ "label": "Soundness",+ "type": "score",+ "min": 1,+ "max": 3+ },+ {+ "key": "presentation",+ "label": "Presentation",+ "type": "score",+ "min": 1,+ "max": 3+ },+ {+ "key": "informativeness",+ "label": "Informativeness",+ "type": "score",+ "min": 1,+ "max": 3+ },+ {+ "key": "paper_summary",+ "label": "Summary",+ "type": "text"+ },+ {+ "key": "critical_strengths",+ "label": "Strengths",+ "type": "text"+ },+ {+ "key": "critical_weaknesses",+ "label": "Weaknesses",+ "type": "text"+ },+ {+ "key": "questions_for_authors",+ "label": "Questions for the authors",+ "type": "text"+ },+ {+ "key": "flag_for_ethics_review",+ "label": "Flag for ethics review",+ "type": "choice",+ "omitWhen": [+ "No",+ "No ethics review needed."+ ]+ },+ {+ "key": "details_of_ethics_concerns",+ "label": "Ethics concerns",+ "type": "text"+ }+ ]+ }+ },+ "url": "https://openreview.net/group?id=ICLR.cc%2F2027%2FConference",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/2oxurwd17i.json added
+++ b/reviews/openreview/su2zvam0va/notes/2oxurwd17i.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "2oxuRwD17i",+ "replyTo": "wI3AMhVH1u",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "General Response (3/3)",+ "comment": "We thank all reviewers for their constructive feedback. This comment gives an overview of the revision. Each reviewer's individual points are answered one by one in a separate thread.\n\n> **5. How is the task pool collected and filtered, and how is contamination handled? (EXfH W2/Q2)**\n\n**Added.** The full construction-and-filtering funnel with per-stage thresholds, together with repository-level contamination handling against the evaluation benchmarks.\n\n**Result.** The funnel runs top to bottom. We crawl 39,725 GitHub repos across ten languages (Python, Go, JavaScript, TypeScript, Java, Rust, PHP, Ruby, C, C++) and keep 8,000 that pass popularity and language-purity thresholds; from these we extract Issue–PR pairs and apply rule-based filters, giving 317,283 instances; an LLM quality filter (DeepSeek-V3.2, score ≥5 of 10) narrows this to 213,766; finally, environment construction with the Fail-to-Pass (F2P) execution check yields the 55,366-instance pool from 5,101 repositories used in the paper. The F2P check is the quality gate: a task is kept only if the test suite fails on the pre-fix repo and passes after the golden patch. To guard against contamination, each instance is unique per PR and we verify repository-level non-overlap against SWE-Bench Verified, Multilingual, and Pro by matching on `owner/repo`, so no repository in the pool appears in any evaluation benchmark.\n\n| Stage | Operation and thresholds | Count |\n|---|---|---:|\n| Collect repos | crawl GitHub repos across 10 languages | 39,725 repos |\n| Filter repos | Stars ≥1,000; Forks, Issues, PRs each ≥200; primary-language share ≥60% | 8,000 repos |\n| Collect + rule-filter instances | Issue–PR pairs; issue closed; non-empty description, fix patch, test patch; code change; ≤1,000 changed lines; ≤10 files | 317,283 instances |\n| LLM quality filter | DeepSeek-V3.2 scores each task 0–10; drop tasks below 5 | 213,766 instances |\n| Environment build + F2P check | build or reuse a Docker env; test fails with only the test patch, passes after the fix patch | 55,366 instances |\n\n**Revised PDF.** The new results are now in the paper, with all additions and edits marked in blue. The changes are made in the following sections.\n\n1. **Golden-patch gain and clean data.** A sentence in the Method section, with the full leakage-control ablation added to Appendix G.\n2. **Compute cost.** Table 1 now reports the wall-clock cost alongside the token cost, with the container / out-of-container breakdown in Appendix C.\n3. **Transfer to another model.** Table 1 adds GLM-5.3-Flash as a second policy, with its per-round, per-subset and wall-clock results in Appendix C; the Abstract and Conclusion are updated accordingly.\n4. **Localization perturbation.** The perturbation study is added to Appendix H and referenced in the Method section.\n5. **Task-pool construction and contamination.** The full funnel with repository-level decontamination is added to Appendix I."+ },+ "createdAt": "2026-11-19T11:44:54.162Z",+ "modifiedAt": "2026-11-19T11:44:54.162Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=2oxuRwD17i",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/79igkgcytx.json added
+++ b/reviews/openreview/su2zvam0va/notes/79igkgcytx.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "79IGkGCyTX",+ "replyTo": null,+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "General Response (1/3)",+ "comment": "**To All Reviewers and the Area Chair**\n\nWe thank all reviewers for their constructive feedback. This comment gives an overview of the revision. Each reviewer's individual points are answered one by one in a separate thread.\n\n**Background.** TrajFix turns failed software-engineering trajectories into verifiable training data instead of discarding them. For a failed trajectory, it locates the first wrong step and attributes the error, corrects that single step under two leakage guards (the Admissibility Constraint and Hallucination Detection), replays the already-correct prefix, and lets the model finish the task on its own.\n\n**Three main results.**\n\n- **High recovery at low cost.** On the same failed-trajectory set, TrajFix recovers far more tasks than resampling, especially tasks the model cannot solve by resampling, at the lowest cost per successful trajectory.\n- **The recovered data is clean.** The golden patch is used for error attribution only and is never copied into the trajectory.\n- **The recovered data improves downstream SWE performance.** Fine-tuning a model on the recovered trajectories improves downstream SWE-Bench performance.\n\n**Revision.** The reviews share five concerns. For each we briefly summarize the added experiments and the resulting conclusions. Unless noted, new experiments use the paper's 400-task set and rollout model DeepSeek-V4-Flash-0731.\n\n> **1. How much of the gain comes from the golden patch rather than the repair mechanism, and is the recovered data clean? (HEXe W2/Q; EXfH W1/Q1; uRik Q1)**\n\n**Added.** Four new control experiments, all differing only in the data-collection method, with the add-line-overlap probe to measure similarity to the golden patch.\n\n- **No-privilege TrajFix** — the same repair loop with the golden patch removed from diagnosis.\n- **Golden-patch-guided resampling** — resampling may consult the golden patch, but a rule forbids leaking any privileged information.\n- **No-privilege TrajFix (Kimi-K3)** — no-privilege diagnosis done by a stronger model, to test whether a better diagnoser can replace the patch.\n- **Resample before the error step** — resample from the step just before the error.\n\n| Setting | How the patch is used | Resolved (%) | Gold overlap (median) |\n|---|---|---:|---:|\n| Golden-patch-guided resampling (no-leak) | reference solution; rules forbid leakage | 96.0% | **0.976** |\n| **TrajFix (ours)** | attribution only | 79.0% | 0.325 |\n| Resample before the error step | step location only | 51.25% | 0.305 |\n| No-privilege resampling (4 rounds) | not used | 47.5% | 0.294 |\n| No-privilege TrajFix (Kimi-K3) | not used | 29.0% | 0.274 |\n| No-privilege TrajFix | not used | 27.75% | 0.250 |\n\n**Result.**\n\n- **The golden patch's gain is large, yet TrajFix uses it only for localization and attribution and never copies it into the trajectory**, so its gold overlap (0.325) stays close to no-privilege resampling (0.294) and far below the copy level (1).\n- **Golden-patch-guided resampling is unusable despite 96.0%.** It copies the reference line-for-line (overlap 0.976), and even under the strict no-leak rule over half its steps still mention the gold patch, so it leaks privileged information and cannot be training data.\n- **Patch-guided attribution is necessary.** Removing the patch drops recovery by about 50 points, and a no-privilege attribution (27.75%) is even worse than no attribution at all (51.25% for resample-before-error), because a wrong diagnosis misleads the repair; a stronger diagnoser (Kimi-K3, 29.0%) does not close the gap either.\n- **The failed prefix is largely correct.** Resampling from before the error (51.25%) beats resampling from scratch (47.5%), showing much of the prefix is already right and that replaying it is what prefix replay exploits.\n\n> **2. Beyond token cost, should compute cost also be accounted for? (uRik W1)**\n\n**Added.** Wall-clock time on the same tasks, priced at the AWS m5a.large rate actually used (2 vCPU / 8 GB pod, \\$0.086 per container-hour); for every setting we compute the compute cost on top of the token cost.\n\n| Method | # Succ.Traj | Wall-clock cost (\\$) | API cost (\\$) | Total (\\$) | / succ. traj (\\$) |\n|---|---:|---:|---:|---:|---:|\n| Resampling (matched-k) | 178 | 42.9 | 250.9 | 293.8 | 1.65 |\n| Resampling (early stop) | 190 | 52.7 | 295.0 | 347.7 | 1.83 |\n| Resampling (4 rounds) | 472 | 73.2 | 450.3 | 523.5 | 1.11 |\n| **TrajFix** | 316 | 26.8 | 233.5 | 260.3 | **0.82** |\n\n**Result.** Under the same rollout budget, TrajFix lowers the cost of producing one usable successful trajectory by 50.1% relative to resampling (47.6% without the wall-clock cost). TrajFix and resampling both produce trajectories of roughly 70 steps, but because TrajFix replays on average 37.4 prefix steps, its in-container model-interaction time is sharply reduced; prefix replay re-executes already-known actions at sub-second speed, and that cost is already counted in the wall-clock time."+ },+ "createdAt": "2026-11-19T11:28:53.593Z",+ "modifiedAt": "2026-11-19T11:28:53.593Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=79IGkGCyTX",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/aayzmdhuuj.json added
+++ b/reviews/openreview/su2zvam0va/notes/aayzmdhuuj.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "aAyzMDhUuj",+ "replyTo": "YvSpBYkLP0",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for their insightful comments. We will incorporate the suggestions in the revision.\n\n> **W1: The method still relies on repeated environment execution and continuation rollouts, and its time and compute cost are not measured. The paper measures cost only in tokens and dollars, not wall-clock time, container time, or the execution overhead of prefix replay and verification.**\n\nThis is a fair point about the completeness of our cost accounting. First, we note that a corrected step rejected by the hallucination detector is regenerated until it passes, but each regeneration is an additional correction call plus an additional detection call, so that cost is already inside the API cost reported in Table 1. What Table 1 omits is the cost incurred during container lifetime, which we add below by measuring container time on the same tasks. **Since all tasks are executed under the same workload, the time intervals between model calls are comparable across methods.**\n\n| Metric | Resampling (matched-k) | Resampling (early stop) | Resampling (4 rounds) | TrajFix |\n|---|---:|---:|---:|---:|\n| Trajectories produced | 822 | 1,142 | 1,600 | 822 |\n| Container time, total (h) | 498.3 | 613.1 | 850.9 | **226.1** |\n| Container time / traj (min) | 36.4 | 32.2 | 31.9 | **16.5** |\n| Model-interaction time / traj (min) | 30.0 | 26.2 | 25.3 | **12.1** |\n| Tool-call time / traj (min) | 6.40 | 6.01 | 6.61 | **4.40** |\n| # Model interactions / traj | 74.4 | 68.7 | 71.1 | **33.3** |\n| Per-interaction latency (s) | 24.5 | 23.2 | 21.6 | 21.8 |\n\n**TrajFix achieves lower container time than resampling under every configuration.** TrajFix runs its error attribution and correction before the container starts, so its container time is the interval from the first replayed step to the final reward computation, whereas resampling's is the lifetime from the first model interaction to the final reward computation. Both TrajFix and resampling produce trajectories of roughly 70 steps, but because TrajFix replays on average 37.4 prefix steps, its in-container model-interaction time is sharply reduced; the prefix replay re-executes already-known actions at sub-second speed, and its total cost is already counted in the in-container tool-call time.\n\nEach trajectory runs in a container verified in the live pod to be 2 vCPUs and 8 GB on AMD EPYC, priced at the AWS m5a.large on-demand rate of \\$0.086 per container-hour.\n\n| Method | # Succ. traj | # Traj | Container-h | Container cost (\\$) | API cost (\\$) | Total (\\$) | / succ. traj (\\$) |\n|---|---:|---:|---:|---:|---:|---:|---:|\n| Resampling (matched-k rounds) | 178 | 822 | 498.3 | 42.9 | 250.9 | 293.8 | 1.65 |\n| Resampling (early stop) | 190 | 1,142 | 613.1 | 52.7 | 295.0 | 347.7 | 1.83 |\n| Resampling (4 rounds) | 472 | 1,600 | 850.9 | 73.2 | 450.3 | 523.5 | 1.11 |\n| **TrajFix** | 316 | 822 | 226.1 | 19.4 | 233.5 | 252.9 |**0.80** |\n\nIncluding container costs does not materially change the overall conclusion. **Under a matched rollout budget, relative to resampling, TrajFix reduces the cost of producing one usable successful trajectory by 51.5% (47.6% without the container cost).** Machine costs account for only a small share of the total, and TrajFix has the lowest cost across all reported measures. Its only additional overhead compared with resampling comes from the out-of-container diagnosis, correction, and hallucination-detection calls, whose token costs are already reported in Table 1. We will add container costs to Table 1 and provide a full breakdown of execution overhead in the appendix."+ },+ "createdAt": "2026-11-13T08:42:37.718Z",+ "modifiedAt": "2026-11-13T08:42:37.718Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=aAyzMDhUuj",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/b8g7lowet7.json added
+++ b/reviews/openreview/su2zvam0va/notes/b8g7lowet7.json@@ -0,0 +1,24 @@+{+ "schema": "review/1",+ "id": "B8G7lOWET7",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer EXfH",+ "content": {+ "paper_summary": "This paper proposes a multi-agent framework for recovering failed software engineering trajectories. It identifies and corrects erroneous steps while preserving valid prefixes, enabling failed trajectories to be reused as training data. Experiments demonstrate improvements in trajectory recovery efficiency, collection cost, and downstream SWE agent performance.",+ "presentation": 3,+ "informativeness": 2,+ "soundness": 2,+ "critical_strengths": "1. The paper highlights computational waste in existing trajectory collection pipelines and makes a compelling observation that failed trajectories may still contain valuable intermediate steps. This provides a meaningful motivation for improving SWE training data efficiency.\n2. The comparison against three resampling baselines is well designed, with both task resolution rates and computational costs reported. The downstream SWE improvements further demonstrate the practical value of the recovered trajectories.",+ "critical_weaknesses": "1. It remains unclear whether the improvements come from learning meaningful decision-making skills or from privileged supervision provided by the golden patch. The current experiments do not clearly distinguish between these two possibilities. This raises concerns about the quality of the recovered training signals.\n2. The paper constructs a large-scale task pool, but the collection and filtering procedures are not sufficiently documented. Although the authors report repository-level non-overlap, more details are needed to independently assess potential data leakage, as both the training data and evaluation benchmarks originate from GitHub. Additionally, the Reproducibility Statement does not specify whether the task pool, trajectories, or collection scripts will be publicly released. These omissions limit reproducibility and independent verification.",+ "questions_for_authors": "1. How much would the trajectory recovery rate decrease if the diagnosis agent had no access to the golden patch?\n2. Could the authors provide more details on task collection, filtering, deduplication, and benchmark overlap verification?\n3. Could the authors evaluate sensitivity to inaccurate error localization? For example, the authors could introduce random perturbations to the identified error step and measure their effects on recovery rate and downstream SWE performance.",+ "flag_for_ethics_review": "No",+ "rating": 3,+ "confidence": 3+ },+ "createdAt": "2026-10-19T10:16:33.617Z",+ "modifiedAt": "2026-11-17T20:53:18.969Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=B8G7lOWET7",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/bbsdhnmhsu.json added
+++ b/reviews/openreview/su2zvam0va/notes/bbsdhnmhsu.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "bBSDHNmhSU",+ "replyTo": "Crk8W7S2Pt",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer HEXe",+ "content": {+ "comment": "Thank you for your response. I will maintain my original score as acceptance."+ },+ "createdAt": "2026-11-17T21:42:50.924Z",+ "modifiedAt": "2026-11-17T21:42:50.924Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=bBSDHNmhSU",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/ceut85ikc2.json added
+++ b/reviews/openreview/su2zvam0va/notes/ceut85ikc2.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "CeUT85ikC2",+ "replyTo": "xpMhf11ad1",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for their insightful comments. We will incorporate the suggestions in the revision.\n\n> **Q2: How are Recovered, Unrepaired and Resampled constructed and matched by tasks and trajectories? How are 19,171 corresponding unrepaired trajectories obtained from 17,894 original failed tasks, and are duplicates shared across arms?**\n\nWe will spell out how each set is constructed. One collection round runs DeepSeek-V4-Flash-0731 over the 55,366-task pool and yields 37,472 solved trajectories forming the Solved set together with 17,894 failed trajectories. **We run TrajFix twice on each failed trajectory. The two independent runs can produce different recovered trajectories for the same failed trajectory.** This gives 35,788 repair attempts, and 19,171 of them are recovered. These 19,171 form the Recovered set, a 53.6% rate as in Table 12. We then match each recovered trajectory back to its original failed trajectory, and these matched originals form the Unrepaired set. The Resampled set is independent of the repair runs. It is a four-round independent resampling of the same 17,894 failed tasks and yields 9,594 successes. **Because TrajFix runs twice on each failed trajectory, the number of recovered trajectories can exceed the number of failed trajectories**, which is why Recovered at 19,171 is larger than the 17,894 failed trajectories. The Unrepaired set holds the original failed trajectories that were recovered, and because the same failed trajectory can be recovered in both runs, that identical original failed trajectory then appears twice in Unrepaired. The Resampled set resamples four times on the tasks of the 17,894 failed trajectories, so the same task can yield several different successful trajectories, but these are generated independently and share only the tasks with the repair runs.\n\nThank you again for your valuable suggestions, and we look forward to further discussions with you."+ },+ "createdAt": "2026-11-13T09:50:29.010Z",+ "modifiedAt": "2026-11-16T17:20:04.001Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=CeUT85ikC2",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/crk8w7s2pt.json added
+++ b/reviews/openreview/su2zvam0va/notes/crk8w7s2pt.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "Crk8W7S2Pt",+ "replyTo": "klKAh7ByFz",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for their insightful comments. We will incorporate the suggestions in the revision.\n\n> **W1: Limited methodological novelty. The proposed framework mainly combines existing techniques, including LLM-based error diagnosis, correction, prefix replay, and verification. The individual components are relatively straightforward.**\n\nThe reviewer is right that the individual agents, namely LLM-based error diagnosis, correction, prefix replay, and verification, are each existing techniques. Our contribution is not to propose a new component but to show **how to connect these components into a loop that works well together**, so that oracle-guided repair produces clean training data, which prior work does not achieve. Three design choices in the loop matter. First, the golden patch is used only to locate the first wrong step, and it is never copied into the trajectory. Second, the Admissibility Constraint and Hallucination Detection reject any corrected step that leaks the answer. Third, prefix replay lets the model continue without supervision, so the recovered trajectory stays on-policy. The ablation shows that these choices are what make the loop effective. Removing them raises the hallucination rate by 5.6 times, from 2.53% to 14.23%, which means the recovered data would leak oracle information without them. The value therefore comes from how the known components are composed and constrained, not from any one of them alone.\n\n> **W3: Insufficient comparison with alternative data generation and training approaches, in particular recent on-policy distillation (OPD) methods. Comparisons under similar teacher-compute budgets would help.**\n\nWe see OPD and TrajFix as operating at different stages of the training pipeline, so **they are complementary rather than competing.** TrajFix is a data-production method that repairs failed trajectories into verifiable successful ones for supervised fine-tuning. OPD is a policy-transfer method that optimizes a student against a teacher during training. The two can be composed in sequence. **A natural setup is to first fine-tune a model on the data that TrajFix recovers, and then use that stronger SFT model as the starting point for OPD.** In this way TrajFix improves the student before OPD begins, and OPD further refines the policy on top. A matched-teacher-compute comparison is a fair request, but a full OPD pipeline under matched budget is a sizeable experiment that we cannot complete within the rebuttal window, so we may add it in a future version if resources allow. \n\nThank you again for your valuable suggestions, and we look forward to further discussions with you."+ },+ "createdAt": "2026-11-13T08:02:12.266Z",+ "modifiedAt": "2026-11-13T08:02:12.266Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=Crk8W7S2Pt",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/epn0xl6b3w.json added
+++ b/reviews/openreview/su2zvam0va/notes/epn0xl6b3w.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "ePn0xL6B3W",+ "replyTo": "CeUT85ikC2",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer uRik",+ "content": {+ "title": "Reply to the authors",+ "comment": "Thank you for the detailed responses and the new experiments, especially the container-time accounting and the full swap to GLM-5.3-Flash.\n\n**W1.** Largely resolved. The container-time results show that the cost advantage also holds in machine time. It would help to also report the wall-clock time of the out-of-container stages (diagnosis, correction, hallucination detection, and its regenerations).\n\n**W2.** The GLM-5.3-Flash experiment is the right test, and the main comparison carries over. The error-type distribution that motivates single-step repair is still DeepSeek-only.\n\n**Q1.** Answered. The new controls suggest that most of the gain comes from golden-patch-guided attribution.\n\n**Q2.** The construction is now clear."+ },+ "createdAt": "2026-11-13T22:23:26.175Z",+ "modifiedAt": "2026-11-16T14:58:34.545Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=ePn0xL6B3W",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/ernppc7ozz.json added
+++ b/reviews/openreview/su2zvam0va/notes/ernppc7ozz.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "eRNPPC7Ozz",+ "replyTo": "VUZf69MOut",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for their insightful comments. We will incorporate the suggestions in the revision.\n\n> **W2 / Q2: The task pool's collection and filtering procedures are not sufficiently documented. More details are needed to assess potential data leakage, and the Reproducibility Statement does not specify whether the pool, trajectories, or scripts will be released.**\n\nWe will expand Appendix G.1 with the full construction-and-filtering pipeline, summarized below.\n\n| Stage | Operation and thresholds | Count |\n|---|---|---:|\n| **Collect repos** | crawl GitHub repos across 10 languages | **39,725 repos** |\n| **Filter repos** | Stars ≥1,000; Forks, Issues, PRs each ≥200; primary-language share ≥60% | **8,000 repos** |\n| **Collect + rule-filter instances** | extract Issue–PR pairs from kept repos; issue closed; non-empty description, fix patch, test patch; involves code change; changed lines ≤1,000; files ≤10 | **317,283 instances** |\n| **LLM quality filter** | DeepSeek-V3.2 scores each task 0–10; drop tasks below 5 | **213,766 instances** |\n| **Environment build + F2P check** | build or reuse a Docker env; test fails with only the test patch applied, passes after adding the fix patch | **55,366 instances from 5,101 repos** |\n\nThe pipeline runs top to bottom. Note that the pool construction and filtering was carried out in prior work, which is why the quality filter uses an earlier model, DeepSeek-V3.2, as the LLM judge. We first crawl 39,725 GitHub repos across ten languages (Python, Go, JavaScript, TypeScript, Java, Rust, PHP, Ruby, C, C++) and keep 8,000 that pass popularity and language-purity thresholds; from these we extract Issue–PR pairs and apply rule-based filters (closed issue; non-empty description, fix patch, and test patch; involves a code change; ≤1,000 changed lines; ≤10 files), giving 317,283 instances; an LLM quality filter (DeepSeek-V3.2, score ≥5 of 10) then narrows this to 213,766; finally, environment construction with the Fail-to-Pass (F2P) execution check yields the **55,366-instance pool from 5,101 repositories** used in the paper.\n\n**Contamination handling.** **We retain a task only if the test suite fails on the pre-fix repository and passes after applying the golden patch.** This ensures that every retained task is verifiable, while any environment that cannot reproduce this F2P behavior is discarded. Each instance is associated with a unique PR. To **prevent repository-level overlap with evaluation data**, we compare the `owner/repo` identifiers and exclude any repository that appears in SWE-Bench Verified, Multilingual, or Pro. Since both our training data and the evaluation benchmarks are sourced from GitHub, repository-level exclusion provides a relevant safeguard against contamination. Moreover, the evaluation benchmarks were released independently of our collection process and fall outside our data collection window.\n\n**Release.** We will consider releasing the task pool and the trajectory sets involved in the paper so that others can reproduce the experiments."+ },+ "createdAt": "2026-11-13T08:24:19.644Z",+ "modifiedAt": "2026-11-13T08:24:19.644Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=eRNPPC7Ozz",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/klkah7byfz.json added
+++ b/reviews/openreview/su2zvam0va/notes/klkah7byfz.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "klKAh7ByFz",+ "replyTo": "n3z91s6dZN",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for their insightful comments. We will incorporate the suggestions in the revision.\n\n> **W2 & Q: Potential information advantage in baseline comparisons. TrajFix uses the ground-truth golden patch during diagnosis, while the resampling baselines do not have access to this information. (Q) Since the diagnosis agent has access to the golden patch, how much of the improvement comes from this privileged information rather than the proposed repair mechanism, and would it be possible to compare against golden-patch-guided resampling?**\n\nWe agree that this is an important concern. Beyond the two controls the reviewer asked for, namely **(i) no-privilege trajectory repair** and **(ii) golden-patch-guided resampling under a strict no-leakage constraint**, we added two further controls to disentangle the contributions of different factors: **(iii) no-privilege trajectory repair with a stronger model (Kimi-K3) as the diagnosis/correction teacher**, and **(iv) direct resampling before the error step**. The six settings below are identical in everything except the data-collection method. We report, for each setting: Overall = the fraction of the 400 tasks recovered (or passed); Solved-before = recovery rate on tasks the model had already solved (0 < Pass@4 < 1); Never-solved = recovery rate on tasks the model never solved (Pass@4 = 0); and **Gold overlap (median)** = the median add-line-overlap with the gold patch, which measures how line-for-line the final patch copies the reference.\n\n| # | Setting | How the patch is used | Overall | Solved-before | Never-solved | Gold overlap (median) |\n|---|---|---|---|---|---|---|\n| 1 | Golden-patch-guided resampling (no-leak constraint) | reference solution; rules forbid leakage | **96.00%** | 99.0% | 93.0% | **0.976** |\n| 2 | **TrajFix (ours)** | localization & attribution only; rule constraints + hallucination detection block leakage | 79.00% | 89.0% | 69.0% | 0.325 |\n| 3 | No-privilege TrajFix | not used | 27.75% | 47.5% | 8.0% | 0.250 |\n| 4 | No-privilege TrajFix (Kimi-K3, stronger) | not used | 29.00% | 50.0% | 8.0% | 0.274 |\n| 5 | No-privilege resampling (4 rounds, from scratch) | not used | 47.50% | 81.0% | 14.0% | 0.294 |\n| 6 | Resample before the error step | step location borrowed only | 51.25% | 85.5% | 17.0% | 0.305 |\n\n**Despite achieving the highest recovery rate, golden-patch-guided resampling produces unsuitable training data.** First, even though the prompt strictly forbids citing any privileged information, more than 50% of the steps still mention the gold patch in their reasoning. Second, the extremely high gold overlap indicates that the generated code largely reproduces the reference solution, resulting in limited diversity and making the trajectories unsuitable as training data. **In contrast, TrajFix uses the golden patch only to guide error diagnosis without leaking its information into the generated trajectory.** With hallucination detection in single-step repair, the corrected step's chain-of-thought can only use information from the problem statement or observations obtained in previous steps, all of which are available in a normal rollout. Moreover, its gold overlap (0.325) is only slightly higher than that of no-privilege resampling (0.294) and much lower than that of golden-patch-guided resampling (0.976). This shows the safety of introducing the golden patch through single-step trajectory repair.\n\n**Removing privileged information from error attribution reduces the recovery rate by about 50 percentage points. Importantly, the gain comes from the golden patch's improved error-step identification and attribution, rather than copying its content into subsequent trajectory generation.** **(1) The golden patch is necessary for accurate error attribution.** This is supported by the fact that No-privilege TrajFix (27.75%) performs worse than Resample before the error step (51.25%). Without the golden patch, TrajFix may produce error attributions that deviate from the actual error, leading to misguided repair actions that hurt the subsequent rollout. **(2)** Resample before the error step also slightly outperforms No-privilege resampling. This suggests that **a substantial portion of the prefix in a failed trajectory is already correct.** Preserving these steps and continuing from the error point is therefore more effective than starting over, providing evidence for the necessity of prefix replay. **(3)** Even when a stronger model (Kimi-K3) performs attribution without privileged information, the recovery rate remains low and is even lower than that of No-privilege resampling. This suggests that the bottleneck is not the diagnosis model's capability, but the lack of a golden patch to guide error attribution. Taken together, these results show that the combination of **golden-patch-guided attribution, minimal single-step repair, and prefix replay** is an effective design for balancing high recovery and training-data usability."+ },+ "createdAt": "2026-11-13T07:58:27.916Z",+ "modifiedAt": "2026-11-13T07:58:27.916Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=klKAh7ByFz",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/n3z91s6dzn.json added
+++ b/reviews/openreview/su2zvam0va/notes/n3z91s6dzn.json@@ -0,0 +1,24 @@+{+ "schema": "review/1",+ "id": "n3z91s6dZN",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer HEXe",+ "content": {+ "paper_summary": "This paper presents TrajFix, a multi-agent framework for synthesizing training data by repairing failed software-engineering trajectories. Instead of discarding failed trajectories, TrajFix identifies and corrects the first erroneous step, replays the valid prefix, and continues the rollout. The framework also introduces hallucination detection and iterative repair to improve data quality. Experiments demonstrate significant improvements in trajectory recovery efficiency and downstream SWE performance.",+ "presentation": 3,+ "informativeness": 2,+ "soundness": 2,+ "critical_strengths": "The paper addresses an important problem of efficiently generating high-quality training data for SWE agents.\n\n\n\nThe proposed method is intuitive, practical, and clearly presented.\n\n\n\nThe experiments demonstrate significant improvements in trajectory recovery rates and downstream performance across multiple SWE benchmarks.",+ "critical_weaknesses": "1. Limited methodological novelty. The proposed framework mainly combines existing techniques, including LLM-based error diagnosis, correction, prefix replay, and verification. The individual components are relatively straightforward.\n\n2. Potential information advantage in baseline comparisons. TrajFix uses the ground-truth golden patch during diagnosis, while the resampling baselines do not have access to this information. Although using privileged information for offline data synthesis is reasonable, it is unclear how much of the improvement comes from the proposed repair mechanism rather than access to the golden patch.\n\n3. Insufficient comparison with alternative data generation and training approaches. The paper does not compare against recent on-policy distillation (OPD) methods, such as [1]. Although [1] is very recent and OPD targets a somewhat different setting, comparisons under similar teacher-compute budgets would help better understand the effectiveness of TrajFix.",+ "questions_for_authors": "Contribution of oracle information: Since the diagnosis agent has access to the golden patch, how much of the improvement comes from this privileged information rather than the proposed trajectory repair mechanism? Would it be possible to compare against golden-patch-guided resampling?",+ "flag_for_ethics_review": "No",+ "rating": 3,+ "confidence": 3+ },+ "createdAt": "2026-10-22T06:51:05.043Z",+ "modifiedAt": "2026-11-06T12:32:15.953Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=n3z91s6dZN",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/rnadgihfut.json added
+++ b/reviews/openreview/su2zvam0va/notes/rnadgihfut.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "rNadgIHfut",+ "replyTo": "eRNPPC7Ozz",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for their insightful comments. We will incorporate the suggestions in the revision.\n\n> **Q3: Could the authors evaluate sensitivity to inaccurate error localization, for example by introducing random perturbations to the identified error step and measuring the effect on recovery rate?**\n\nWe ran this experiment on the same 400 tasks, with DeepSeek-V4-Flash-0731 as the rollout model, the same setup as our other experiments. After diagnosis outputs the first wrong step s\\*, we deliberately perturb the step that is actually corrected to a position near s\\*, using shifts within 5 steps and beyond 20 steps in both directions. To separate the effect of the *position* from the effect of the *attribution*, we test three attribution modes at each perturbed position:\n\n- **keep original attribution** — move the edit point but reuse the original attribution;\n- **re-diagnose (self-consistent)** — re-run diagnosis on the perturbed prefix and use the new attribution;\n- **strip attribution (position only)** — give only the perturbed position with no attribution, so recovery depends on position alone.\n\nThe cells report the **recovery rate** under each mode and shift.\n\n| Attribution mode | before >20 | before ≤5 | after ≤5 | after >20 |\n|---|---|---|---|---|\n| keep original attribution | 72.0% | 78.5% | 74.5% | 74.0% |\n| re-diagnose (self-consistent) | 52.5% | 46.5% | 49.0% | 55.5% |\n| strip attribution (position only) | 42.5% | 33.0% | 12.5% | 16.0% |\n\nFour findings emerge from this analysis. **(1) When attribution is correct, random perturbation of the error-step position has a limited effect on recovery.** The keep mode remains around 75% across all shifts, including those beyond 20 steps, indicating that a correct attribution enables recovery even under substantially mislocalized edit points; this accounts for TrajFix's robustness to imperfect localization. **(2) Attribution quality dominates localization accuracy.** At matched positions, the recovery gap between providing a correct attribution (keep mode) and providing none (strip mode) substantially exceeds the variation across positions within either mode, indicating that the correctness of the attribution, rather than the exact edit position, is the principal determinant of recovery. **(3) Without attribution, correcting after the true error is more harmful than correcting before it.** In the strip mode, shifting the edit point 5 steps after the error results in only 12.5% recovery, compared with 33.0% when shifting it 5 steps before the error. A late correction leaves the root cause unaddressed in the prefix, making it harder for the subsequent rollout to recover. This supports targeting the first wrong step rather than a later, more visible symptom. **(4) Re-diagnosis partially compensates for a perturbed position.** The re-diagnose mode lies between the keep and strip modes: by re-attributing on the perturbed prefix, it recovers a substantial portion of the loss that the strip mode incurs under positional perturbation, supporting the multi-point progressive design in which subsequent rounds can correct an imperfect initial localization.\n\n**On the effect on downstream SWE performance.** The reviewer asks about the effect of perturbation on both recovery rate and downstream SWE performance; the results above cover recovery rate. For SWE performance, our position is that the recovered trajectories carry richer learning signal, and we manually checked a sample of the perturbation-recovered trajectories and found no anomaly, so a drop in recovery quality should carry through to downstream SWE performance in the same direction. However, data collection, model training, and model evaluation together form a long-running pipeline that we cannot complete within the rebuttal window, so we prioritized the recovery-rate comparison here and will add the corresponding downstream SWE-performance experiments in the final version.\n\nThank you again for your valuable suggestions, and we look forward to further discussions with you."+ },+ "createdAt": "2026-11-13T08:29:32.476Z",+ "modifiedAt": "2026-11-13T08:29:32.476Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=rNadgIHfut",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/uuhas2lype.json added
+++ b/reviews/openreview/su2zvam0va/notes/uuhas2lype.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "uUHas2lYPe",+ "replyTo": "aAyzMDhUuj",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for their insightful comments. We will incorporate the suggestions in the revision.\n\n> **W2: The experiments rest almost entirely on the failures of a single DeepSeek policy, so it is unclear whether the conclusions transfer to other models. The error-type distribution that motivates the design also comes only from DeepSeek-V4-Flash failures.**\n\nThis is the most important robustness check, so we **ran a full model-family swap in which GLM-5.3-Flash** produces the failed trajectories and also performs diagnosis, correction, and continuation rollout, while hallucination detection stays fixed (DeepSeek-V4-Pro) as before. To make the results directly comparable with those in the paper, we repeated the two main comparisons in Section 3.2 using GLM-5.3-Flash under the same protocol: the resolve-rate and cost comparison and the resolve-rate comparison across rounds and task subsets. We selected the test set based on four-round resampling, including 200 never-solved tasks (Pass@4 = 0) and 200 solved-before tasks (0 < Pass@4 < 1).\n\nWe report, for each setting: the task-level **resolve rate** (# Resolved / Resolved %, where a task counts as resolved if any of its trajectories passes F2P); the total number of produced trajectories (# Traj); the **trajectory success rate** (# Succ. traj / Succ. %, the fraction of all produced trajectories that pass F2P); **input and output tokens per trajectory** in thousands; and **cost** as total and per successful trajectory. \n\n**Resolve rate and cost (cf. Table 1).**\n\n| Method | # Resolved | Resolved (%) | # Succ. traj | # Traj | Succ. (%) | In (k) | Out (k) | Total (\\$) | / succ. traj (\\$) |\n|---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|\n| Resampling (matched-k rounds) | 104 | 26.00 | 122 | 866 | 14.08 | 4,836.2 | 46.1 | 294.8 | 2.4160 |\n| Resampling (early stop) | 168 | 42.00 | 168 | 1,230 | 13.65 | 4,434.5 | 43.9 | 388.1 | 2.3101 |\n| Resampling (4 rounds) | 168 | 42.00 | 356 | 1,600 | 22.25 | 4,442.7 | 44.3 | 508.1 | 1.4273 |\n| **TrajFix** | 336 | **84.00** | 336 | 866 | 38.80 | 4,139.8 | 60.3 | 325.2 | **0.9679** |\n\nThe ranking on GLM-5.3-Flash matches that on DeepSeek-V4-Flash-0731, showing that **the mechanism and the conclusions transfer to another model**. Applied to GLM-5.3-Flash's own failed trajectories, TrajFix still delivers a large resolve-rate gain, and its cost per successful trajectory is still the lowest. It produces more output tokens per trajectory because of the extra diagnosis, correction, and hallucination-detection stages, but fewer input tokens because prefix replay re-executes the valid prefix instead of regenerating it, so the overall cost per usable trajectory stays the lowest.\n\n**Resolve rate by round and subset (cf. Table 6).**\n\n| Method | Full R1 | R2 | R3 | R4 | Never-solved R1 | R2 | R3 | R4 | Solved-before R1 | R2 | R3 | R4 |\n|---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|\n| Resampling (matched-k rounds) | 23.0 | 25.0 | 25.5 | 26.0 | 2.0 | 2.0 | 2.0 | 2.0 | 44.0 | 48.0 | 49.0 | 50.0 |\n| Resampling (early stop) | 23.0 | 32.5 | 37.0 | 42.0 | 2.0 | 3.0 | 4.0 | 6.0 | 44.0 | 62.0 | 70.0 | 78.0 |\n| Resampling (4 rounds) | 23.0 | 32.5 | 37.0 | 42.0 | 2.0 | 3.0 | 4.0 | 6.0 | 44.0 | 62.0 | 70.0 | 78.0 |\n| **TrajFix** | 42.0 | 64.5 | 77.0 | **84.0** | 24.0 | 41.0 | 59.0 | **70.0** | 60.0 | 88.0 | 95.0 | **98.0** |\n\nEach cell is the **cumulative resolve rate after k rounds**: for resampling this is Pass@k, for TrajFix it is the fraction recovered within the first k diagnosis rounds. The two subsets are never-solved (Pass@4 = 0) and solved-before (0 < Pass@4 < 1), the same difficulty split used in the paper's per-subset analysis. \n**TrajFix achieves a higher resolve rate than every resampling setting at every round in both subsets.** This is consistent with our main finding that resampling is limited by the model's own solving ability, whereas TrajFix can recover even hard tasks by replaying valid prefixes and repairing individual steps. Since both the resolve-rate and cost comparison and the per-round, per-subset comparison yield consistent results with a different model family that repairs its own failed trajectories, our conclusions are not specific to a single DeepSeek policy. **We will include GLM-5.3-Flash as a second policy throughout the paper.**"+ },+ "createdAt": "2026-11-13T09:36:24.753Z",+ "modifiedAt": "2026-11-13T09:36:24.753Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=uUHas2lYPe",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/vuzf69mout.json added
+++ b/reviews/openreview/su2zvam0va/notes/vuzf69mout.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "VUZf69MOut",+ "replyTo": "B8G7lOWET7",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for their insightful comments. We will incorporate the suggestions in the revision.\n\n> **W1 / Q1: It remains unclear whether the improvements come from learning meaningful decision-making skills or from privileged supervision provided by the golden patch. How much would the trajectory recovery rate decrease if the diagnosis agent had no access to the golden patch?**\n\nThis mirrors Reviewer 1's W2. The paper already reports results for TrajFix and No-privilege resampling (4 rounds, from scratch), while the reviewer's question concerns **No-privilege TrajFix**, which removes the golden patch from diagnosis. To further distinguish the contribution of the golden patch from that of the repair mechanism, we add two additional controls: **Golden-patch-guided resampling (no-leak constraint)** and **Resample before the error step**. The five settings below are identical in everything except the data-collection method (same 400 tasks, same rollout model DeepSeek-V4-Flash-0731). We report, for each setting: Overall = the fraction of the 400 tasks recovered (or passed); Solved-before = recovery rate on tasks the model had already solved at least once (0 < Pass@4 < 1); Never-solved = recovery rate on tasks the model never solved (Pass@4 = 0); and **Gold overlap (median)** = the median add-line-overlap with the gold patch, which measures how line-for-line the final patch copies the reference.\n\n| # | Setting | How the patch is used | Overall | Solved-before | Never-solved | Gold overlap (median) |\n|---|---|---|---|---|---|---|\n| 1 | Golden-patch-guided resampling (no-leak constraint) | reference solution; rules forbid leakage | **96.00%** | 99.0% | 93.0% | **0.976** |\n| 2 | **TrajFix (ours)** | localization & attribution only; rule constraints + hallucination detection block leakage | 79.00% | 89.0% | 69.0% | 0.325 |\n| 3 | No-privilege TrajFix | not used | 27.75% | 47.5% | 8.0% | 0.250 |\n| 4 | No-privilege resampling (4 rounds, from scratch) | not used | 47.50% | 81.0% | 14.0% | 0.294 |\n| 5 | Resample before the attributed error step (no-privilege) | step location borrowed only | 51.25% | 85.5% | 17.0% | 0.305 |\n\n**Without access to the golden patch during diagnosis, the overall recovery rate drops by about 50 percentage points.** However, the key point is that **the gain comes from the golden patch's improved error-step identification and attribution, rather than copying its content into subsequent trajectory generation.** Golden-patch-guided resampling achieves a 96.0% recovery rate, but results in substantial copying of the reference solution (gold overlap of 0.976), with more than half of the steps mentioning the gold patch in their reasoning. Such trajectories are unsuitable for training. In contrast, TrajFix keeps the patch out of the generated trajectory and produces recovered data with much lower gold overlap.\n\n**The golden patch is also necessary for accurate error attribution.** Without the patch, the model may attribute the failure to the wrong step, leading to misguided repair actions that hurt the subsequent rollout. No-privilege TrajFix achieves only 27.75% recovery, performing worse than Resample before the error step (51.25%), which continues from the prefix without attempting error attribution. The golden patch therefore provides an essential reference for accurate error attribution.\n\nThe comparison also supports **the necessity of prefix replay**. Resample before the error step (51.25%) outperforms No-privilege resampling (47.5%). This suggests that a substantial portion of a failed trajectory's prefix is already correct, and preserving it while continuing from the error point is more effective than starting over. Taken together, these results show that TrajFix recovers useful trajectories by correcting errors while preserving valid prefix steps, with the golden patch guiding error attribution but not leaking into the generated trajectory. The downstream SFT gains in Table 4 further confirm that the recovered trajectories provide useful training signals."+ },+ "createdAt": "2026-11-13T08:20:36.545Z",+ "modifiedAt": "2026-11-13T08:20:36.545Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=VUZf69MOut",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/wi3amhvh1u.json added
+++ b/reviews/openreview/su2zvam0va/notes/wi3amhvh1u.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "wI3AMhVH1u",+ "replyTo": "79IGkGCyTX",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "General Response (2/3)",+ "comment": "We thank all reviewers for their constructive feedback. This comment gives an overview of the revision. Each reviewer's individual points are answered one by one in a separate thread.\n\n> **3. The method is applied to a single DeepSeek model; do the conclusions transfer to other models? (uRik W2)**\n\n**Added.** A full model-family swap in which GLM-5.3-Flash produces the failed trajectories and performs diagnosis, correction, and continuation (hallucination detection fixed to DeepSeek-V4-Pro). We repeat the same resolve-rate-and-cost comparison and the per-round, per-subset success-rate comparison.\n\n| Method | # Resolved | Resolved (%) | # Succ. traj | # Traj | Succ. (%) | In (k) | Out (k) | Total (\\$) | / succ. traj (\\$) |\n|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|\n| Resampling (matched-k) | 104 | 26.00 | 122 | 866 | 14.08 | 4,836.2 | 46.1 | 294.8 | 2.4160 |\n| Resampling (early stop) | 168 | 42.00 | 168 | 1,230 | 13.65 | 4,434.5 | 43.9 | 388.1 | 2.3101 |\n| Resampling (4 rounds) | 168 | 42.00 | 356 | 1,600 | 22.25 | 4,442.7 | 44.3 | 508.1 | 1.4273 |\n| **TrajFix** | 336 | **84.00** | 336 | 866 | 38.80 | 4,139.8 | 60.3 | 325.2 | **0.9679** |\n\n**Result.** The conclusions transfer. On GLM-5.3-Flash's own failed trajectories, TrajFix still gives the largest resolve-rate gain and the lowest cost per successful trajectory.\n\n> **4. How much does perturbing the error localization affect recovery? (EXfH Q3; uRik Q2)**\n\n**Added.** A perturbation study. After diagnosis outputs the first wrong step s\\*, we move the actually-corrected step to a position near s\\* (within 5 steps and beyond 20 steps, in both directions), under three attribution modes: **keep** (reuse the original attribution), **re-diagnose** (re-attribute on the perturbed prefix), and **strip** (give only the position, no attribution), to separate the effect of position from that of attribution.\n\n\n| Attribution mode | before >20 | before ≤5 | after ≤5 | after >20 |\n|---|---:|---:|---:|---:|\n| keep original attribution | 72.0% | 78.5% | 74.5% | 74.0% |\n| re-diagnose (self-consistent) | 52.5% | 46.5% | 49.0% | 55.5% |\n| strip attribution (position only) | 42.5% | 33.0% | **12.5%** | **16.0%** |\n\n**Result.**\n\n- **A correct attribution makes localization error nearly harmless.** Keep stays around 75% across all shifts, including beyond 20 steps, which is why TrajFix tolerates imperfect localization.\n- **Attribution quality dominates position.** At matched positions, the keep-minus-strip gap far exceeds the variation across positions within either mode, so attribution correctness, not the exact edit position, drives recovery.\n- **Without attribution, correcting after the true error is worse than before it.** In strip, a 5-step shift after the error gives only 12.5% versus 33.0% before it, because a late edit leaves the root cause unfixed in the prefix; this supports targeting the first wrong step.\n- **Re-diagnosis partially compensates.** Re-diagnose sits between keep and strip, recovering much of what strip loses under perturbation, which supports the multi-round progressive design that can correct an imperfect initial localization."+ },+ "createdAt": "2026-11-19T11:35:28.766Z",+ "modifiedAt": "2026-11-19T11:35:28.766Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=wI3AMhVH1u",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/xpmhf11ad1.json added
+++ b/reviews/openreview/su2zvam0va/notes/xpmhf11ad1.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "xpMhf11ad1",+ "replyTo": "uUHas2lYPe",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for their insightful comments. We will incorporate the suggestions in the revision.\n\n> **Q1: Which information and attempt budgets are available for each Table 1 baseline? Please distinguish matched-k from equal-maximum-attempt comparisons and state whether privileged-hint or prefix-replay controls already exist.**\n\nWe will make the budget matrix explicit. All runs use the same model DeepSeek-V4-Flash-0731, and only TrajFix uses prefix replay.\n\n| Setting | Attempt budget | Privileged hint | Prefix replay |\n|---|---|---|---|\n| Resampling (matched-k) | k = round TrajFix recovered on, else 4 | none | no |\n| Resampling (early-stop) | up to 4, stop on first success | none | no |\n| Resampling (4-round) | fixed 4 | none | no |\n| **TrajFix** | 4 diagnosis rounds × 1 continuation | golden patch (diagnosis only) | yes |\n\n**Matched-k (equal-rollout-budget)** sets the resampling rounds k per task equal to the number of diagnosis rounds TrajFix used to recover that task (k=4 if unrecovered), so the two consume the same rollouts per task. **4-round (equal-maximum-attempt)** runs a fixed four independent resampling rollouts per task, whose cumulative rate is Pass@4, independent of when TrajFix succeeds, and thus grants resampling no less budget than matched-k. \n\nAs the matrix shows, among the runs reported in the paper only TrajFix touches the golden patch (for diagnosis only) and uses prefix replay, while the resampling runs have neither. Since this difference between the two variables may raise the reviewer's concern, we add two control settings to better support the conclusion: **golden-patch-guided resampling**, where resampling may consult the golden patch but a rule forbids leaking any privileged information; and **resampling before the error step**, which keeps the prefix without any golden-patch attribution so as to isolate the effect of prefix replay. Together with the paper's TrajFix and 4-round resampling, the four settings share the same 400 tasks and the same rollout model. We report, for each setting: **Overall** = the fraction of the 400 tasks recovered (or passed); **Solved-before** = recovery rate on tasks the model had already solved at least once by resampling (0 < Pass@4 < 1); **Never-solved** = recovery rate on tasks the model never solved (Pass@4 = 0); and **Gold overlap (median)** = the median add-line-overlap with the gold patch, which measures how line-for-line the final patch copies the reference.\n\n| Setting | Golden patch | Prefix replay | Overall | Solved-before | Never-solved | Gold overlap (median) |\n|---|---|---|---|---|---|---|\n| Golden-patch-guided resampling | as reference | no | **96.0%** | 99.0% | 93.0% | **0.976** |\n| **TrajFix (ours)** | diagnosis only | yes | 79.0% | 89.0% | 69.0% | 0.325 |\n| Resample before the attributed error step | none | yes | 51.25% | 85.5% | 17.0% | 0.305 |\n| Resampling (4-round) | none | no | 47.5% | 81.0% | 14.0% | 0.294 |\n\n**(1) Golden-patch-guided resampling scores highest yet cannot serve as training data.** It reaches 96.0%, but its trajectories copy the reference line-for-line (gold overlap 0.976, versus 0.325 for TrajFix), and even under a strict no-leak rule more than half the steps still mention the gold patch in their reasoning. This data leaks privileged information that a normal rollout cannot obtain and is out of the normal rollout distribution, so it cannot be used for training; TrajFix instead uses the golden patch only to attribute the error and never copies it into the trajectory, so its recovered data stays clean, which shows **the golden patch is used safely as a localization signal** rather than a copied answer. \n\n**(2) A substantial portion of the failed prefix is in fact correct.** Resampling before the error step (51.25%) already exceeds resampling from scratch (47.5%), showing that much of the failed prefix is correct and that replaying it alone yields gains, which validates **the necessity of prefix replay.**"+ },+ "createdAt": "2026-11-13T09:48:18.356Z",+ "modifiedAt": "2026-11-13T09:48:18.356Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=xpMhf11ad1",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/y28etwwyvs.json added
+++ b/reviews/openreview/su2zvam0va/notes/y28etwwyvs.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "Y28etwwYvs",+ "replyTo": "ePn0xL6B3W",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for the updated assessment and for the four follow-up points, which we address in turn.\n\n> **W1. Wall-clock of the out-of-container stages.**\n\nWe thank the reviewer for this suggestion, which completes the cost accounting, and we have measured the wall-clock of the out-of-container stages, namely diagnosis, correction, hallucination detection, and the regenerations when a corrected step is rejected. These stages run while the container holds no executing step, so they are pure model-inference time rather than container compute. We report them on the same tasks in the table below.\n\n| Quantity | Value |\n|---|---:|\n| Trajectories produced | 822 |\n| Out-of-container time, total (h) | 86.3 |\n| Out-of-container wall-clock / traj (min) | 6.3 |\n| per-call latency (s) | 65 |\n\nThe median per-call interval is 65 s, with almost no tool activity in between. Because these long-reasoning calls run outside the container, they lengthen wall-clock but do not consume container compute. The regenerations from hallucination-detection rejection are additional correction and detection calls, whose token cost is already inside the Table 1 API cost of our W1 response.\n\nWe next fold the out-of-container stages into the total cost. We price the out-of-container wall-clock at the AWS m5a.large on-demand rate of \\$0.086 per container-hour. The three resampling baselines have no out-of-container diagnosis, correction, or detection stage, so those two entries do not apply to them and are left as placeholders.\n\n| Method | Out-of-container time (h) | Out-of-container cost (\\$) | Container-h | Container cost (\\$) | API cost (\\$) | Total (\\$) | / succ. traj (\\$) |\n|---|---:|---:|---:|---:|---:|---:|---:|\n| Resampling (matched-k rounds) | — | — | 498.3 | 42.9 | 250.9 | 293.8 | 1.65 |\n| Resampling (early stop) | — | — | 613.1 | 52.7 | 295.0 | 347.7 | 1.83 |\n| Resampling (4 rounds) | — | — | 850.9 | 73.2 | 450.3 | 523.5 | 1.11 |\n| **TrajFix** | 86.3 | 7.4 | 226.1 | 19.4 | 233.5 | 260.3 | **0.82** |\n\n**Adding the out-of-container cost does not change the conclusion. The out-of-container stages add only `$7.4` and raise TrajFix's cost per successful trajectory from `$0.80` to `$0.82`, which is still the lowest of all settings and well below every resampling baseline.** We will add the out-of-container breakdown to the appendix execution-overhead section."+ },+ "createdAt": "2026-11-16T17:17:03.210Z",+ "modifiedAt": "2026-11-16T17:18:40.784Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=Y28etwwYvs",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/yvspbyklp0.json added
+++ b/reviews/openreview/su2zvam0va/notes/yvspbyklp0.json@@ -0,0 +1,24 @@+{+ "schema": "review/1",+ "id": "YvSpBYkLP0",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer uRik",+ "content": {+ "paper_summary": "The paper addresses the production of training data for software-engineering agents. Failed trajectories on hard tasks are usually discarded, which wastes sampling cost and loses the learning signal from those tasks. The authors propose TrajFix, a multi-agent framework that repairs failed trajectories: using the task's reference solution, it locates the first wrong step, corrects only that step while keeping the earlier correct part, and lets the model finish the task on its own, so that trajectories passing the tests can be used as training data. The framework also includes a check against leaking the reference solution and supports multiple repair rounds. Experiments on failed trajectories from a DeepSeek model show that TrajFix solves more tasks than resampling, especially tasks the model could not solve before, at a lower cost. The paper further analyzes the repair ability of different models and the error types of failed trajectories, and shows that fine-tuning with the recovered trajectories improves performance on several SWE-Bench benchmarks.",+ "presentation": 3,+ "informativeness": 2,+ "soundness": 2,+ "critical_strengths": "1. The problem is practically important, and repaired trajectories are verified by real execution. Failed trajectories on hard tasks are usually discarded, yet these hard tasks are exactly what existing datasets of successful trajectories lack most. Rather than regenerating whole trajectories, TrajFix keeps the parts of a failed trajectory that are already correct and fixes only the wrong step, thereby recovering this data. A repaired trajectory is kept only if it passes the task's tests in a real environment, which gives a more reliable guarantee of correctness than data synthesis judged only by an LLM and makes the approach useful for producing training data at scale.\n2. The paper explicitly identifies and addresses the risk of leaking the reference solution, describes the pipeline concretely, and tests it on large-scale data.",+ "critical_weaknesses": "1. The method still relies on repeated environment execution and continuation rollouts, and its time and compute cost are not measured. TrajFix does not remove sampling. Every repair round starts a fresh container, replays the whole prefix, lets the model continue from the corrected step until it submits, and then runs the tests in another fresh container; a failed round moves on to the next round. Diagnosis, correction, hallucination detection, replay, continuation and verification run serially, and a step rejected by the hallucination detector is regenerated repeatedly. The paper measures cost only in tokens and in dollars at API prices, amortized over successful trajectories, and reports neither wall-clock time nor container and CPU time, nor the execution overhead of prefix replay and test verification. The claim that TrajFix is cheaper than resampling therefore holds only in token-priced terms, whereas time and compute are also major costs when training data is produced at scale. \n2. The experiments rest almost entirely on the failures of a single DeepSeek policy, so it is unclear whether the conclusions transfer to other models. All repaired trajectories come from DeepSeek-V4-Flash, which also performs the continuation rollouts; hallucination detection uses DeepSeek-V4-Pro, and the downstream training data also comes from DeepSeek-V4-Flash trajectories. The only experiment that varies the model replaces the diagnosis and correction roles while keeping the repaired trajectories and the continuation policy fixed, so it shows the effect of who diagnoses, not of whose trajectories are repaired. The error-type distribution likewise comes only from DeepSeek-V4-Flash failures, labeled by that same model and by Kimi-K3, with only agreeing labels retained. This distribution is the basis of the method's design: the authors argue that most failures already reach the right location and only make a wrong edit, so the prefix is worth keeping and changing a single step suffices. With a weaker policy, another model family or another scaffold, failures may occur more often during localization or even earlier, and a correction limited to one step and one function may no longer be sufficient.",+ "questions_for_authors": "1. Which information and attempt budgets are available for each Table 1 baseline? Please distinguish matched-k from equal-maximum-attempt comparisons and state whether privileged-hint or prefix-replay controls already exist.\n2. How are Recovered, Unrepaired and Resampled constructed and matched by tasks, trajectories, tokens and training updates? How are 19,171 corresponding unrepaired trajectories obtained from 17,894 original failed tasks, and are duplicates shared across arms?",+ "flag_for_ethics_review": "No",+ "rating": 3,+ "confidence": 2+ },+ "createdAt": "2026-10-10T18:30:05.031Z",+ "modifiedAt": "2026-11-16T14:57:19.352Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=YvSpBYkLP0",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/zj38pyhasp.json added
+++ b/reviews/openreview/su2zvam0va/notes/zj38pyhasp.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "zJ38PYHaSp",+ "replyTo": "rNadgIHfut",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer EXfH",+ "content": {+ "comment": "I appreciate the response I will choose weak acceptance."+ },+ "createdAt": "2026-11-17T22:16:26.193Z",+ "modifiedAt": "2026-11-17T22:16:26.193Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=zJ38PYHaSp",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/notes/zogztlq89y.json added
+++ b/reviews/openreview/su2zvam0va/notes/zogztlq89y.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "zOGztLq89Y",+ "replyTo": "Y28etwwYvs",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for the updated assessment.\n\n> **W2. The error-type distribution is still DeepSeek-only.**\n\nWe agree the GLM-5.3-Flash swap establishes that the recovery result transfers, while the error-type distribution that motivates single-step repair was measured only on DeepSeek-V4-Flash-0731. **We therefore recomputed that distribution on GLM-5.3-Flash under the same protocol as the paper.** From the same pool of 55,366 tasks, GLM-5.3-Flash produces 32,164 successful trajectories and 23,202 failed trajectories. We run a diagnostic round on each failed trajectory with both Kimi-K3 and GLM-5.3-Flash, keep the 18,632 trajectories that receive a consistent error type from both models, and classify them with the same six error types as in the paper. The table below places this distribution next to the DeepSeek-V4-Flash-0731 distribution reported in the paper (14,544 consistent trajectories).\n\n| First-error type | DeepSeek-V4-Flash-0731 (%) | GLM-5.3-Flash (%) |\n|---|---:|---:|\n| Right place, wrong fix | 55.7 | 44.1 |\n| Fix too narrow | 20.8 | 15.7 |\n| Gave up a fix that was correct | 9.3 | 13.5 |\n| Faked or skipped the real test | 8.5 | 14.9 |\n| Branch or edge case missed | 3.2 | 8.1 |\n| Wrong root cause | 2.4 | 3.7 |\n\nOn both models, **\"right place, wrong fix\" is the single largest category**, meaning the agent reaches the correct file and function and makes only a single wrong edit, and **\"fix too narrow\" is the second largest**. One difference is that, **for GLM-5.3-Flash, \"faked or skipped the real test\" ranks above \"gave up a fix that was correct\"**. A closer analysis shows that test-related steps account for a much larger share of GLM-5.3-Flash trajectories than of DeepSeek-V4-Flash-0731 trajectories, indicating that **GLM-5.3-Flash pays more attention to bug-reproducing tests when it solves a task**.\n\nThe per-round recovery rate per category follows the same pattern across the two models, shown below next to the paper's DeepSeek-V4-Flash-0731 rates.\n\n| First-error type | DeepSeek-V4-Flash-0731 (%) | GLM-5.3-Flash (%) |\n|---|---:|---:|\n| Right place, wrong fix | 40.5 | 31.0 |\n| Fix too narrow | 41.2 | 31.9 |\n| Gave up a fix that was correct | 26.6 | 22.1 |\n| Faked or skipped the real test | 38.0 | 24.2 |\n| Branch or edge case missed | 44.7 | 33.6 |\n| Wrong root cause | 37.5 | 22.2 |\n\nThe two most common error types, \"right place, wrong fix\" and \"fix too narrow,\" are precisely the categories targeted by single-step repair, and both models recover these errors at stable rates. In contrast, **\"gave up a fix that was correct\" and \"wrong root cause\" are among the hardest error types to recover for both models**. GLM-5.3-Flash achieves slightly lower recovery rates across all categories, consistent with its lower overall recovery performance. **Importantly, the ranking of recovery rates across error types is identical for both models, showing that our findings are not specific to DeepSeek-V4-Flash-0731.** We will replace the single-policy error distribution figure with a side-by-side comparison of DeepSeek-V4-Flash-0731 and GLM-5.3-Flash and clarify that the motivation for single-step repair is supported by both models.\n\n> **Q1. State that the Table 1 baselines do not use the golden patch, and clarify the cut point of \"resample before the error step\".**\n\nWe will add both statements to the revision. First, we will state explicitly in Table 1 that the three resampling baselines, namely matched-k, early-stop, and 4-round, never access the golden patch in any form; only TrajFix touches it, and only at the diagnosis stage to locate the first wrong step, never copied into the trajectory. Second, **the cut point in the \"resample before the error step\" control does come from the golden-patch diagnosis**: that control reuses exactly the first-wrong-step index produced by TrajFix's golden-patch-guided attribution, then **discards all golden-patch information and simply resamples from the step immediately before that index with no privileged hint**. The golden patch is therefore used only to set the starting position of the resampling, and nothing of it enters the resampled rollout, which isolates the effect of prefix replay from the effect of the attribution signal. We will make this explicit where the control is defined.\n\n> **Q2. Confirm the rollout budget per run; the response says two rollouts per repair round while Section 4.3 says one.**\n\nThank you for catching this. The inconsistency is a mistake in our earlier response, not in the method: Section 4.3 is correct, and one repair round performs exactly one continuation rollout from the corrected step. **Our earlier wording of \"two rollouts per repair round\" was simply wrong and we retract it.** We will correct the rebuttal wording to match Section 4.3 so that the per-round budget reads as a single continuation rollout everywhere.\n\nWe thank the reviewer again and are happy to discuss further."+ },+ "createdAt": "2026-11-16T17:17:41.552Z",+ "modifiedAt": "2026-11-16T17:19:07.662Z",+ "url": "https://openreview.net/forum?id=sU2zvAm0va¬eId=zOGztLq89Y",+ "license": "CC-BY-4.0"+}
reviews/openreview/su2zvam0va/submission.json added
+++ b/reviews/openreview/su2zvam0va/submission.json@@ -0,0 +1,17 @@+{+ "schema": "submission/1",+ "id": "sU2zvAm0va",+ "venue": {+ "id": "ICLR.cc/2027/Conference",+ "name": "ICLR 2027",+ "url": "https://openreview.net/group?id=ICLR.cc%2F2027%2FConference"+ },+ "number": 40476,+ "keywords": [+ "LLMs",+ "failed trajectory repair",+ "Software Engineering tasks"+ ],+ "url": "https://openreview.net/forum?id=sU2zvAm0va",+ "license": "CC-BY-4.0"+}
versions/v_2zzjhrgt.json modified
+++ b/versions/v_2zzjhrgt.json@@ -1,7 +1,20 @@{+ "date": "2026-09-18","kind": "submitted","label": "ICLR 2027 (under review)",+ "submissions": [+ {+ "venue": "ICLR 2027",+ "status": "under_review",+ "number": 40476,+ "url": "https://openreview.net/forum?id=sU2zvAm0va",+ "reviews": "openreview/su2zvam0va",+ "evidence": [+ "https://openreview.net/forum?id=sU2zvAm0va"+ ]+ }+ ],"url": "https://openreview.net/forum?id=sU2zvAm0va","pdf": {"source": "https://openreview.net/forum?id=sU2zvAm0va","license": "CC-BY-4.0"