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

Sigma Jahan, Saurabh Singh Rajput, Tushar Sharma, Mohammad Masudur Rahman
8/6/2025
cs.SEcs.AI

No official code found. Best implementation: SigmaJahan/Taxonomy-of-Faults-ABNN (2 stars, MIT, last commit 2025-12-05).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

This repository contains the complete artifact and replication package for the ICSE 2026 submission: "Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networks"

21PythonJul 27, 202510 months agoMIT

Similar Papers

Cite this paper

@article{jahan2025attention,
  title  = {Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networks},
  author = {Sigma Jahan and Saurabh Singh Rajput and Tushar Sharma and Mohammad Masudur Rahman},
  year   = {2025},
  eprint = {2508.04925},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.04925v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.04925.svg)](https://codeofpaper.com/paper/2508.04925)

Discussion