mlsanityData to 14 Oct 2026

Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networks

arXiv 2508.04925 ↗First posted 6 Aug 2025cs.SE cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

Attention mechanisms are at the core of modern neural architectures, powering systems ranging from ChatGPT to autonomous vehicles and driving a major economic impact. However, high-profile failures, such as ChatGPT's nonsensical outputs or Google's suspension of Gemini's image generation due to attention weight errors, highlight a critical gap: existing deep learning fault taxonomies might not adequately capture the unique failures introduced by attention mechanisms. This gap leaves practitioners without actionable diagnostic guidance. To address this gap, we present the first comprehensive empirical study of faults in attention-based neural networks (ABNNs). Our work is based on a systematic analysis of 555 real-world faults collected from 96 projects across ten frameworks, including GitHub, Hugging Face, and Stack Overflow. Through our analysis, we develop a novel taxonomy comprising seven attention-specific fault categories, not captured by existing work. Our results show that over half of the ABNN faults arise from mechanisms unique to attention architectures. We further analyze the root causes and manifestations of these faults through various symptoms. Finally, by analyzing symptom-root cause associations, we identify four evidence-based diagnostic heuristics that explain 33.0% of attention-specific faults, offering the first systematic diagnostic guidance for attention-based models.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 34 of its 84 references that are in the map. First posted on arXiv 6 Aug 2025.

Builds on

34 of 84 references.

References · 34

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2020Scaling Laws for Neural Language Modelscited by 6,586
  5. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  6. 2019Attention is not Explanationcited by 929
  7. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 419
  8. 2015DeepDriving: Learning Affordance for Direct Perception in Autonomous Drivingcited by 231
  9. 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 161
  10. 2019Taxonomy of Real Faults in Deep Learning Systemscited by 90
  11. 2019A Comprehensive Study on Deep Learning Bug Characteristicscited by 65
  12. 2021Attention, please! A survey of Neural Attention Models in Deep Learningcited by 51
22 more
  1. 2021DeepLocalize: Fault Localization for Deep Neural Networkscited by 38
  2. 2022Attention Mechanism in Neural Networks: Where it Comes and Where it Goescited by 29
  3. 2023DISTFLASHATTN: Distributed Memory-efficient Attention for Long-context LLMs Trainingcited by 29
  4. 2022Toward Understanding Deep Learning Framework Bugscited by 26
  5. 2021Silent Bugs in Deep Learning Frameworks: An Empirical Study of Keras and TensorFlowcited by 25
  6. 2021An Empirical Study on Deployment Faults of Deep Learning Based Mobile Applicationscited by 20
  7. 2021DeepDiagnosis: Automatically Diagnosing Faults and Recommending Actionable Fixes in Deep Learning Programscited by 19
  8. 2021Faults in Deep Reinforcement Learning Programs: A Taxonomy and A Detection Approachcited by 18
  9. 2022DeepFD: Automated Fault Diagnosis and Localization for Deep Learning Programscited by 16
  10. 2022Bugs in Machine Learning-based Systems: A Faultload Benchmarkcited by 15
  11. 2019An Empirical Study of Obsolete Answers on Stack Overflowcited by 14
  12. 2021Understanding Performance Problems in Deep Learning Systemscited by 12
  13. 2023Bug Characterization in Machine Learning-based Systemscited by 10
  14. 2021Automatic Fault Detection for Deep Learning Programs Using Graph Transformationscited by 9
  15. 2022Demystifying Dependency Bugs in Deep Learning Stackcited by 9
  16. 2024From Today's Code to Tomorrow's Symphony: The AI Transformation of Developer's Routine by 2030cited by 8
  17. 2019An Empirical Study of C++ Vulnerabilities in Crowd-Sourced Code Examplescited by 7
  18. 2019How Different Are Different diff Algorithms in Git?cited by 6
  19. 2025AttentionEngine: A Versatile Framework for Efficient Attention Mechanisms on Diverse Hardware Platformscited by 4
  20. 2025Can Hessian-Based Insights Support Fault Diagnosis in Attention-based Models?cited by 2
  21. 2023Insights into Software Development Approaches: Mining Q&A Repositoriescited by 1
  22. 2023Characterizing and Classifying Developer Forum Posts with their Intentionscited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.