arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.18855cs.LGcs.CV
收藏

Delta Attention Residuals

Delta Attention Residuals

Independent Researcher(独立研究者);University of Wisconsin–Madison(威斯康星大学麦迪逊分校)

Cheng Luo, Zefan Cai, Junjie Hu

AI总结:

本文提出Delta Attention Residuals,通过在残差连接中引入对每个子层引入的变化(delta)进行注意力机制,解决了传统注意力残差中因累积隐藏状态冗余导致的路由崩溃问题,从而提升模型跨层选择信息的能力。

摘要:

Attention Residuals将标准加性残差连接替换为在前一层输出上学习的softmax注意力,实现了选择性的跨层路由。然而,标准Attention Residuals仍然在累积的隐藏状态上进行注意力计算,这些状态高度冗余。我们发现这种冗余导致在更深的层中出现路由崩溃:注意力权重变得低对比度且接近均匀(最大权重≈0.2),限制了模型在前一层中选择信息性状态的能力。这提出了一个关键但尚未深入研究的设计问题:在Attention Residuals中应路由何种层间表示?为回答这个问题,我们提出了Delta Attention Residuals,其在delta(每个子层引入的变化(v_i = h_{i+1} - h_i))上进行注意力计算,而非累积状态。Delta表示在结构上具有多样性,产生更高对比度的注意力分布(最大权重≈0.6),从而在层间实现更选择性和有效的路由。这一原则适用于单个子层和块粒度。在所有测试的规模(220M-7.6B)中,Delta Attention Residuals始终优于标准残差和Attention Residuals,验证困惑度提升1.7-8.2%。Delta Attention Residuals还允许通过标准微调将预训练检查点转换为Delta Attention Residuals。代码可在https://github.com/wdlctc/delta-attention-residuals-code获得。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑