AI Navigate

[R] Attention Residuals by Kimi Team

Reddit r/MachineLearning / 3/17/2026

💬 OpinionIdeas & Deep AnalysisModels & Research

Key Points

  • The paper proposes Attention Residuals (AttnRes), which replaces fixed, uniform accumulation of layer outputs with content-dependent softmax attention over preceding layer representations to reduce PreNorm dilution in deep LLMs.
  • To handle memory and communication challenges in large models, it introduces Block AttnRes, which attends over block-level representations to cut memory footprint while preserving most of AttnRes's benefits.
  • The approach is complemented by cache-based pipeline communication and a two-phase computation strategy to make Block AttnRes a practical drop-in replacement with minimal overhead.
  • Experimental results on the Kimi Linear architecture (48B total / 3B activated parameters) trained on 1.4T tokens show AttnRes yields more uniform output magnitudes and gradient distribution across depth and improves downstream task performance.

arXiv:2603.15031 [cs.CL]: https://arxiv.org/abs/2603.15031

Abstract: Residual connections with PreNorm are standard in modern LLMs, yet they accumulate all layer outputs with fixed unit weights. This uniform aggregation causes uncontrolled hidden-state growth with depth, progressively diluting each layer's contribution. We propose Attention Residuals (AttnRes), which replaces this fixed accumulation with softmax attention over preceding layer outputs, allowing each layer to selectively aggregate earlier representations with learned, input-dependent weights. To address the memory and communication overhead of attending over all preceding layer outputs for large-scale model training, we introduce Block AttnRes, which partitions layers into blocks and attends over block-level representations, reducing the memory footprint while preserving most of the gains of full AttnRes. Combined with cache-based pipeline communication and a two-phase computation strategy, Block AttnRes becomes a practical drop-in replacement for standard residual connections with minimal overhead.
Scaling law experiments confirm that the improvement is consistent across model sizes, and ablations validate the benefit of content-dependent depth-wise selection. We further integrate AttnRes into the Kimi Linear architecture (48B total / 3B activated parameters) and pre-train on 1.4T tokens, where AttnRes mitigates PreNorm dilution, yielding more uniform output magnitudes and gradient distribution across depth, and improves downstream performance across all evaluated tasks.

From Kimi.ai on 𝕏: https://x.com/Kimi\_Moonshot/status/2033378587878072424

submitted by /u/Nunki08
[link] [comments]