Stories

Google's DeepCrossAttention Achieves Comparable Model Quality Up to 3x Faster

Published 28 November, 202610 min read

For nearly a decade, one component of the transformer architecture has survived essentially unchanged: the residual connection. Attention mechanisms have been redesigned, feed-forward blocks have become mixture-of-experts layers, and tokenizers, optimizers, and training recipes have all evolved. But the humble skip connection, the simple addition of a layer's input to its output, has remained the same since the original transformer paper in 2017. Google Research's new work on DeepCrossAttention (DCA), presented in an ICML 2025 paper and laid out in a recent blog post by Kyriakos Axiotis and Thomas Fu, argues that this quiet constant of modern AI is now a bottleneck, and that fixing it yields a striking payoff: comparable model quality up to three times faster, with less than 0.2% additional parameters.

The problem hiding inside every deep transformer

Residual connections exist to solve a real problem. In a very deep network, information passes through layer after layer, each transforming it slightly. By the time the learning signal travels back from the loss to the earliest layers, gradients can shrink to almost nothing. This vanishing gradient problem historically made deep networks nearly impossible to train.

The residual connection, or skip connection, fixed this elegantly. Instead of forcing data through each layer exclusively, a copy of the input bypasses the layer's transformation and is added directly to its output. This identity pathway acts as an information highway: gradients can flow backward through it unimpeded, and the network always retains access to its raw input. It is hard to overstate how important this simple idea has been. It underpins essentially every large language model and modern vision transformer in production today.

But the standard residual connection has a quiet flaw that grows with depth. It implements a fixed, point-wise summation. Every prior layer's contribution enters the sum with equal implicit weight. In a 40-layer model, the high-resolution features computed by an early layer get blended into a growing stream of later additions. By the time those details matter, they have been averaged out and distorted, buried under everything the network piled on top of them.

The practical consequence is waste. If a later layer needs a specific feature from an early layer, it cannot selectively retrieve it from the residual stream. The network must instead recompute the feature, spending parameters and compute on duplicated work. Google describes this as information dilution, and it means that in very deep stacks, many layers contribute far less than their parameter count suggests. It is telling that researchers have repeatedly found that a meaningful fraction of layers in trained models can be removed with almost no impact on performance.

Reframing residuals as routing

DeepCrossAttention reframes the residual connection as a dynamic routing problem. Rather than treating skip connections as a rigid additive pipeline in which all prior representations pass forward with equal weight, DCA introduces a lightweight, layer-wise module that decides, on a per-token basis, how to combine outputs from the history of preceding layers.

The architecture rests on two mechanisms:

This is the key conceptual move: DCA turns the residual stream from a fixed running total into a searchable memory. A late layer working on a token no longer receives a uniform soup of everything below it. It can attend back across the network's depth and pull out the representation it needs, intact rather than blended.

The cost of this capability is remarkably small. DCA adds less than 0.2% of the total model size in parameters, which is negligible in compute and memory terms. There is one real trade-off: because representations from different layers must be presented to the routing module intact rather than merged, DCA increases memory bandwidth. That overhead is worth watching in production training stacks, but it is offset by the efficiency gains elsewhere.

What the experiments show

Google evaluated DCA across controlled synthetic setups, large-scale language modeling benchmarks, and image classification tasks. On the two headline language modeling datasets, the 1 Billion Word benchmark (LM1B) and the cleaned Common Crawl corpus (C4), the results are consistent and substantial:

The depth result deserves emphasis. Depth is expensive: each layer adds parameters, memory, and sequential latency at both training and inference time. A 30-layer model doing the work of a 42-layer one translates directly into cheaper training and faster serving.

Google's ablations also examined how the size of the connection history, the number of preceding layers each layer can attend back to, affects quality. Perplexity improves consistently as this history grows, with the best results at larger configurations such as 16 and 24 connections. The history parameter is effectively a memory-versus-quality knob: more history means richer routing, but more bandwidth, since prior representations must stay available unmerged.

Training stability improves as well. The paper reports that DCA mitigates the loss spikes frequently observed when training large models, the sudden jumps in training error that can waste days of compute or force a run to be restarted from a checkpoint.

Retrofitting models that already exist

Perhaps the most immediately practical finding is that DCA does not require training from scratch. Because the routing weights can be initialized so that DCA behaves identically to a standard residual network, the module can be bolted onto an already pretrained transformer. Google demonstrated this by retrofitting DCA onto a pretrained model and briefly continuing training: perplexity on LM1B improved by 0.19, compared with just 0.02 for the same model under continued standard training. That is a nearly tenfold difference from a small architectural addition and a short fine-tune.

For teams with expensive existing checkpoints, this matters. The conventional wisdom is that architecture changes require full retraining, making them impractical after pretraining has begun. DCA's initialization trick suggests a viable upgrade path: add the routing module, continue training briefly, and harvest efficiency gains without starting over.

Part of a broader shift: dynamic residual routing

DCA is not an isolated idea. Google's blog situates it within a rapidly growing family of dynamic residual techniques, several of which have already seen production adoption.

Attention residuals, developed by Moonshot AI, share DCA's core principle of replacing fixed addition with selective retrieval. Each layer uses a learnable softmax attention mechanism with a layer-specific pseudo-query to weight and retrieve representations from earlier depths. Moonshot reports that this prevents the unbounded growth of hidden states and improves gradient stability, with notable gains on reasoning-heavy tasks like coding and mathematics. Because keeping every prior layer's output in memory is expensive at scale, a Block AttnRes variant partitions layers into blocks, recovering most of the benefit with far less memory overhead. Notably, Thinking Machines' recent Inkling 2 model adopted both attention residuals and DCA's cross-attention Q/K/V split mechanism, a signal that these ideas are moving from papers into real model architectures.

Hyper-Connections, from ByteDance, take a different angle: rather than selecting from one residual stream, they expand it into multiple parallel channels, using learnable mixing matrices to aggregate layer outputs. This offers a form of memory scaling beyond width or depth, but the unconstrained mixing breaks the identity mapping property that makes residual connections stable. Unchecked, signals can be amplified or attenuated across layers, causing training instability at scale.

Manifold-constrained hyper-connections address exactly that instability. By constraining the mixing matrices to be doubly stochastic, using the Sinkhorn-Knopp algorithm, they restore stable signal propagation while preserving the richer information flow of widened residual streams. The result is expressivity without exploding or vanishing gradients.

The common thread across all of these methods is that depth-wise aggregation, long treated as fixed architectural plumbing, has become a learnable, input-dependent decision. Just as mixture-of-experts routing lets tokens choose which experts process them, these techniques let tokens choose which layers to read from.

Trade-offs and what is still open

A balanced reading of the results requires a few caveats. First, the headline numbers come from Google's own runs on LM1B and C4, not frontier-scale models. Whether the three-times-faster and 29%-shallower results hold at the scale of today's largest training runs is an open question that independent labs will need to answer.

Second, DCA is not free compute. The parameter overhead is negligible, but memory bandwidth increases because prior layer representations must remain available for routing. Teams adopting the technique on tightly bandwidth-constrained hardware should profile step time, not just parameter counts.

Third, while image classification was part of the evaluation, the strongest published evidence is language-modeling-centric. Porting the gains to vision transformers without running your own ablations would be premature.

There is also a theoretical boundary worth knowing. The paper includes analysis showing that DCA improves the accuracy-to-size trade-off when the collective rank of the layers falls below a critical threshold relative to the ambient dimension. In practical terms, on very narrow models, the routing module may have little useful to select from. The technique is aimed at wide, deep models, which is precisely where the cost savings matter most.

Why this matters

Training frontier models costs tens or hundreds of millions of dollars, and compute is the dominant barrier for most organizations building their own models. An architectural change that delivers the same quality up to three times faster, or the same quality from 29% fewer layers, at under 0.2% parameter overhead, attacks that barrier directly. Less training time also means less energy, a growing concern as data centers strain regional power grids.

The retrofitting result may prove equally consequential. It suggests that dynamic routing can be layered onto models mid-lifecycle, potentially making existing checkpoints meaningfully better without a from-scratch retrain.

More broadly, DCA points toward what Google expects from next-generation architectures: models that dynamically route and weigh past layer representations per token, treating all layers as specialized experts working in tandem with maximum information sharing and no redundancy. The residual connection survived nearly a decade untouched because it worked. But working is not the same as optimal, and the rapid adoption of DCA-style ideas by teams like Moonshot AI and Thinking Machines suggests the field has decided that how layers combine is now trainable structure, not a design constant. The quietest part of the transformer may turn out to be the next place it gets meaningfully better.

References