Hydra效应:语言模型计算中的涌现自修复
The Hydra Effect: Emergent Self-repair in Language Model Computations
AI总结:
本文通过因果分析发现语言模型计算中存在Hydra效应(消融注意力层引发跨层补偿)和后期MLP层下调最大似然token的反平衡机制,揭示了模型层的松散耦合及自修复特性。
摘要:
我们使用因果分析研究语言模型计算的内部结构,并展示了两种模式:(1)一种自适应计算形式,其中对语言模型某个注意力层的消融会导致另一层进行补偿(我们称之为Hydra效应);(2)后期MLP层的反平衡功能,旨在下调最大似然token。我们的消融研究表明,语言模型各层通常相对松散耦合(对一层的消融仅影响少数下游层)。令人惊讶的是,这些效应甚至在没有经过任何形式dropout训练的语言模型中也会出现。我们在事实回忆的背景下分析这些效应,并考虑它们对语言模型中电路级归因的影响。
英文摘要:
We investigate the internal structure of language model computations using causal analysis and demonstrate two motifs: (1) a form of adaptive computation where ablations of one attention layer of a language model cause another layer to compensate (which we term the Hydra effect) and (2) a counterbalancing function of late MLP layers that act to downregulate the maximum-likelihood token. Our ablation studies demonstrate that language model layers are typically relatively loosely coupled (ablations to one layer only affect a small number of downstream layers). Surprisingly, these effects occur even in language models trained without any form of dropout. We analyse these effects in the context of factual recall and consider their implications for circuit-level attribution in language models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。