arXiv:2508.04925cs.SEcs.AI2025-08被引 1

首次系统分析注意力机制故障,揭示其独特失效模式。

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

  • 从96个真实项目中收集555个故障,归纳出7类注意力特有缺陷。
  • 超半数注意力故障源于其独有机制,且可被4种诊断启发式解释33%。
  • 为开发者提供首个针对注意力模型的系统性故障诊断指南。

注意力机制是现代神经网络的核心,支撑从ChatGPT到自动驾驶系统的广泛应用,并带来重大经济影响。然而,诸如ChatGPT产生荒谬输出、Google因注意力权重错误暂停Gemini图像生成等高调失败事件,暴露出现有深度学习故障分类体系未能充分涵盖注意力机制引入的独特问题。这一缺口使从业者缺乏可操作的诊断指导。为此,我们开展了首个关于注意力基神经网络(ABNNs)故障的综合性实证研究。基于对96个跨十种框架(包括GitHub、Hugging Face、Stack Overflow)项目的555个真实故障的系统分析,我们构建了一个包含七类注意力特有故障的新分类体系,现有工作未涵盖此类故障。结果显示,超过一半的ABNN故障源于注意力架构特有的机制。我们进一步通过多种症状分析这些故障的根本原因与表现形式。最后,通过对症状-根因关联的分析,识别出四种基于证据的诊断启发式方法,可解释33.0%的注意力特有故障,首次为注意力模型提供系统性诊断指引。

原文摘要 · Abstract (English)

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.

注意力机制故障诊断AI可靠性深度学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。