AI

Google DeepCrossAttention: Up to 3x faster transformer training

Google Research has introduced DeepCrossAttention (DCA), an architecture that speeds up transformer training by up to three times with no quality loss.

·3 min read
Google DeepCrossAttention: Up to 3x faster transformer training

Researchers at Google Research have unveiled DeepCrossAttention (DCA), a novel architecture designed to enhance transformer networks by upgrading traditional residual connections. Presented at the ICML 2025 conference, this architectural improvement addresses information dilution in deep neural networks.

Traditional residual connections and their limitations

In deep learning models, data passes through dozens or hundreds of layers, which can lead to vanishing gradients and signal degradation. To enable training of such deep networks, standard transformers rely heavily on residual connections that add a copy of the input directly to the layer's output.

However, standard point-wise summation treats all prior representations with equal weight, leading to information dilution in deep networks. As features propagate, high-resolution details from earlier layers can be distorted or averaged out, forcing the network to recompute them.

Read alsoCan LLMs read neural network weights: A breakdown of MIT study

DeepCrossAttention and dynamic routing

The DCA approach reframes residual learning as a dynamic routing problem. Instead of passing all prior layers forward with equal weight, DCA introduces a lightweight layer-wise module that decides how to best combine previous embeddings on a per-token basis.

By applying depth-wise cross-attention, each token queries a dynamically weighted mix of all prior layer embeddings. This unlocks the model's full historical context without the heavy computational penalty typically associated with scaling traditional attention mechanisms.

Benchmark results and performance improvements

DCA was evaluated across synthetic setups, image classification tasks, and large-scale language modeling benchmarks such as C4 and LM1B. On these datasets, DCA reached standard transformer performance in up to five times fewer training steps while consistently achieving lower perplexity.

To achieve a perplexity of under 14 on LM1B, a standard transformer required 42 layers, whereas the DCA model achieved superior results with only 30 layers—representing a 29% reduction in depth and parameter count. Furthermore, DCA adds less than 0.2% to the total model size.

Implications for AI development and scaling

Optimizing training processes and underlying architectures is critical for scaling large language models. Because DCA can be initialized to behave identically to standard residual connections, it can be retrofitted onto pre-trained transformers without requiring training from scratch.

The rapid emergence of dynamic routing methodologies highlights this approach as a highly promising and active area of ongoing artificial intelligence research.

Source: Hacker News: Front Page

Related articles