DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Information
Zhili Huang, Ling Xu, Chao Liu, Weifeng Sun, Xu Zhang, Yan Lei, Meng Yan, Hongyu Zhang

TL;DR
DynaFix introduces an iterative, execution-level dynamic information-driven approach to automated program repair, significantly improving repair success rates and efficiency by mimicking human debugging processes.
Contribution
It is the first to leverage fine-grained runtime execution data iteratively to guide large language models in bug fixing, enhancing repair accuracy and reducing search space.
Findings
Repairs 186 bugs on Defects4J, 10% more than state-of-the-art.
Achieves correct patches within 35 attempts, reducing search space by 70%.
Successfully repairs 38 previously unrepaired bugs.
Abstract
Automated Program Repair (APR) aims to automatically generate correct patches for buggy programs. Recent approaches leveraging large language models (LLMs) have shown promise but face limitations. Most rely solely on static analysis, ignoring runtime behaviors. Some attempt to incorporate dynamic signals, but these are often restricted to training or fine-tuning, or injected only once into the repair prompt, without iterative use. This fails to fully capture program execution. Current iterative repair frameworks typically rely on coarse-grained feedback, such as pass/fail results or exception types, and do not leverage fine-grained execution-level information effectively. As a result, models struggle to simulate human stepwise debugging, limiting their effectiveness in multi-step reasoning and complex bug repair. To address these challenges, we propose DynaFix, an execution-level…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
