Get the app

Supercharging transformer residual connections

Google Research Blog
Read full story· 7 min
Researchers introduced DeepCrossAttention (DCA), a new method enhancing transformer residual connections by dynamically selecting features from previous layers. This approach improves learning efficiency and reduces parameters by up to 40%, addressing limitations of traditional skip connections.

What happened

Researchers have developed a new method called DeepCrossAttention (DCA) to improve how transformer models use residual connections. DCA allows each layer in a transformer to dynamically select which features from previous layers to use, rather than treating all prior information equally. This method was tested on language modeling and image classification tasks, showing faster learning and better model quality. The research was presented in a paper for ICML 2025.

Key details

  • DeepCrossAttention (DCA) reduces model parameters by up to 40%.
  • DCA uses dynamic layer routing and depth-wise cross-attention for feature selection.
  • On the LM1B benchmark, DCA achieved target performance with 30 layers instead of 42, reducing depth by 29%.
  • DCA adds less than 0.2% to the total model size.
  • Retrofitting DCA onto pre-trained transformers improved perplexity by 0.19 on LM1B.

Why it matters

Developers and companies using transformer-based models can now train smaller, more efficient models without sacrificing performance. This reduces computational costs and memory requirements, making it easier to deploy advanced models in resource-constrained environments. Organizations maintaining large language models can also update existing systems with DCA to achieve better results with minimal retraining.


More in Machine Learning