Enhancing Program Repair with Specification Guidance and Intermediate Behavioral Signals
Minh Le-Anh, Cuong Chi Le, Tien N. Nguyen

TL;DR
SpecTune enhances automated program repair by integrating intermediate behavioral signals and specification validation, leading to more precise fault localization and improved repair success.
Contribution
This paper introduces SpecTune, a novel framework that incorporates localized postconditions and validation signals into APR, leveraging LLM-generated specifications for better repair accuracy.
Findings
SpecTune improves fault localization accuracy.
SpecTune outperforms baseline APR methods.
Using validation signals increases repair reliability.
Abstract
Automated Program Repair (APR) has recently benefited from large language models (LLMs). However, most LLM-based APR approaches still rely primarily on coarse end-to-end signals from test-suite outcomes to guide repair, providing limited insight into where a program's internal logic deviates from its intended behavior. In contrast, human debugging often relies on intermediate reasoning about program states through localized correctness conditions or assertions. Inspired by this observation, we propose SpecTune, a specification-guided debugging framework that incorporates intermediate behavioral reasoning into APR. SpecTune decomposes the repair task into suspicious regions connected by execution checkpoints and derives localized postconditions representing expected program behaviors at those points. By executing the buggy program and evaluating these postconditions, SpecTune produces…
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.
