arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.04625cs.LGcs.AIcs.CL
收藏

复制抑制:全面理解一个注意力头

Copy Suppression: Comprehensively Understanding an Attention Head

University of Texas at Austin(德克萨斯大学奥斯汀分校);Google DeepMind(谷歌DeepMind)

Callum McDougall, Arthur Conmy, Cody Rushing, Thomas McGrath, Neel Nanda

AI总结:

本研究发现GPT-2 Small中的L10H7注意力头具备复制抑制功能,可抑制上下文已出现词元的重复预测、提升模型校准,还揭示了其作用机制及在自修复中的作用,是对语言模型单组件功能的全面阐释。

摘要:

我们在GPT-2 Small中发现了一个单一注意力头,它在整个训练分布中承担一项核心功能:如果更早层的组件预测出某个词元,且该词元已出现在上下文的靠前位置,这个注意力头就会抑制它——我们将此机制称为copy suppression(复制抑制)。注意力头10.7(L10H7)能够抑制朴素复制行为,从而提升模型的整体校准效果。这也解释了为何此前多项针对特定窄任务的研究,会发现存在系统性偏向错误答案的负向注意力头。我们通过基于权重的证据揭示了这些负向注意力头实现复制抑制的机制,且该机制能够解释GPT-2 Small中L10H7 76.9%的作用影响。据我们所知,这是迄今为止对语言模型中单个组件完整功能最全面的阐释。复制抑制的一项重要作用体现在自修复过程中:自修复指的是当模型的关键组件被消融后,下游神经网络部分会对该消融操作做出补偿。复制抑制是自修复的触发因素之一:如果初始的过度自信复制器被消融,就不存在需要抑制的对象了。我们证实自修复由多种机制实现,复制抑制是其中之一,它能够解释一项窄任务中39%的相关行为。复制抑制现象的交互式可视化可在我们的网页应用https://copy-suppression.streamlit.app/查看。

英文摘要:

We present a single attention head in GPT-2 Small that has one main role across the entire training distribution. If components in earlier layers predict a certain token, and this token appears earlier in the context, the head suppresses it: we call this copy suppression. Attention Head 10.7 (L10H7) suppresses naive copying behavior which improves overall model calibration. This explains why multiple prior works studying certain narrow tasks found negative heads that systematically favored the wrong answer. We uncover the mechanism that the Negative Heads use for copy suppression with weights-based evidence and are able to explain 76.9% of the impact of L10H7 in GPT-2 Small. To the best of our knowledge, this is the most comprehensive description of the complete role of a component in a language model to date. One major effect of copy suppression is its role in self-repair. Self-repair refers to how ablating crucial model components results in downstream neural network parts compensating for this ablation. Copy suppression leads to self-repair: if an initial overconfident copier is ablated, then there is nothing to suppress. We show that self-repair is implemented by several mechanisms, one of which is copy suppression, which explains 39% of the behavior in a narrow task. Interactive visualisations of the copy suppression phenomena may be seen at our web app https://copy-suppression.streamlit.app/

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑