通过词义歧义探测注意力机制演化,发现大模型更稳定
Start Making Sense(s): A Developmental Probe of Attention Specialization Using Lexical Ambiguity
- 用词义歧义设计探针,追踪注意力头的发育过程
- 1400万参数模型中注意力头敏感易扰,4.1亿参数则更鲁棒
- 适合研究模型内部机制演化的研究人员参考
尽管对Transformer语言模型中的自注意力矩阵操作已有理论理解,但其如何映射到可解释的计算功能,以及注意力头何时发展出专门化模式仍不明确。本文提出系统性探针方法,利用词汇歧义(单个词有多个含义)分离参与词义消歧的注意力机制。采用‘发育’视角:基于公开的Pythia语言模型检查点,识别各模型在消歧性能上的关键转折点。在14M和410M模型中,发现某些注意力头对消歧词的关注程度与整体消歧表现相关。进一步施加刺激扰动测试发现,14M模型中头部鲁棒性差,而410M模型中存在多个表现出惊人泛化能力的头部。因果分析显示,移除这些目标头部显著损害消歧性能,尤其在14M模型中更为明显。此外,在所有随机种子下复现了14M模型的发育分析。结果表明:消歧依赖一组复杂机制,部分(尤其在14M)高度依赖消歧提示的位置与词性;更大模型(410M)可能包含更稳健的消歧注意力头。这些发现支持从发育角度探究语言模型机制的价值。
原文摘要 · Abstract (English)
Despite an in-principle understanding of self-attention matrix operations in Transformer language models (LMs), it remains unclear precisely how these operations map onto interpretable computations or functions--and how or when individual attention heads develop specialized attention patterns. Here, we present a pipeline to systematically probe attention mechanisms, and we illustrate its value by leveraging lexical ambiguity--where a single word has multiple meanings--to isolate attention mechanisms that contribute to word sense disambiguation. We take a "developmental" approach: first, using publicly available Pythia LM checkpoints, we identify inflection points in disambiguation performance for each LM in the suite; in 14M and 410M, we identify heads whose attention to disambiguating words covaries with overall disambiguation performance across development. We then stress-test the robustness of these heads to stimulus perturbations: in 14M, we find limited robustness, but in 410M, we identify multiple heads with surprisingly generalizable behavior. Then, in a causal analysis, we find that ablating the target heads demonstrably impairs disambiguation performance, particularly in 14M. We additionally reproduce developmental analyses of 14M across all of its random seeds. Together, these results suggest: that disambiguation benefits from a constellation of mechanisms, some of which (especially in 14M) are highly sensitive to the position and part-of-speech of the disambiguating cue; and that larger models (410M) may contain heads with more robust disambiguation behavior. They also join a growing body of work that highlights the value of adopting a developmental perspective when probing LM mechanisms.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。