---
title: "Supercharging transformer residual connections"
description: "DeepCrossAttention (DCA) replaces the fixed point-wise summation of transformer residual connections with learned, per-token routing over all preceding layer outputs."
url: "https://swe.quest/articles/supercharging-transformer-residual-connections-cfa196a28b957618"
canonical: "https://research.google/blog/supercharging-transformer-residual-connections/"
source: "Google Research"
published: "2026-11-23"
difficulty: "hard"
kind: "Research"
reading_minutes: 7
tags: ["llms","model-training","machine-learning"]
---

# Supercharging transformer residual connections

A post on [Google Research](https://swe.quest/sources/google-research.md), published 2026-11-23, 7 min read, Research. Original: [https://research.google/blog/supercharging-transformer-residual-connections/](https://research.google/blog/supercharging-transformer-residual-connections/)

## Summary

DeepCrossAttention (DCA) replaces the fixed point-wise summation of transformer residual connections with learned, per-token routing over all preceding layer outputs. It does this through dynamic layer-mixing weights and depth-wise cross-attention with split Q/K/V, which prevents early-layer features from being diluted. On LM1B and C4, DCA matched standard transformers in up to 5x fewer training steps and hit sub-14 LM1B perplexity with 30 layers instead of 42, while adding under 0.2% parameters. It can also be retrofitted onto pre-trained models, and the post places it alongside related techniques such as attention residuals, hyper-connections and manifold-constrained hyper-connections.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)

## Prerequisites

- transformer architecture ([easy posts on System design](https://swe.quest/tags/system-design.md?difficulty=easy))
- residual connections
- attention mechanism

## Keywords

DeepCrossAttention, ICML 2025, Hyper-Connections, Attention Residuals, LM1B, C4, Sinkhorn-Knopp

## Related posts

- [Differential Transformer V2](https://swe.quest/articles/differential-transformer-v2-308ff82f46821bd8.md): Hugging Face · 2026-01-20 · Hard · 10 min read · LLMs, Model training, Inference & serving, Machine learning
  Differential Transformer V2 reworks differential attention by doubling query heads while keeping key-value heads fixed, subtracting paired heads within the same GQA group using a per-token, per-head sigmoid-gated λ.
- [Multi-token Residual Prediction](https://swe.quest/articles/multi-token-residual-prediction-f7971ab59cb61cdd.md): Modal · 2026-07-01 · Hard · 13 min read · Inference & serving, LLMs, Model training, Performance engineering
  Multi-token Residual Prediction (MRP) adapts multi-token prediction to diffusion language models by training a small 3-layer transformer on a frozen backbone to predict the logit residual between adjacent denoising steps, not the full next-step distribution.
- [Apriel-H1: The Surprising Key to Distilling Efficient Reasoning Models](https://swe.quest/articles/apriel-h1-the-surprising-key-to-distilling-efficient-reasoning-models-6fe42e5e9de282bc.md): Hugging Face · 2025-11-19 · Hard · 8 min read · Model training, LLMs, Inference & serving, Machine learning
  ServiceNow converted its 15B Apriel reasoning model into a Mamba/attention hybrid via distillation, reaching 2.1x throughput with small benchmark shifts (MATH500 up, GPQA and AIME24 slightly down) using 76.8B tokens.
- [DeepSeek-V4: a million-token context that agents can actually use](https://swe.quest/articles/deepseek-v4-a-million-token-context-that-agents-can-actually-use-4aebeb5a933f7a88.md): Hugging Face · 2026-04-24 · Hard · 7 min read · LLMs, Inference & serving, AI agents, Model training
  DeepSeek-V4 (Pro: 1.6T total/49B active; Flash: 284B/13B active) is a MoE model family whose 1M-token context is made practical by a hybrid attention design that interleaves Compressed Sparse Attention (4x KV compression plus an FP4 lightning indexer selecting top-k blocks) with Heavily Compressed Attention (128x compression with dense attention), plus FP8 KV storage.
- [Hugging Face Reads, Feb. 2021 - Long-range Transformers](https://swe.quest/articles/hugging-face-reads-feb-2021-long-range-transformers-59eb38f5969384a8.md): Hugging Face · 2021-03-09 · Hard · 8 min read · LLMs, Machine learning, Model training
  Long-range attention methods attack the quadratic memory and time cost of self-attention in sequence length, and four papers illustrate the main families.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
