Specification Vibing for Automated Program Repair
Taohong Zhu, Lucas C. Cordeiro, Mustafa A. Mustafa, Youcheng Sun

TL;DR
VibeRepair introduces a specification-centric approach to automated program repair, translating buggy code into behavior specifications to improve repair accuracy and reduce patch space, outperforming existing code-centric methods.
Contribution
The paper proposes VibeRepair, a novel behavior-specification-based APR technique that enhances repair effectiveness by focusing on program behavior rather than raw code edits.
Findings
Outperforms state-of-the-art APR methods on Defects4J benchmarks.
Repairs 174 bugs on Defects4J v1.2, 19% better than previous best.
Repairs 178 bugs on Defects4J v2.0, 23% improvement.
Abstract
Large language model (LLM)-driven automated program repair (APR) has advanced rapidly, but most methods remain code-centric: they directly rewrite source code and thereby risk hallucinated, behaviorally inconsistent fixes. This limitation suggests the need for an alternative repair paradigm that relies on a representation more accessible to LLMs than raw code, enabling more accurate understanding, analysis, and alignment during repair. To address this gap, we propose VibeRepair, a specification-centric APR technique that treats repair as behavior-specification repair rather than ad-hoc code editing. VibeRepair first translates buggy code into a structured behavior specification that captures the program's intended runtime behavior, then infers and repairs specification misalignments, and finally synthesizes code strictly guided by the corrected behavior specification. An on-demand…
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.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Software Engineering Research · Software System Performance and Reliability
