Google DCA: Faster Transformer Training with Dynamic Residuals
Contents
As Transformer models grow deeper, preserving early features across dozens of layers becomes difficult. Standard Transformers address vanishing gradients through residual connections (skip connections) that add each layer's input directly to its output. In an ICML 2025 paper, Google Research showed that this simple summation leads to information dilution in deep networks, slowing down training.
How static residual connections dilute information
In standard Transformer architectures, skip connections perform an element-wise addition of a layer's output with its input:
x_{l+1} = x_l + F(x_l)This addition requires minimal compute, but it weights all preceding layer representations equally. Over many layers, detailed token features extracted early on get averaged out. Deeper layers must then recompute those foundational patterns, which wastes parameter capacity and increases training time.
How DeepCrossAttention works
DeepCrossAttention (DCA) replaces uniform addition with a dynamic routing mechanism. A lightweight cross-attention module lets each token selectively retrieve representations from earlier layers based on current context.
- Dynamic Token Routing: Each token queries earlier hidden states directly, pulling relevant representations into the current layer.
- Preserved High-Resolution Signals: Early representations bypass intermediate layers without being diluted by repeated additions.
- Low Overhead: The cross-attention mechanism adds less than 0.2% total parameters, leaving memory bandwidth and compute requirements largely unchanged.
Benchmark results and efficiency
Evaluations on C4 and the 1 Billion Word Language Model Benchmark (LM1B) showed that DCA-equipped models reach baseline quality in up to 5 times fewer training steps.
On LM1B, a conventional fixed-width Transformer required 42 layers to reach a perplexity below 14. The DCA model achieved that mark with 30 layers, a 29% reduction in depth and total parameters.
Because DCA can initialize with zero weights to match a standard identity mapping, existing pre-trained Transformers can also be retrofitted. Short fine-tuning runs with DCA improved perplexity on existing models without requiring training from scratch.