大规模激活在架构上是鲁棒的:一种受控的暂存/提交残差流测试
Massive Activations Are Architecturally Robust: A Controlled Scratch/Commitment Residual Stream Test
AI总结:
通过引入Ledger Residuals架构分离残差流的读写角色,发现大规模激活并非伪影,而是功能性的,在受保护通道中重新出现。
摘要:
训练好的Transformer可靠地发展出大规模激活,即少量隐藏维度的幅度远高于中位数,并集中在序列起始标记上。这些异常值是残差流过载读写角色的可移除伪影,还是功能上的必需品,目前存在积极争论。我们通过架构干预直接测试伪影假设。我们的架构Ledger Residuals将残差流分为一个可变的暂存流(Deliberation),中间计算可以自由覆盖,以及一个受保护的、仅解码的累加器(Commitment),用于保存模型读出的表示。如果大规模激活的存在仅仅是因为一个流被迫同时充当暂存板和答案,那么专用的答案通道应该消除对它们的需求。我们发现事实并非如此。在160M和290M规模的匹配损失语言模型中,模型在受保护通道内重建了规范的固定维度、起始标记异常值。重建的特征在幅度上小于标准Transformer,但更尖锐地集中在起始标记上,更强的稀疏性惩罚使其更持久且更集中,而不是消除它。因此,大规模激活在架构上看起来是鲁棒的:它们在模型解码的任何表示中重新出现,这正是如果它们是功能性的而非偶然的所期望的。我们发布了我们的架构和测量代码。
英文摘要:
Trained transformers reliably develop massive activations, a small number of hidden dimensions whose magnitude is far above the median and which concentrate on the sequence-start token. Whether these outliers are a removable artifact of the residual stream's overloaded read and write role, or instead a functional necessity, is actively debated. We test the artifact hypothesis directly, with an architectural intervention. Our architecture, Ledger Residuals, splits the residual stream into a mutable scratch stream (Deliberation) that intermediate computation may freely overwrite and a protected, decode-only accumulator (Commitment) that holds the representation the model reads out. If massive activations exist only because one stream is forced to be both scratchpad and answer, then a dedicated answer channel should remove the need for them. We find that it does not. In matched-loss language models at the 160M and 290M scales, the model rebuilds the canonical fixed-dimension, start-token outlier inside the protected channel. The rebuilt feature is smaller in magnitude than in a standard transformer but more sharply concentrated on the start token, and a stronger sparsity penalty makes it more persistent and more concentrated still, rather than removing it. Massive activations therefore look architecturally robust: they re-emerge in whichever representation the model decodes from, which is what we would expect if they are functional rather than incidental. We release our architecture and measurement code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。