mlsanityData to 14 Oct 2026

Where's the Bug? Attention Probing for Scalable Fault Localization

arXiv 2502.13966 ↗First posted 19 Feb 2025cs.SE cs.LGcited by 3

Not on the map. Why?

Abstract (arXiv)

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 as seven other datasets which span a diverse set of bug types and languages. Averaged across all eight datasets, BAP improves by 34.6% top-1 accuracy compared to the strongest baseline and 93.4% over zero-shot prompting GPT-4o. BAP is also significantly more efficient than prompting, outperforming large open-weight models at a small fraction of the computational cost.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 24 of its 36 references that are in the map. First posted on arXiv 19 Feb 2025.

Builds on

24 of 36 references.

References · 24

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  4. 2024Qwen2.5 Technical Reportcited by 4,942
  5. 2024GPT-4o System Cardcited by 4,588
  6. 2022Emergent Abilities of Large Language Modelscited by 2,512
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  8. 2016Understanding intermediate layers using linear classifier probescited by 1,353
  9. 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
  10. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  11. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  12. 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 438
12 more
  1. 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 421
  2. 2021Break-It-Fix-It: Unsupervised Learning for Program Repaircited by 71
  3. 2023Large Language Models for Test-Free Fault Localizationcited by 67
  4. 2024AgentFL: Scaling LLM-based Fault Localization to Project-Level Contextcited by 47
  5. 2023Large Language Models and Simple, Stupid Bugscited by 45
  6. 2019How Often Do Single-Statement Bugs Occur? The ManySStuBs4J Datasetcited by 36
  7. 2023Large Language Models in Fault Localisationcited by 28
  8. 2023Meaning Representations from Trajectories in Autoregressive Modelscited by 18
  9. 2022AST-Probe: Recovering abstract syntax trees from hidden representations of pre-trained language modelscited by 16
  10. 2022TSSB-3M: Mining single statement bugs at massive scalecited by 14
  11. 2021A Fault Localization and Debugging Support Framework driven by Bug Tracking Datacited by 1
  12. 2023WELL: Applying Bug Detectors to Bug Localization via Weakly Supervised Learningcited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.