4 December 2026

AI and agents, every day. Straight to it.

ModelsQuick notes

DeepCrossAttention routes earlier transformer layer outputs token by token

DeepCrossAttention weights earlier layers per token, sparing the model from recomputing diluted details.

Bia Kanashiro

· 2 min read

Read in Portuguese

A standard transformer residual connection adds each layer's output to its input, giving every earlier representation equal weight. In deep networks, fine details from early layers get diluted and the model has to recompute them. DeepCrossAttention (DCA), described on November 23 by Kyriakos Axiotis and Thomas Fu in a Google Research blog post, swaps that fixed sum for a lightweight module that decides, token by token, how to mix the outputs of earlier layers. The work was presented at ICML 2025.

DCA relies on two mechanisms:

  • Dynamic layer routing: per-token mixing weights built from a fixed learnable base plus an input-dependent projection.
  • Depth-wise cross-attention: each token attends over a weighted mix of earlier layers, not just over other tokens in the sequence.

According to the authors, a fixed-width standard transformer needed 42 layers to reach a perplexity below 14 on the LM1B dataset (lower means better text prediction); the DCA model got below 14 with only 30. On C4 and LM1B, DCA matched the standard transformer in up to five times fewer training steps. Because it can be initialized to behave like a plain residual network, you can retrofit it onto an already pre-trained model and continue training briefly instead of starting over.

DCA adds parameters amounting to less than 0.2% of model size but raises memory bandwidth use, since each layer's representations arrive intact instead of mixed.

Bia Kanashiro

Guides & prompts.

Read articles by Bia KanashiroEditorial policy
Report an error

Use 10–1,000 characters; a reply email shares this space.

Next in your reading list