混合线性注意力大语言模型中的大规模激活:注意力前尖峰与尖峰间平台

·

观点分析 · 2026/08/14

我们首次系统研究了层交错混合线性注意力(HLA)大语言模型中的大规模激活(MAs),发现了两种与架构对齐的形态:MAs在完整注意力层之前持续尖峰,形成前注意力尖峰(PAS),并可在线性注意力层间持续,产生尖峰间平台(ISP)。随着完整注意力密度增加,连续的PAS通过ISP连接,最终恢复完整注意力大语言模型的稳定MA形态。我们在五种线性注意力架构、六种混合配置、五个数据域以及参数规模从1.2B到397B的代表性开源混合模型中验证了这种组织的重复性。对基于GDN的混合模型进行高达1.3B参数的可控预训练表明,两种形态早期出现并对输出门控不对称响应:完整注意力输出门控强烈衰减其绝对幅度而不消除其层间组织,而移除GDN门控则产生相对适度的放大。机制上,我们的系统性离群值分析支持由MA取消时机控制的共享生命周期解释。PAS遵循局部写入-汇-取消过程,而ISP的延长持续与延迟取消一致。在完整注意力极限下,该解释恢复了完整注意力大语言模型的特征性稳定MA形态。我们的代码可在 https://github.com/StartluxLabs/Massive-Activations-HLA 获取。

该研究首次系统揭示了混合线性注意力大语言模型中大规模激活的两种新形态及其演化规律,为理解混合注意力架构的内部机制提供了重要见解,对模型优化和可解释性研究具有参考价值。

We present the first systematic study of Massive activations (MAs) in layer-interleaved HLA LLMs and uncover two architecture-aligned morphologies: MAs consistently spike immediately before full attention layers, forming pre-attention spikes (PAS), and can persist through intervening linear attention layers, giving rise to inter-spike plateaus (ISP). As full attention becomes denser, successive PAS become increasingly connected through ISP, ultimately recovering the stable MA morphology of full attention LLMs. We establish the recurrence of this organization across five linear attention architectures, six hybridization configurations, five data domains, and representative open-source hybrid models spanning 1.2B to 397B total parameters. Controlled pretraining of GDN-based hybrids at scales up to 1.3B shows that both morphologies emerge early and respond asymmetrically to output gating: full attention output gating strongly attenuates their absolute magnitudes without eliminating their layerwise organization, whereas removing GDN gates yields comparatively modest amplification. Mechanistically, our systematic-outlier analysis supports a shared lifecycle account governed by the timing of MA cancellation. PAS follows a localized write-sink-cancel process, while the extended persistence of ISP is consistent with delayed cancellation. At the full attention limit, this account recovers the stable MA morphology characteristic of full attention LLMs. Our code is available at https://github.com/StartluxLabs/Massive-Activations-HLA.

阅读原文

参与讨论