From Guessing to Seeing: Enhancing LLM-Based Program Repair via Trace-Guided Multi-strategy Debate
Not on the map. Why?
Abstract (arXiv)
Automated Program Repair (APR) aims to resolve software bugs without human intervention, but complex logic errors and silent failures remain challenging. Existing LLM-based APR methods mainly rely on source code and coarse test feedback, making it difficult to capture runtime behaviors and dynamic data dependencies. Execution traces expose concrete state transitions, yet a single LLM interpreting them in isolation may commit to an incorrect repair hypothesis and produce test-overfitting patches. We therefore treat runtime evidence as shared constraints for validating repair hypotheses rather than merely as additional prompt context. We propose TraceRepair, a multi-agent framework in which a Probe Agent captures execution snapshots of critical variables, while specialized repair agents generate, compare, and iteratively refine candidate patches against the observed runtime evidence. A Judge Agent then arbitrates the remaining hypotheses and synthesizes the final patch. Evaluated on Defects4J, TraceRepair correctly fixes 392 defects and outperforms existing LLM-based approaches. Further experiments demonstrate improved efficiency and strong generalization on a newly constructed dataset of recent bugs, suggesting that the gains arise from dynamic reasoning rather than memorization.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Apr 2026.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Handoff Debt: The Rediscovery Cost When Coding Agents Take Over Interrupted Taskscited by 2
- 2026Multi-Perspective Agentic Program Repair via Code Property Graphs and Temporal Execution Graphscited by 1
- 2026AuditRepairBench: A Paired-Execution Trace Corpus for Evaluator-Channel Ranking Instability in Agent Repaircited by 0
- 2026Detecting Architectural Drift in Safety-Critical Firmware through Runtime Trace Analysiscited by 0
- 2026Reasoning from Traces: Divergence-Guided Agentic Repair of WebAssembly Discrepanciescited by 0
- 2026Reasoning from Traces: Divergence-Guided Agentic Repair of WebAssembly Discrepancies6 Aug 2026
- 2026Multi-Perspective Agentic Program Repair via Code Property Graphs and Temporal Execution Graphs14 Jul 2026
- 2026Detecting Architectural Drift in Safety-Critical Firmware through Runtime Trace Analysis3 Jul 2026
- 2026Handoff Debt: The Rediscovery Cost When Coding Agents Take Over Interrupted Tasks1 Jun 2026
- 2026AuditRepairBench: A Paired-Execution Trace Corpus for Evaluator-Channel Ranking Instability in Agent Repair6 May 2026