@tonnyzhou: After nearly a decade of residual connections in Transformers, Google changed up the addition. DeepCrossAttention: before, it was simply the previous layer's output plus this layer's output — simple and crude; now every layer looks back at all preceding layers, and learned weights decide how much each contributes. Same quality, trains about 3x faster, with almost no extra parameters.
Summary
Google proposes DeepCrossAttention, replacing the residual connection that has been used in Transformers for nearly a decade with learnable cross-layer attention. Each layer looks back at all preceding layers and learns a weighted combination, achieving roughly 3x faster training at the same model quality while adding almost no parameters.
View Cached Full Text
Cached at: 11/24/26, 01:24 PM
Transformer’s decade-old residual connection — Google swapped out the addition
DeepCrossAttention: Previously, it was simply adding the previous layer’s output to this layer’s output — blunt and simple. Now, every layer looks back at all preceding layers, and the learned weights determine how much each one contributes. Same quality, trains about 3x faster, with almost no additional parameters.
Residual connections arrived in 2015 with ResNet and have been used in every large model since. This change targets the addition at the very bottom layer. #AIEducation
Similar Articles
Google Research tested a Transformer that chooses what to reuse from earlier layers. It matched a standard Transformer’s text prediction quality in one-third the training time.
Google Research's ICML 2025 paper introduces DeepCrossAttention (DCA), a mechanism that lets each Transformer layer dynamically select and route features from earlier layers instead of using fixed residual summation, matching standard Transformer quality in about one-third the training time with 30-40% fewer parameters.
Transformers as Generic Deep Neural Networks: Exact Compilation, the Cost of Removing Activation-Activation Products, and Multi-Agent Attention Clustering
该论文证明每个 Transformer 块都可精确编译为由固定仿射映射、路由及 sigmoid/逆平方根等基本算子构成的通用深度神经网络,量化分析了去除激活-激活乘积的代价,并提出多智能体注意力聚类方法将打分复杂度从 N² 降至 Nk,实验在 DeiT-Tiny、MambaIRv2-Light 和 Pythia-70M 上验证了编译模型与原模型一致且标准后训练量化可直接适用。
MC-Sparse: Deconstructing and Closing the Dense-Sparse Attention Gap in Diffusion Transformers
提出 MC-Sparse,一个免训练的元缓存稀疏注意力框架,通过分析稠密-稀疏注意力差距的三大来源,在视频与3D生成中实现最高2.32倍去噪加速且几乎无质量损失。
@NFTCPS: You keep talking about AI, but can't even explain what a Transformer is? There's a repo that goes all out — builds a GPT from scratch without using any high-level libraries. It lays out exactly how Attention, Multi-Head, Feed-Forward, Embedding, Residual connections, and Layer Norm are pieced together. And it's not just the model; the entire pipeline is covered…
A GitHub open-source project that implements the complete GPT training pipeline from scratch, including data preprocessing, pretraining, SFT, and RLHF post-training, all based on native PyTorch. Ideal for developers who want to deeply understand the Transformer architecture.
Continuum Attention
提出了 Continuum Attention,一种用连续分段线性记忆曲线上的积分替代离散键值查找的因果 Transformer 注意力算子,在语言建模困惑度上优于标准 softmax 与 focal attention。