arXiv:2607.18730cs.CL2026-07

提出双向注意力残差,让多路残差相互借鉴历史信息,提升模型表现。

Dual Attention Residuals

论文配图:Dual Attention Residuals
图 1 · 摘自论文原文
  • 通过双向跨流注意力,实现多路径残差间的动态信息共享。
  • 在0.1B至7B模型上均降低验证损失,效果稳定优于标准残差设计。
  • 适合关注模型深度优化与多路径协同的开发者与研究者。

现有工作将Transformer残差路径扩展至两个互补方向:历史检索从早期深度获取信息,多流方法保持多条残差轨迹。但这些能力大多独立研究,为每条流单独配置检索器仍无法让一条路径影响另一条路径的深度选择。本文提出双注意力残差(DAR),通过互惠的跨流地址机制,将多流交互引入历史检索。对于每个目标流,DAR从反向流的归一化状态计算深度权重,并将其应用于目标流自身历史值。检索到的状态以不变形式合并进Transformer分支,并通过受约束的门控写入更新;块形式变体则在块级历史上操作以控制开销。在0.1B至1B参数的密集模型以及7B稀疏MoE模型上,DAR始终优于标准残差Transformer和注意力残差。路由消融实验表明,性能提升不能仅由额外流或值投影解释。表示与干预分析进一步显示,互惠跨流选择保留了深度维度多样性,避免了其他双流设计中常见的冗余或功能失衡。

原文摘要 · Abstract (English)

Recent work extends Transformer residual pathways along two complementary axes: historical retrieval selects information from earlier depths, whereas multi-stream methods maintain multiple residual trajectories. These capabilities have largely been studied in isolation, and assigning an independent retriever to each stream still prevents one trajectory from influencing depth selection in another. We propose Dual Attention Residuals (DAR), which brings multi-stream interaction into historical retrieval through reciprocal cross-stream addressing. For each target stream, DAR computes depth weights from normalized states in the opposite stream and applies them to values from the target stream's own history. The retrieved states are combined for an unchanged Transformer branch and updated through constrained gated writes; a block-form variant operates on block-level histories to control overhead. Across dense models from 0.1B to 1B parameters and a 7B sparse-MoE model, DAR consistently improves validation loss over standard residual Transformers and Attention Residuals. Routing ablations show that the gain cannot be explained by an additional stream or value projection alone. Representation and intervention analyses further show that reciprocal cross-stream selection preserves depth-wise diversity and avoids the redundancy or functional imbalance observed in alternative two-stream designs.

Transformer残差网络多流架构深度学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。