Google's DeepCrossAttention Cuts Transformer Training Steps by 5x
Google Research's DeepCrossAttention replaces static skip connections with learned depth-wise routing, hitting baseline perplexity up to 5x faster with under 0.2% extra parameters.
Takeaways
- Google Research introduces DeepCrossAttention, replacing additive skip connections with learned depth-wise routing.
- Matches standard transformer quality in up to 5x fewer training steps with under 0.2% parameter overhead.
- Hit sub-14 perplexity on LM1B with 30 layers vs 42 for a baseline transformer, a 29% depth cut.
- Each token queries a dynamically weighted mix of all prior layer outputs via split Q/K/V attention.
- Can be initialized to match a standard residual net, enabling retrofit onto pretrained checkpoints.
- Full paper and benchmarks available on arXiv (2502.06785), presented at ICML 2025.
Google Research, USC, and UC Irvine have proposed DeepCrossAttention (DCA), a learned replacement for the fixed skip connections used in transformers. The method lets each token retrieve and mix representations from earlier layers. In experiments on C4 and LM1B, DCA matched standard transformer quality with as few as one-fifth the training steps and reduced the depth required for one reported target from 42 layers to 30.
Residual connections make deep networks trainable by adding each block’s input to its transformed output. The identity path supports gradient flow and preserves information, while the running sum gives later blocks limited control over which earlier representations they reuse. DCA turns that fixed path into a routing system with less than 0.2% additional model size, according to the ICML 2025 paper.
Why the running sum loses detail
A simplified residual block computes the following recurrence, where F_l is the transformation performed by layer l:
x_l = x_(l-1) + F_l(x_(l-1))
Repeated addition compresses the model’s layer history into one evolving residual stream. Earlier features remain components of that sum, so a later block cannot directly select the representation produced by a particular layer. Useful details can become diluted, forcing deeper blocks to reconstruct information the network already computed.
Routing over the layer stack
DCA keeps preceding layer outputs available and learns how each token should combine them. Its routing mechanism has three main parts:
- Dynamic layer weights: DCA combines a learned static base with an input-dependent projection. The resulting weights can emphasize recent layers, distant layers, or several layers at once.
- Depth-wise cross-attention: The attention axis covers layer depth for a given token. Ordinary self-attention covers positions in the sequence. Each token can therefore query representations produced for that token at earlier depths.
- Separate query, key, and value routes: Three independent Generalized Residual Network modules create the query, key, and value paths from previous layer outputs. Each path can use a different mixture of layers.
Routing remains causal because DCA accesses completed representations from earlier layers. The transformer’s existing causal mask still governs which sequence positions each representation can contain.
The gains and their limits
C4 is a cleaned web-text corpus, while LM1B is a one-billion-word language-modeling benchmark. Both experiments use perplexity, where a lower score indicates that the model assigned higher probability to held-out text.
| Measurement | Reported result |
|---|---|
| Updates to matched quality | Up to 5 times fewer training steps than a standard transformer |
| Quality at a fixed update budget | Lower perplexity than standard residuals, LAUREL-PA, 1x1-DenseFormer, and Hyper-Connections in the tested configurations |
| LM1B perplexity below 14 | 30 DCA layers compared with 42 standard layers at fixed width |
| Routing connections | Perplexity improved from 15.14 at k=1 to 14.35 at k=24 |
| Additional model size | Less than 0.2% |
The 30-layer LM1B configuration used about 29% fewer layers and parameters than the 42-layer baseline at the same width. Across the reported experiments, increasing the number of active routing connections improved quality, with additional access to earlier representations providing the largest benefit.
Update-count improvements can translate differently to wall-clock performance. DCA’s parameter overhead is small, but each forward pass must retain and read earlier layer representations. Activation memory, memory bandwidth, routing width k, compiler support, and kernel efficiency will determine the realized training and inference gains.
Existing checkpoints can move over
DCA supports a function-preserving initialization that reproduces a standard residual network at the start of conversion. A team can add the routing modules to a pretrained transformer, verify output parity, and continue training from the existing checkpoint.
Under the paper’s LM1B continuation setup, converting the checkpoint to DCA reduced perplexity by 0.19. Continuing the same checkpoint with standard residual training reduced it by 0.02. The size of that gain will depend on the checkpoint, continuation budget, optimizer state, and routing configuration.
Residual routing becomes a design space
Several recent architectures give transformers more control over depth-wise information flow. They differ in how they select earlier representations and constrain the resulting mixtures.
| Method | Routing mechanism | Main tradeoff |
|---|---|---|
| DeepCrossAttention | Input-dependent cross-attention over previous layer outputs, with separate query, key, and value routes | Requires access to the layer-output stack |
| Attention Residuals | Learned softmax weights over earlier layers using layer-specific pseudo-queries | Adds depth-wise routing without DCA’s three independent paths |
| Hyper-Connections | Multiple parallel residual channels mixed through learned matrices | Unconstrained mixing can amplify signals and destabilize training |
| Manifold-constrained Hyper-Connections | Doubly stochastic mixing matrices produced with the Sinkhorn-Knopp algorithm | Adds normalization work to control signal propagation |
Google’s overview also reports that Thinking Machines used Attention Residuals in Inkling 2 alongside DCA’s split query, key, and value mechanism. These designs treat the residual stream as a configurable routing layer rather than a fixed architectural primitive.
Where DCA fits
| Scenario | What the evidence suggests |
|---|---|
| Training a deep transformer from scratch | DCA is a candidate when reducing optimizer steps or improving quality at a fixed parameter budget matters. |
| Extending a pretrained checkpoint | Function-preserving initialization provides a conversion path followed by continued training. |
| Reducing inference depth | The 30-layer result suggests fewer serial block evaluations at matched quality, subject to routing and memory-access costs. |
| Running on bandwidth-limited hardware | Cross-layer activation reads may offset savings from reduced depth. |
| Comparing residual-routing methods | The paper includes direct results against standard residuals, LAUREL-PA, 1x1-DenseFormer, and Hyper-Connections. |
A useful evaluation should match models on training tokens, optimizer steps, FLOPs, wall-clock time, peak activation memory, and inference throughput. Those measurements separate DCA’s reported sample-efficiency gains from the hardware costs of keeping the layer history available.