Where's the Bug? Attention Probing for Scalable Fault Localization
Adam Stein, Arthur Wayne, Aaditya Naik, Mayur Naik, Eric Wong

TL;DR
This paper introduces Bug Attention Probe (BAP), a novel fault localization method that outperforms existing approaches and large language model prompting, without requiring localization labels or extensive resources.
Contribution
BAP is a new fault localization technique that learns without direct localization labels, outperforming traditional methods and prompting-based approaches across multiple datasets.
Findings
BAP improves top-1 accuracy by 34.6% over the best baseline.
BAP achieves 93.4% improvement over zero-shot GPT-4 prompting.
BAP is more efficient than prompting large LLMs, with lower computational cost.
Abstract
Ensuring code correctness remains a challenging problem even as large language models (LLMs) become increasingly capable at code-related tasks. While LLM-based program repair systems can propose bug fixes using only a user's bug report, their effectiveness is fundamentally limited by their ability to perform fault localization (FL), a challenging problem for both humans and LLMs. Existing FL approaches rely on executable test cases, require training on costly and often noisy line-level annotations, or demand resource-intensive LLMs. In this paper, we present Bug Attention Probe (BAP), a method which learns state-of-the-art fault localization without any direct localization labels, outperforming traditional FL baselines and prompting of large-scale LLMs. We evaluate our approach across a variety of code settings, including real-world Java bugs from the standard Defects4J dataset as well…
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 · Integrated Circuits and Semiconductor Failure Analysis · Software Engineering Research
MethodsSoftmax · Attention Is All You Need · Sparse Evolutionary Training
