1. Home
  2. Blog
  3. Model architecture

Artificial intelligence · 8 min read

The residual connectionbecomes a learned router.

A residual connection is one addition. Google Research proposes replacing it with per-token weighted routing: the same quality up to 3x faster, 42 layers down to 30 on LM1B, under 0.2% extra parameters — plus a memory bandwidth cost the post only half admits.

By Kaleido LabPublished on

TL;DR

  • DeepCrossAttention replaces residual addition with per-token weighted routing over every earlier layer: attention across depth, not just across tokens.
  • The same quality up to 3x faster, up to 5x fewer training steps on LM1B and C4, and 42 layers cut to 30 below a perplexity of 14.
  • Under 0.2% extra parameters, but more memory bandwidth; the experiments stay small-scale, which proves nothing for a frontier model.

The most boring line in a transformer

A residual connection is one addition: a block's output is added to its input, and the gradient crosses the sum without degrading. That is what made forty-layer networks trainable, and it is also an assumption: every earlier representation counts the same. Google Research published a post on November 23 — the paper dates from ICML 2025, arXiv 2502.06785 — that attacks exactly that assumption. An unweighted average dilutes information, and a deep network rebuilds it instead of re-reading it.

The dilution mechanism needs no formula. After thirty layers, a high-resolution detail from the first block — an identifier, a unit, a format constraint — sits added to thirty other vectors of comparable norm. The signal still exists, but it is no longer separable from the rest, so the model recomputes it. Recomputing burns training compute to relearn what it already knew, and that is precisely the budget labs are trying to compress.

That is what makes the publication interesting: it is not a product announcement, it is a change to the base unit of the architecture. The post was picked up on Hacker News on November 28 (627 points, 218 comments) — more than eighteen months after the first paper revision, and the question "why do we still train longer than necessary" is still open.

Two mechanisms, one memory cost

DCA adds a small module to each layer that decides, token by token, how to combine the outputs of earlier layers. The mixing weights come from a learned static base plus an input-dependent projection: the network can process a sequence purely sequentially, purely in parallel, or any mix in between, and change its mind depending on the current token.

The second mechanism is attention across depth. Standard attention makes tokens talk to each other; DCA makes layers talk to each other, with split Q/K/V: each token queries a weighted mix of all preceding layers and fetches the detail it needs directly, without going through the sum.

The advertised price is small: under 0.2% extra parameters. The real price is less visible, and the post only half admits it: representations from different layers are presented intact rather than blended, which increases memory bandwidth. During training that disappears into the noise. During autoregressive decoding, every step re-reads a wider history of layers. For a team capped by memory rather than FLOPs, that is not an implementation detail, it is the trade-off.

The numbers and their blind spots

Three families of measurements, to be read separately because they do not measure the same thing. The short table labels are defined right below.

MeasureReported result
Speedsame quality up to 3x faster
Train stepsup to 5x fewer (LM1B, C4)
Depth42 layers to 30 (-29%) below PPL 14
Extra paramsunder 0.2% of the model
Retrofit PPL-0.19 versus -0.02 (LM1B)

Speed is the abstract's claim; train steps is how many steps it takes to match a standard transformer on LM1B and C4; depth is how many layers it takes to get below a perplexity of 14 on LM1B; retrofit PPL is the perplexity drop from grafting DCA onto an already pretrained model, against standard continued training.

The 3x and the 5x do not contradict each other, they do not share a reference point. The abstract claims the same quality up to three times faster in training time; the results section reports up to five times fewer steps to match the standard transformer on two datasets. In an article about budgets, keep the conservative number: it is the one that survives a third-party replication.

The most concrete result is the layer count. To get below a perplexity of 14 on LM1B, a fixed-width transformer needs 42 layers; DCA gets there with 30, and does better. Comparable perplexity with twelve fewer layers is not a regularisation win: it is capacity per parameter, which means memory and throughput at inference for a model of the same quality.

The third number is the most useful in practice. DCA can initialise as the identity, so it grafts onto an already pretrained transformer. On LM1B, a short continued training run drops perplexity by 0.19 with DCA, against 0.02 for standard continued training: nearly ten times the gain, from a local change inside the block. That is the entry point for a team that cannot restart a pretraining run.

What the post does not claim matters too. Experiments run on LM1B, C4 and image classification, at scales where you stack a few dozen layers. Perplexity is a clean measurement, but it says nothing about reasoning benchmarks or behaviour at a trillion parameters. And the theoretical analysis adds an awkward condition: the gain closes once the ratio of collective layer rank to ambient dimension crosses a threshold. In other words, DCA pays when the model has redundancy to recover, not when every layer adds a genuinely new direction.

When to use it, when to pick simpler

If you pretrain a model, changing the residual connection is about the least invasive edit available: the code of a block changes, the data pipeline and tokenizer do not. It is the kind of lever you can test in a week on a 100M to 1B model, with two perplexity curves to show for it.

If you do not pretrain, the decision reduces to retrofitting. That deserves an experiment, not a migration: on your own corpus, take a checkpoint, continue for a few billion tokens with and without DCA, then compare your domain metrics — extraction, code, summarisation. If the gain does not show on your tasks, you saved a project.

The idea is no longer isolated, and that is one more reason to look at it now. Moonshot AI is pushing attention residuals (arXiv 2603.15031): a learned softmax attention with a layer-specific pseudo-query, plus a "Block AttnRes" variant that partitions layers into blocks to contain memory. Thinking Machines' Inkling 2 combines that approach with DCA's split Q/K/V. Hyper-connections widen the residual stream into several channels but break the identity property and destabilise training at scale; the manifold-constrained variant (arXiv 2512.24880) forces those matrices to be doubly stochastic via Sinkhorn-Knopp, which restores stable signal propagation.

When to skip it: if your bottleneck is inference, DCA does not help — it adds bandwidth. If you consume an open model through LoRA, you inherit the vendor's architecture and have nothing to decide. And if your team has no perplexity baseline per model size on its own corpus, no architecture can be compared: start with the baseline, it costs less than changing a block.

Checklist: five actions

  1. Measure in training steps. At equal quality, step count and FLOPs decide the budget, not the final perplexity of a longer run.
  2. Test the retrofit on a small model. Take a checkpoint, continue training with and without DCA for a few billion tokens, and compare on your metrics, not on LM1B.
  3. Profile memory before getting excited. A layer that re-reads every earlier layer moves bytes: if bandwidth is your limit, the quality gain arrives with a bill.
  4. Check the theoretical condition. If your layers are already low-redundancy, the rank threshold is reached and the gain evaporates — useful to know before reserving GPUs.
  5. Watch what ships in open models. Attention residuals at Moonshot, a mixed mechanism at Thinking Machines: dynamic residual routing is leaving the lab, and an open model carrying it will settle the argument faster than a benchmark.

Need to choose between two architectures, measure the real cost of a training run, or design an evaluation that survives a model change? See how we work at Kaleido-Lab.

Frequently asked questions

Another question? Email me.

Does DCA replace standard residual connections ?

Yes, that is the point: the unweighted sum is replaced by a learned mix of earlier layers, plus attention across depth. DCA can still initialise as the identity, so it behaves exactly like a standard residual network before drifting toward routing, which is what lets it graft onto an already trained model.

Does the 3x gain transfer to a 100B-parameter model ?

Nothing guarantees it. The published experiments cover LM1B, C4 and image classification, with a few dozen layers. The post claims the same quality up to three times faster in training time and up to five times fewer steps on two language datasets, but no measurement is given at frontier scale. Treat the number as a hypothesis to test at your own scale.

Can DCA be added to a model that is already trained ?

Yes, that is its main appeal. Identity initialisation allows continued training instead of a full pretraining run: on LM1B, perplexity drops by 0.19 with DCA against 0.02 for standard continued training. The real cost is rewriting the block and handling a wider memory footprint, since each layer re-reads earlier layers intact.

How is DCA different from hyper-connections ?

Hyper-connections widen the residual stream into several channels and mix outputs through learned matrices, which scales memory but breaks the identity property and destabilises training at scale. DCA keeps the identity, adds per-token routing and depth-wise attention, and stays under 0.2% extra parameters; the manifold-constrained variant exists precisely to fix hyper-connection instability.

Which architecture will you test?

Training, retrofitting an open model, or evaluating an architecture: describe your context and I will reply with a first opinion and next steps, no strings attached.

Read next