Delta Attention Residuals

Cheng Luo, Zefan Cai, Junjie Hu
5/13/2026
10 citations
cs.LGcs.CV

Official code: wdlctc/delta-attention-residuals-code (46 stars, Python, last commit 2026-09-26).

Abstract

Attention Residuals replace standard additive residual connections with learned softmax attention over previous layer outputs, enabling selective cross-layer routing. However, standard Attention Residuals still attend over cumulative hidden states in previous layers, which are highly redundant.

Show full abstract

We show that this redundancy leads to routing collapse in deeper layers: attention weights become low-contrast and closer to uniform (max weight ${\approx}$0.2), limiting the model's ability to select informative states in previous layers. This raises a key but underexplored design question: what layer-wise representations should be routed in Attention Residuals? To answer this question, we propose Delta Attention Residuals, which attend over deltas -- the change introduced by each sublayer ($\mathbf{v}_i = \mathbf{h}_{i+1} - \mathbf{h}_i$) -- instead of cumulative states. Delta representations are structurally diverse and yield higher-contrast attention distributions (max weight ${\approx}$0.6), enabling more selective and effective routing across layers. This principle applies at both per-sublayer and block granularity. Across all tested scales (220M--7.6B), Delta Attention Residuals consistently outperform both standard residuals and Attention Residuals, with 1.7--8.2\% validation perplexity gains. Delta Attention Residuals also enables converting pretrained checkpoints into Delta Attention Residuals via standard fine-tuning. Code is available at https://github.com/wdlctc/delta-attention-residuals-code.

View on arXivView PDF

Code Implementations(1)

Delta Attention Residuals - supplementary code and pretrained models

461Python, ShellMay 12, 20262 months ago

Similar Papers

Cite this paper

@article{luo2026delta,
  title  = {Delta Attention Residuals},
  author = {Cheng Luo and Zefan Cai and Junjie Hu},
  year   = {2026},
  eprint = {2605.18855},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.18855v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.18855.svg)](https://codeofpaper.com/paper/2605.18855)

Discussion