Where's the Bug? Attention Probing for Scalable Fault Localization
Adam SteinArthur WayneAaditya NaikMayur NaikEric Wong
Adam Stein
Arthur Wayne
Aaditya Naik
Mayur Naik
Eric Wong
+5
The Bug Attention Probe (BAP) achieves state-of-the-art fault localization without any direct localization labels. Instead of relying on executable tests, line-level annotations, or resource-intensive LLM prompting, BAP learns to localize bugs from code alone. Across eight datasets, including Defects4J, BAP improves top-1 accuracy by 34.6% over the strongest baseline and 93.4% over zero-shot GPT-4o prompting, while requiring far less computation. This makes BAP an efficient and effective alternative for scalable fault localization.

OpenReview ·
· August 23, 2025