混合线性注意力大模型中的巨量激活:预注意力尖峰与尖峰间平台
Massive Activations in Hybrid Linear Attention Large Language Models: Pre-Attention Spikes and Inter-Spike Plateaus
研究首次系统分析层间交错混合线性注意力大模型(HLA LLM)中的巨量激活,在五种线性注意力架构、六种混合配置和五个输入域中识别出两种与架构对齐的形态:全注意力层前的预注意力尖峰(PAS)和贯穿线性注意力层的尖峰间平台(ISP)。在1.2B-397B参数的12个公开检查点上该组织规律同样出现,仅删除每个全注意力输入处四个最大PAS坐标即令下游平均准确率下降21.9%-63.6%。
arXiv:2608.12149v4 Announce Type: replace Abstract: We present the first systematic study of massive activations (MAs) in layer-interleaved Hybrid linear attention large language models (HLA LLMs), examining their architectural organization, training-time emergence, underlying mechanisms, and functional significance. Across five linear attention architectures, six hybridization configurations, and five input domains, we identify two architecture-aligned morphologies: pre-attention spikes (PAS) immediately before full attention and inter-spike plateaus (ISP) persisting through intervening linear attention layers. Denser full attention increasingly connects PAS through ISP, approaching the persistent MAs of conventional Transformers. This organization also recurs across 12 public checkpoints spanning 1.2B-397B parameters, covering linear attention and state-space hybrids. Controlled pretraining of Gated DeltaNet (GDN) hybrids up to 1.3B reveals early emergence and consolidation of both morphologies, alongside asymmetric gating effects. Specifically, full attention output gates strongly attenuate MA magnitudes without eliminating their organization, whereas removing GDN output gates yields modest amplification. Mechanistically, we develop a shared systematic-outlier account: PAS follows a localized write-sink-cancel process, while ISP is consistent with delayed cancellation. Functionally, our interventions show that deleting only the four largest-magnitude PAS coordinates at each full attention input reduces mean downstream accuracy by 21.9%-63.6% relative to normal inference. Moreover, reference-conditioned spike-to-plateau connection consistently improves mean real-world retrieval accuracy, yielding relative gains of 1.1%-12.6% without retraining. Our code is available at https://github.com/StartLuxLabs/Massive-Activations-HLA.
来源:arXiv (AI + Vision + Imaging) · arxiv.org