成语的解剖:追踪语言模型中的非组合性
Anatomy of an Idiom: Tracing Non-Compositionality in Language Models
AI总结:
本文研究了语言模型处理习语的非组合性机制,通过电路发现技术揭示了习语处理中的注意力模式和增强接收现象。
摘要:
我们通过一种新的电路发现和分析技术,研究基于变换器的语言模型在处理习语表达时的处理方式。首先,通过修改后的路径修补算法发现电路,我们发现习语处理表现出不同的计算模式。我们识别并研究了“习语头部”,即经常在不同习语中激活的注意力头部,以及由于早期处理而增强的习语标记之间的注意力,我们称之为“增强接收”。我们分析了这些现象以及发现的电路的一般特征,作为变换器平衡计算效率和鲁棒性的机制。最后,这些发现为变换器如何处理非组合性语言提供了见解,并为理解更复杂的语法结构的处理指明了路径。
英文摘要:
We investigate the processing of idiomatic expressions in transformer-based language models using a novel set of techniques for circuit discovery and analysis. First discovering circuits via a modified path patching algorithm, we find that idiom processing exhibits distinct computational patterns. We identify and investigate ``Idiom Heads,'' attention heads that frequently activate across different idioms, as well as enhanced attention between idiom tokens due to earlier processing, which we term ``augmented reception.'' We analyze these phenomena and the general features of the discovered circuits as mechanisms by which transformers balance computational efficiency and robustness. Finally, these findings provide insights into how transformers handle non-compositional language and suggest pathways for understanding the processing of more complex grammatical constructions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。