Keep pulling the thread on Yang Zhilin.
Attention Residuals (AttnRes) replace fixed accumulation in LLMs with a softmax attention mechanism over preceding layer outputs, allowing for selective aggregation with learned, input-dependent weights.
Scaling law experiments confirm that the performance improvement from Attention Residuals (AttnRes) is consistent across different model sizes.
In the Kimi Linear architecture, Attention Residuals (AttnRes) mitigate Pre-Layer Normalization (PreNorm) dilution, leading to more uniform output magnitudes and gradient distribution across model depth.
The Kimi Linear architecture with Attention Residuals (AttnRes) improves downstream performance across all evaluated tasks.
The uniform aggregation in standard residual connections causes uncontrolled hidden-state growth with model depth, progressively diluting each layer's contribution.
Block AttnRes is a variant of Attention Residuals that partitions layers into blocks and attends over block-level representations to reduce memory and communication overhead in large-scale model training.
Block AttnRes reduces the memory footprint of full AttnRes while preserving most of its performance gains.
Combined with cache-based pipeline communication and a two-phase computation strategy, Block AttnRes is a practical drop-in replacement for standard residual connections with minimal overhead.
Ablation studies validated the benefit of the content-dependent, depth-wise selection mechanism within Attention Residuals (AttnRes).
Attention Residuals (AttnRes) were integrated into the Kimi Linear architecture, a model with 48 billion total parameters and 3 billion activated parameters.
The Kimi Linear architecture with Attention Residuals (AttnRes) was pre-trained on 1.4 trillion tokens.