Complete AI Training
Start for Free

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

AI news ·

Google researchers propose DeepCrossAttention to make transformer training up to three times faster

Google's DeepCrossAttention replaces fixed residual connections with learnable routing, letting transformers reach the same quality up to three times faster while adding under 0.2% parameter overhead.

Google Research has introduced DeepCrossAttention (DCA), a new architectural approach that replaces the fixed addition in transformer residual connections with a dynamic, learnable routing mechanism. The method, presented at ICML 2025, lets models reach the same quality up to three times faster while adding less than 0.2% to total parameter count. For teams building or fine-tuning large language models, this means faster convergence and reduced compute costs without sacrificing output quality.

The problem with standard residual connections

Residual connections function as information shortcuts. A copy of a layer's input skips the layer's computation and gets added directly to its output. This design solved the vanishing gradient problem and made deep networks practical. But it has a built-in weakness: every prior representation gets equal weight. In networks with dozens of layers, high-resolution details from early layers get averaged out as they propagate forward. The model then spends capacity recomputing features it already learned, wasting training budget.

"The standard residual connection implements a simple operation: point-wise summation of a layer's output with its input," the researchers explain. "While computationally efficient, this simple process has a key limitation: it treats all prior representations with equal weight, leading to information dilution in deep networks."

How DeepCrossAttention works

DCA reframes residual learning as a routing problem. Instead of blindly summing all prior outputs, it introduces two mechanisms that let each layer decide which historical representations matter most for a given token.

Dynamic layer routing computes per-token mixing weights using a static learnable base combined with an input-dependent projection. This lets the network shift its processing structure - from purely sequential to nearly parallel - based on the specific context.

Depth-wise cross-attention applies attention across layers rather than across tokens. Each token queries a dynamically weighted mix of all prior layer embeddings, giving the model access to its full historical context without the computational cost of scaling traditional attention across depth.

The architecture can be initialized to behave identically to a standard residual network. This means teams can retrofit DCA onto an already pre-trained transformer and continue training briefly to see gains, rather than starting from scratch.

Results on language modeling benchmarks

On the C4 and LM1B datasets, DCA reached the performance of standard transformers in up to five times fewer training steps. When trained for the same duration, DCA consistently achieved lower perplexity. To hit a perplexity below 14 on LM1B, a standard transformer needed 42 layers. A DCA model reached lower perplexity with only 30 layers - a 29% reduction in depth and parameter count.

Retrofitting DCA onto an already pre-trained transformer and continuing training briefly cut perplexity by 0.19 on LM1B. Continued standard training on the same model reduced perplexity by just 0.02.

Several research groups are pursuing similar ideas. Moonshot AI developed attention residuals, which use a learnable softmax mechanism with layer-specific pseudo-queries to selectively weight prior representations. The Thinking Machines Inkling 2 model adopted this design alongside DCA's cross-attention approach.

Hyper-connections expand the residual stream into multiple parallel channels with learnable mixing matrices. Manifold-constrained hyper-connections add stability by forcing those matrices onto a defined manifold using the Sinkhorn-Knopp algorithm, preventing the signal amplification or attenuation that can destabilize training at scale.

Why this matters for product development and research engineers

DCA addresses a concrete bottleneck in transformer training: information dilution across depth. For teams working on Generative AI Courses or production LLM deployments, the practical takeaway is that dynamic residual routing can cut the compute required to reach a target perplexity by a factor of three to five. The parameter overhead is negligible - under 0.2% - and the technique works as a retrofit on pre-trained models. Engineers evaluating architectural changes for the next training run should watch how quickly DCA and its variants move from research into open-source implementations and framework integrations.

Share