大规模激活的生命周期:随机诞生、权重衰减驱动的增长与竞争性整合

·

研究论文 · 2026/10/12

大规模激活(残差流中幅度远大于典型激活的坐标)与Transformer中的注意力汇相关,但其规模在训练中如何被调控尚不完全清楚。结合训练轨迹分析和受控干预,我们追踪了它们的出现、增长和巩固过程。携带汇的通道在不同随机种子间有变化,但在每次运行中早期就稳定下来。在更长的训练中,周围通道被侵蚀,汇集中到少数冗余载体上。在消融实验中,梯度衰减跟随汇令牌的集体均方根幅度,而非任何单一通道,使得集体规模成为理解其效果的核心。我们的核心结果是权重衰减因果性地控制全局激活规模的更替。在受控延续中,在峰值附近移除衰减允许该规模继续上升,而保留它则导致下降,即使在恒定学习率下也是如此。我们为大规模激活幅度的上升和峰值开发了一个平衡模型,其中AdamW预条件增长与权重衰减相对抗。扫描衰减系数λ使峰值时间近似对数线性移动,并产生峰值幅度近似按λ^{-1/2}缩放,与这一平衡一致。优化器测量进一步表明,即使原始维持力太小而无法做到,预条件也能维持大通道群对抗衰减。总之,这些发现将观察到的生命周期与规模调节训练动态联系起来,并确立权重衰减作为激活幅度的训练时间杠杆。

本文通过训练轨迹分析和受控干预,首次系统揭示了大规模激活的生命周期及其调控机制,确立了权重衰减作为关键训练杠杆,对理解Transformer训练动态和优化具有重要价值。

Massive activations, residual-stream coordinates with magnitudes far larger than typical activations, are associated with attention sinks in transformers, but how their scale is regulated during training remains incompletely understood. Combining training-trajectory analyses and controlled interventions, we trace their emergence, growth, and consolidation. Sink-carrying channels vary across random seeds but stabilize early within each run. Over longer training, surrounding channels erode and the sink concentrates onto a few redundant carriers. Across ablations, gradient attenuation follows the sink token's collective root-mean-square magnitude rather than any single channel, making collective scale central to understanding their effects. Our central result is that weight decay causally controls the turnover of global activation scale. In controlled continuations, removing decay near the peak allows this scale to keep rising, whereas retaining it produces decline even at constant learning rate. We develop a balance model for the rise and peak of massive-activation magnitude, in which AdamW-preconditioned growth opposes weight decay. Sweeping the decay coefficient λ shifts peak timing approximately log-linearly and yields peak magnitudes scaling approximately as λ^{-1/2}, consistent with this balance. Optimizer measurements further show that preconditioning sustains the large-channel cohort against decay even when raw maintaining forces are too small to do so. Together, these findings connect the observed life cycle to scale-regulating training dynamics and establish weight decay as a training-time lever on activation magnitude.

阅读原文

参与讨论