the short version
- DCA reaches the same perplexity as a standard transformer in up to 5x fewer training steps on LM1B and C4, and achieves comparable quality using 29% fewer layers.
- The parameter overhead is under 0.2% of total model size, making the memory footprint change negligible, though memory bandwidth increases because per-layer representations are kept intact rather than blended.
- DCA can be retrofitted onto an already pre-trained transformer with brief continued training, cutting LM1B perplexity by 0.19 versus only 0.02 for continued standard training.
- The blog post does not report inference latency or serving-time throughput, so whether the training-time gains carry over to production serving remains an open question.
Google Research published DeepCrossAttention (DCA), presented at ICML 2025, which replaces the fixed point-wise summation of standard residual connections with a learned, per-token routing mechanism that draws from the full history of preceding layers. On the LM1B benchmark, DCA reached a target perplexity in up to five times fewer training steps than a standard transformer and achieved a lower perplexity than the baseline using 30 layers instead of 42 - a 29% reduction in depth. The parameter cost added is under 0.2% of total model size.
The work was authored by Kyriakos Axiotis and Thomas Fu at Google Research, in collaboration with Mike Heddes, Adel Javanmard, MohammadHossein Bateni, and Vahab Mirrokni. The blog post describing the approach appeared on November 23, 2026; the underlying paper (arxiv: 2502.06785) is from early 2025, which commenters on Hacker News noted is a meaningful age gap in machine learning terms.
What standard residual connections get wrong at depth
A standard residual connection adds a layer's input directly to its output - a point-wise summation that treats every prior representation with equal weight. In shallow networks this works well. In networks with dozens or hundreds of layers, the equal-weight averaging dilutes high-resolution features from early layers, forcing later layers to recompute information that was already learned. This is the information dilution problem DCA is designed to solve.
The existing alternatives the paper benchmarks against include LAUREL-PA, 1x1-DenseFormer, and Hyper-Connections. DCA outperforms all three on both LM1B and C4 perplexity under identical parameter and training budgets, according to the Google Research blog. Hyper-connections in particular are noted to break the identity mapping property of residual connections, which can cause signal amplification or attenuation and lead to training instability at scale.
How DeepCrossAttention routing works mechanically
DCA introduces two mechanisms on top of the standard transformer block. The first is dynamic layer routing: for every token, the model computes a set of mixing weights using a static learnable base combined with an input-dependent projection. This lets the network shift between purely sequential and fully parallel processing depending on the token's context.
The second is depth-wise cross-attention with a split Q/K/V design. Where standard transformer attention operates across tokens in a sequence, DCA applies attention across layers in depth - each token queries a dynamically weighted mix of all prior layer embeddings. The blog describes this as unlocking the model's full historical context without the computational penalty typically associated with scaling traditional attention. The source also notes that DCA reduces the number of parameters needed by up to 30-40% relative to a standard transformer of equivalent quality, by allowing fewer layers to match the same perplexity.
- Mixing weights are computed per-token, not per-layer, so routing adapts to content rather than position alone.
- DCA can be initialized to replicate a standard residual network exactly, enabling retrofitting onto existing pre-trained checkpoints.
- Memory bandwidth increases relative to standard residual training because representations from individual layers are presented intact rather than merged into a running sum.
What the LM1B and C4 benchmark numbers actually show
On LM1B, a standard transformer required 42 layers to reach a perplexity below 14. A DCA model achieved a lower perplexity than that threshold with only 30 layers. On both LM1B and C4, DCA reached the performance of standard transformers in up to five times fewer training steps. When trained for the same number of steps, DCA consistently produced lower perplexity, meaning it extracts more representational capacity from the same training budget.
Scaling the connection history (the k parameter, representing how many preceding layers are included in the depth-wise attention) consistently improves perplexity. The blog reports that 16-DCA and 24-DCA configurations achieve the lowest perplexity, with the baseline transformer sitting at 15.14 and 24-DCA reaching 14.35 on LM1B. The paper does not report wall-clock training time directly; the speedup figure of up to 3x cited in the blog refers to achieving comparable quality faster, measured in training steps, not in hours or GPU-hours.
Retrofitting onto a pre-trained transformer
Because DCA can be initialized to behave identically to a standard residual network, it does not require training from scratch. The blog reports that applying DCA to an already pre-trained transformer and continuing training for a brief period reduced LM1B perplexity by 0.19, compared to only 0.02 for the same amount of continued standard training. This is a meaningful practical point: teams with existing pre-trained checkpoints can trial DCA without discarding their training investment.
The blog does not specify what 'brief continued training' means in terms of steps, tokens, or GPU-hours, which is a gap for anyone planning to operationalize this. The paper at arxiv 2502.06785 is the place to look for those details.
Whether the training speedup survives at serving time
The Google Research blog reports no inference latency benchmarks and no serving-time throughput numbers. All reported speedups are training-time, measured in steps to reach a perplexity target. Commenters on Hacker News flagged this directly: at serving time, memory bandwidth and the KV cache typically dominate over raw FLOPs, and it is not clear from the published material whether the gains observed during training translate into faster or cheaper inference.
The memory bandwidth point cuts both ways. DCA keeps per-layer representations intact rather than merging them, which increases bandwidth during training but could also increase the memory footprint of the residual stream at inference, depending on how k (the connection history depth) is configured. The blog does not address this tradeoff at serving time, so teams evaluating DCA for production systems should treat the serving-time cost as an open question until benchmarks are published.
Adoption: Inkling 2 and the broader dynamic routing landscape
The blog identifies at least one production model that has adopted DCA mechanisms: Inkling 2 from Thinking Machines, which uses both the Block AttnRes variant and DCA's cross-attention Q/K/V split mechanism. The blog describes Block AttnRes as having been developed by Moonshot AI; it uses a learnable softmax attention with a layer-specific pseudo-query to selectively weight representations from earlier depths, with the block variant partitioning layers to reduce memory overhead.
Commenters on Hacker News also noted the potential interaction between DCA and looped transformers - architectures where the same layers execute multiple passes. Both approaches try to extract more representational capacity from a fixed parameter budget, and combining them is theoretically appealing, though no ablation data comparing the two in combination has been published. The blog itself does not address looping. GLM-5.4 was raised by commenters as a contemporaneous example of a looped transformer, though no benchmark data connecting it to DCA exists in the sources.
What the sources leave out that engineers need to know
- No inference latency or throughput numbers are reported in the blog or cited in the arxiv abstract.
- The retrofitting experiment does not specify how many steps or tokens of continued training were used.
- No licence terms are stated for the implementation; the blog links only to the ICML paper.
- No ablations isolating dynamic layer routing from depth-wise cross-attention are described in the blog post.
- The blog does not describe whether DCA changes the shape of the KV cache or affects speculative decoding compatibility.
For teams considering DCA as a training-time architectural choice, the core tradeoff is clear from the sources: under 0.2% more parameters and higher memory bandwidth in exchange for reaching the same perplexity with 29% fewer layers or up to 5x fewer steps. For teams considering it at serving time, the sources do not yet provide enough data to make a confident cost projection.
Questions this raises
Does DeepCrossAttention improve inference speed as well as training speed?
The Google Research blog reports no inference latency or serving throughput benchmarks. All speedup figures are measured in training steps to reach a perplexity target. Because DCA keeps per-layer representations intact rather than merging them, its memory footprint at serving time is an open question.
Can DeepCrossAttention be applied to an existing pre-trained transformer without retraining from scratch?
Yes. DCA can be initialized to replicate a standard residual network exactly, so it can be retrofitted onto a pre-trained checkpoint. Brief continued training after retrofitting reduced LM1B perplexity by 0.19, compared to only 0.02 for the same continued standard training.
Which production model has adopted DeepCrossAttention mechanisms?
The blog identifies Inkling 2 from Thinking Machines as a production model using both the Block AttnRes variant and DCA's cross-attention Q/K/V split mechanism. Block AttnRes was developed by Moonshot AI and uses learnable softmax attention with a layer-specific pseudo-query.
Get the next notes by email
New notes on what moved in AI, read from the primary sources. One confirmation email, then unsubscribe any time with one click.
Spotted an error? Email samir.s.sengupta@gmail.com and I will correct it and date the change at the top of the note. How these notes are researched, drafted and checked is in the editorial policy.
