Training deep transformer models is often a balancing act: as you stack more layers, information from the early stages can get diluted, making it harder for the network to learn efficiently. Transformers have traditionally relied on residual (or skip) connections—simply adding each layer’s input back to its output—to keep earlier features alive. But this approach treats every prior representation equally, which can wash out important details and force the network to relearn features, slowing down training and bloating model size.
Google Research’s new DeepCrossAttention (DCA) architecture, presented at ICML 2025, takes a different approach. Instead of blindly summing inputs and outputs, DCA introduces a lightweight module that lets each layer decide, on a per-token basis, exactly how much to pull from any earlier layer. The result: transformers that reach the same quality up to three times faster, with up to 30% fewer parameters.
Why classic residuals hit a wall
Standard residual connections are cheap and easy to implement, but they have a major limitation: they treat all previous layers’ outputs as equally relevant. Over dozens of layers, this can blur or distort the original features, making it harder for the model to selectively reuse information. The network ends up recomputing details it could have just retrieved, which is inefficient.
How DeepCrossAttention changes the game
DCA reframes the residual connection as a dynamic routing problem. Instead of a fixed sum, each layer runs a small, learnable module that computes mixing weights for every token—deciding in real time how much to borrow from each previous layer. This is done with a combination of static, learnable weights and input-dependent projections, so the routing adapts to the input’s context.
DCA also borrows from attention mechanisms, but instead of attending across tokens, it attends across layers. Each token queries a weighted mix of all prior layer embeddings, letting the model retrieve high-resolution details from anywhere in its history. This depth-wise cross-attention unlocks more flexible and efficient feature reuse without a big computational hit.




