Supercharging transformer residual connections

Google Research has published DeepCrossAttention (DCA), an architectural change to transformer networks that swaps the standard residual (skip) connection for a learned, depth-wise routing mechanism. The work, presented at ICML 2025 in a paper titled "DeepCrossAttention: Supercharging Transformer Residual Connections," comes from staff research scientist Kyriakos Axiotis and principal engineer Thomas Fu, with academic collaborators including Mike Heddes, Adel Javanmard, MohammadHossein Bateni and Vahab Mirrokni.
The motivation is a familiar one. Residual connections, introduced to keep very deep networks trainable by adding each layer's input directly to its output, treat every earlier representation as equally important. In deep models this produces information dilution: fine-grained features from early layers get averaged out as they propagate, and the network has to spend capacity recomputing them. DCA reframes that fixed addition as a dynamic routing problem, letting each layer decide which previous layers' outputs matter most for each token.
Two mechanisms do the work. The first is dynamic layer routing: for every token, DCA computes a set of mixing weights from a static, learnable base combined with an input-dependent projection. That lets the effective computation graph shift along a spectrum from purely sequential to fully parallel depending on context. The second is depth-wise cross-attention, which splits queries, keys and values across layers rather than across tokens. Each token queries a dynamically weighted mix of all prior layer embeddings, so the model can pull high-resolution features out of its history without the usual cost of scaling attention. The added parameters are a small layer-wise module weighing less than 0.2% of total model size.
The reported results are strong. On the C4 and LM1B language modeling datasets, DCA matched standard transformers in as few as one-fifth the training steps, and at equal step counts it consistently reached lower perplexity than both standard residual connections and alternatives such as LAUREL-PA, 1x1-DenseFormer and Hyper-Connections. On LM1B, a standard fixed-width transformer needed 42 layers to get below 14 perplexity; DCA got lower with 30 layers, a 29% cut in depth and parameter count. Scaling the number of preceding layers attended to (k) improved perplexity further, with 16-DCA and 24-DCA configurations performing best. DCA was also evaluated on synthetic setups and image classification.
One practical property stands out: DCA can be initialized to behave exactly like a standard residual network, so models need not be trained from scratch. Retrofitting it onto a pre-trained transformer and continuing training briefly dropped LM1B perplexity by 0.19, against 0.02 for continued standard training. That suggests an inexpensive upgrade path, though the 0.19 figure is modest in absolute terms and comes from one benchmark.
The paper positions DCA within a wider move toward dynamic residual routing. Moonshot AI's attention residuals use a learnable softmax attention with a layer-specific pseudo-query to weight earlier depths, improving stability and reasoning-heavy tasks like coding and math, with a Block AttnRes variant to cut memory. Thinking Machines' Inkling 2 reportedly combines that design with DCA's split Q/K/V cross-attention. Hyper-connections take a different route, widening the residual stream into multiple parallel channels mixed by learnable matrices, but unconstrained mixing breaks the identity-mapping property and can destabilize training at scale; manifold-constrained variants restore stability by forcing those matrices to be doubly stochastic via the Sinkhorn-Knopp algorithm.
Why it matters: training efficiency at this level directly affects compute budgets, so a change that reaches equal quality in fewer steps is relevant to teams pretraining or fine-tuning transformers. Because DCA adds negligible parameters and can be retrofitted onto existing checkpoints, it is a comparatively low-risk experiment, though developers should note the gains reported are on language modeling benchmarks and the retrofit improvement is small. If dynamic routing becomes standard, expect architecture choices around residual streams to become a routine tuning dimension.
Based on reporting from the original publisher. Visit the source for full context and later updates.
Publisher excerpt
Algorithms & Theory