Attention Residuals

github.com
March 20, 2026
3 min read
59/100
Summary
Attention Residuals (AttnRes) serves as a drop-in replacement for standard residual connections in Transformers, allowing each layer to selectively aggregate earlier representations. It includes two variants: Full AttnRes, where each layer attends over all previous outputs, and Block AttnRes, which groups layers into blocks to reduce memory usage from O(Ld) to O(Nd).
Key Takeaways
- Attention Residuals (AttnRes) is a drop-in replacement for standard residual connections in Transformers, allowing layers to selectively aggregate earlier representations using learned attention over depth.
- Block AttnRes reduces memory usage from O(Ld) to O(Nd) by partitioning layers into blocks and applying attention only over block-level representations.
- AttnRes consistently outperforms baseline models across various benchmarks, with significant improvements in multi-step reasoning and code generation tasks.
- AttnRes addresses the issue of output magnitude dilution in PreNorm architectures, maintaining bounded output magnitudes and more uniform gradient distribution across layers.
Coverage & discussions
Hacker News · github.com
Community discussions
Community Sentiment
Positives
- The new Attention Residuals approach reduces training compute requirements by approximately 20%, enabling faster iterations on model architectures, which is crucial for advancing AI research.
- Lower bandwidth requirements for inference mean that this method can run efficiently on consumer hardware, democratizing access to advanced AI technologies.
- The claim that this approach is a drop-in replacement suggests it could be easily adopted, potentially accelerating the adoption of improved architectures in the industry.
Related Articles

Do agents.md files help coding agents?
Jun 8, 2026

Do transformers need three projections? Systematic study of QKV variants
Jun 4, 2026

DeepSeek-v4.1-Flash-1017
Oct 17, 2026

Seed: Minimal, self-modifying agent harness
Aug 21, 2026

Research papers using "kidney disappointment" instead of "kidney failure"
Aug 16, 2026