← Home

DeepCrossAttention: Google Proposes Rewiring Transformer Residual Connections

DeepCrossAttention: Google Proposes Rewiring Transformer Residual Connections

The Transformer architecture reshaped how machines process language, vision, and increasingly generic tasks — but the mechanism that made it possible still relies on a trick from over a decade ago: the residual connection, popularized by ResNet in 2015. Since then, virtually every large-scale model has depended on the same simple, nearly unquestioned technique to allow gradients to flow through hundreds or thousands of layers: pointwise addition. The input of a layer is simply added to the output of the next.

Google Research is not releasing a new model, but this week published a detailed blog post on an architectural improvement that could dramatically alter how fast and with how few parameters these models achieve desired quality. DeepCrossAttention (DCA), presented at ICML 2025, replaces the rigid summation with a learnable dynamic routing mechanism that lets each token decide which previous layers matter most for the context being processed.

The proposal is not an incremental upgrade — it is a reformulation of how information travels through the network. And the results are notable: on the LM1B benchmark, a DCA model with 30 layers outperformed a standard Transformer with 42, representing a 29% reduction in depth and parameters. The same quality is reached up to three times faster. In some scenarios, Google reports up to five times fewer training steps.

How DeepCrossAttention Works

DCA introduces two primary mechanisms. The first is dynamic layer routing: for each token, the model computes a set of mixing weights from a static learnable base combined with an input-dependent projection. This means the model can adapt its effective processing structure — ranging from purely sequential to fully parallel — depending on the specific context of the token.

The second mechanism is depth-wise cross-attention. While standard self-attention operates across tokens in a sequence, DCA applies attention across the depth of the network. Each token queries a dynamically weighted mix of all embeddings from previous layers, unlocking the network's full historical context without the usual computational cost of scaling traditional attention.

Each decoder block of the transformer receives three independent instances of a GRN (Generalized Residual Network) — one for queries, one for keys, and one for values. Each receives the same stack of previous layer outputs as input but returns different combinations, enabling richer interactions between layers at different depths.

Experimental Results

Google reported consistent results across several benchmarks:

* LM1B: A 30-layer DCA model achieved perplexity below 14, where a standard Transformer required 42 layers. The 29% reduction in depth translates directly to fewer parameters and lower inference cost. * C4: DCA reached the same final perplexity as the baseline in up to five times fewer training steps. * Minimal overhead: The routing mechanism adds less than 0.2% to the model's total parameter count. * Retrofitting: When applied to an already-trained model, DCA reduced LM1B perplexity by 0.19 points, compared to just 0.02 for standard continued training — opening the possibility to improve existing models without full retraining. * Comparison with competitors: At equal parameter budgets, DCA achieved lower perplexity than LAUREL-PA, 1x1-DenseFormer, and Hyper-Connections.

An important detail: DCA can be initialized to behave identically to a standard residual network, meaning it can be retrofitted to any pretrained transformer without needing to start training from scratch.

The Trade-off: Memory vs. Parameters

Google openly acknowledges a drawback: DCA increases memory bandwidth demands. Because representations from different layers are kept intact rather than blended, the model needs simultaneous access to multiple embeddings — meaning more memory traffic during both training and inference.

On hardware where memory is the bottleneck (not parameter count), this trade-off could limit widespread adoption. Google trained the models on 64 TPUs, processing 131 billion tokens over 500,000 steps — a significant investment that not all labs can replicate.

The Broader Movement: Beyond Fixed Addition

Google Research's blog post positions DCA within a wider movement in the field toward replacing fixed residual connections. Moonshot AI introduced attention residuals in March 2026, which shares DCA's core principle: instead of blindly summing every prior layer's output, use a learnable attention mechanism for each layer to select which representations from deeper layers are relevant.

Several recent papers, including LAUREL-PA, DenseFormer, and Hyper-Connections, explore variations on the same concept — letting the network learn how to combine the history rather than imposing a fixed combination. DCA is particularly notable for applying this principle directly to the attention mechanism, using attention across depth.

What to Expect

The numbers come from controlled benchmarks (LM1B and C4), not frontier-scale models. Google has not released results on models with billions of parameters. The next step will be seeing whether the academic community can reproduce the gains at larger scales — and whether the increased memory traffic offsets justify the 29% reduction in depth on real production workloads.

But the possibility of retrofitting existing models without full retraining is a powerful commercial argument. If the technique holds at scale, it could significantly reduce training costs for any team that needs to improve a model without starting from zero.

Sources: Google Research, AI Weekly, Tensor Journal

✓ Independent sources cross-checked and verified before publishing