Towards Effectively Leveraging Execution Traces for Program Repair with Code LLMs
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) show promising performance on various programming tasks, including Automatic Program Repair (APR). However, most approaches to LLM-based APR are limited to the static analysis of the programs, while disregarding their runtime behavior. Inspired by knowledge-augmented NLP, in this work, we aim to remedy this potential blind spot by augmenting standard APR prompts with program execution traces. We evaluate our approach using the GPT family of models on three popular APR datasets. Our findings suggest that simply incorporating execution traces into the prompt provides a limited performance improvement over trace-free baselines, in only 2 out of 6 tested dataset / model configurations. We further find that the effectiveness of execution traces for APR diminishes as their complexity increases. We explore several strategies for leveraging traces in prompts and demonstrate that LLM-optimized prompts help outperform trace-free prompts more consistently. Additionally, we show trace-based prompting to be superior to finetuning a smaller LLM on a small-scale dataset; and conduct probing studies reinforcing the notion that execution traces can complement the reasoning abilities of the LLMs.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 7 of its 18 references that are in the map. First posted on arXiv 7 May 2025.
Builds on
7 of 18 references.
References · 7
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
- 2023Embrace Divergence for Richer Insights: A Multi-document Summarization Benchmark and a Case Study on Summarizing Diverse Information from News Articlescited by 45
- 2022SelfAPR: Self-supervised Program Repair with Test Execution Diagnosticscited by 33
- 2023TRACED: Execution-aware Pre-training for Source Codecited by 27
Built on by
Citing papers per year: 2025: 4; 2026: 7.
11 papers.
- 2025Automated Cloud Infrastructure-as-Code Reconciliation with AI Agentscited by 5
- 2026Debugging code world modelscited by 4
- 2025DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Informationcited by 3
- 2025HAFixAgent: History-Aware Program Repair Agentcited by 2
- 2025Collaborative Agents for Automated Program Repair in Rubycited by 1
- 2026ConVer: Using Contracts and Loop Invariant Synthesis for Scalable Formal Software Verificationcited by 1
- 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
- 2026How Do LLMs Read Bug Reports? An Empirical Study of Attention in LLMs for Automated Program Repaircited by 0
- 2026Evaluating RL Explainability Methods by How Much They Help Fix Bugs in Agentscited by 0
- 2026Evaluating RL Explainability Methods by How Much They Help Fix Bugs in Agents18 Aug 2026
- 2026How Do LLMs Read Bug Reports? An Empirical Study of Attention in LLMs for Automated Program Repair28 Jul 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
- 2026ConVer: Using Contracts and Loop Invariant Synthesis for Scalable Formal Software Verification26 May 2026
- 2026AuditRepairBench: A Paired-Execution Trace Corpus for Evaluator-Channel Ranking Instability in Agent Repair6 May 2026
- 2026Debugging code world models7 Feb 2026
- 2025DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Information31 Dec 2025
- 2025Collaborative Agents for Automated Program Repair in Ruby6 Nov 2025
- 2025HAFixAgent: History-Aware Program Repair Agent2 Nov 2025
- 2025Automated Cloud Infrastructure-as-Code Reconciliation with AI Agents23 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025A Survey of LLM-based Automated Program Repair: Taxonomies, Design Paradigms, and Applications
- 2025Do Code Semantics Help? A Comprehensive Study on Execution Trace-Based Information for Code Large Language Models
- 2026Refine After Generation: Toward Correct and Concise Patches in LLM-based Program Repair
- 2025Accelerating Automatic Program Repair with Dual Retrieval-Augmented Fine-Tuning and Patch Generation on Large Language Models
- 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Models
- 2024ThinkRepair: Self-Directed Automated Program Repair
- 2025FeedbackEval: A Benchmark for Evaluating Large Language Models in Feedback-Driven Code Repair Tasks
- 2025BloomAPR: A Bloom's Taxonomy-based Framework for Assessing the Capabilities of LLM-Powered APR Solutions