# What is a residual connection: the shortcut that lets deep networks train

> A residual connection adds a layer's input to its output. It made 152-layer networks trainable in 2015, and Google and others are now reworking it for transformers.

URL: https://claudegpt.si/news/what-is-a-residual-connection  
Published: 2026-11-23T18:57:22.732Z  
Author: ClaudeGPT Si Newsroom  
Section: Research  
Topics: Residual connections, Transformers, Research, Research papers, Google  
Publisher: ClaudeGPT Si

## Key takeaways

- A residual connection outputs F(x) + x, so a layer only learns the change to its input and can pass the input through unchanged.
- In the 2015 ResNet paper, adding shortcuts cut a 34-layer network's ImageNet top-1 error from 28.54% to 25.03% with no extra parameters.
- Newer methods such as Hyper-Connections, cmHC and Google's DeepCrossAttention learn how layers mix, reporting gains in loss or training speed mainly on smaller models.

A residual connection is a shortcut that adds a layer's input back to its output. Instead of passing on only what the layer computed, the network passes on the original signal plus the layer's change to it. That one addition is what made networks with more than a hundred layers trainable, and the transformer, the design behind today's language models, puts one around every block.

The idea dates from 2015, but it is moving again. On November 23, 2026, Google Research [published a post](https://research.google/blog/supercharging-transformer-residual-connections/) on a method that lets each layer pick which earlier layers to draw from, and a paper called [cmHC](https://arxiv.org/abs/2611.27193), submitted to arXiv on November 20, tunes a newer family of wider residual connections. Both start from the same plain shortcut.

## What a residual connection does

A [neural network](https://claudegpt.si/news/what-is-a-neural-network) is a stack of layers. Each one takes a list of numbers, transforms it and hands the result to the next.

A residual connection changes the hand-off. If a layer computes some function F of its input x, the output becomes F(x) + x. The layer no longer has to rebuild the whole signal. It only has to learn the difference, the "residual", between what came in and what should go out.

That makes doing nothing easy. If a layer has nothing useful to add, it can push F toward zero and the input flows through unchanged. In a plain network, a layer must learn to copy its input exactly, which turns out to be hard.

## Why deep networks need them

The fix came from Kaiming He, Xiangyu Zhang, Shaoqing Ren and Jian Sun at Microsoft Research, in the [ResNet paper](https://arxiv.org/abs/1512.03385) posted in December 2015. They had noticed something odd. Adding layers to a network should never make it worse on its training data, because the extra layers could in principle just copy their input. In practice it did. On the CIFAR-10 image dataset, their 56-layer plain network had higher training error than a 20-layer one.

They called this the degradation problem and showed it was not overfitting: the deeper network was simply harder to optimize. With residual connections the picture flipped. On ImageNet, a 34-layer plain network had 28.54% top-1 validation error, worse than the 27.94% of an 18-layer one. With shortcuts added, the 34-layer version dropped to 25.03% and beat the 18-layer residual network. The shortcuts added no parameters and no extra computation.

Residual networks then went to 152 layers on ImageNet, eight times deeper than the VGG networks of the time, and an ensemble of them reached 3.57% error on the ImageNet test set, winning the ILSVRC 2015 classification task. On CIFAR-10 the team trained a 1,202-layer network to under 0.1% training error. Its test error, 7.93%, was worse than their 110-layer model, which the authors flagged as an open problem.

## How transformers use them

The 2017 [Transformer paper](https://arxiv.org/abs/1706.03762) from Google Brain and Google Research put a residual connection around every sub-layer: the attention block and the feed-forward block alike. The paper writes the output of each as LayerNorm(x + Sublayer(x)), where layer normalization rescales the numbers to keep them in a steady range. Every sub-layer outputs vectors of the same size, 512 numbers in the original model, so the input and output can be added directly.

The result is often called the residual stream: one running vector per token that flows from the bottom of the model to the top. Each attention or feed-forward block reads from it and adds its change back into it.

## What the new work changes

The plain shortcut weights every earlier layer the same: the stream is just a running sum. Recent work asks whether the model should get more say in how layers connect.

**Hyper-Connections.** A team at ByteDance's Seed group proposed [Hyper-Connections](https://arxiv.org/abs/2409.19606) in September 2024. Instead of one residual stream, the model keeps several copies, four by default, and learns weights for how each layer reads from and writes back to them. On OLMoE-1B-7B, a mixture-of-experts model (one that runs only part of its network for each token) trained on 500 billion tokens, the authors report it reached the baseline's loss 1.8 times faster, and its ARC-Challenge score rose from 41.8 to 47.8. The extra parameters were about 0.033% of the model for OLMo-1B, but measured memory use rose 26.1%.

**mHC and cmHC.** Free-form mixing has a catch. The authors of [mHC](https://arxiv.org/abs/2512.24880) wrote in December 2025 that it weakens the property that lets a residual network pass its input through unchanged, causing training instability at scale. Their fix constrains the mixing to a well-behaved family of matrices (the Birkhoff polytope, mixtures in which every row and column sums to one). The new cmHC paper, by a team mostly from China Telecom's Xingchen AGI Lab, argues that this constraint can leave streams mixing too little, nearly independent of one another. Its fix pulls the mixing matrices partway toward an even blend, adds no new learnable parameters, and applies only in the first few layers so deeper layers stay close to a plain shortcut.

The gains are small. On GPT-2-style models of 45 million to 360 million parameters, cmHC's validation loss was 0.0024 to 0.0073 lower than mHC-lite, a lighter mHC variant. In a 6-billion-parameter mixture-of-experts run, training loss was 0.002 below mHC's, and in a 300-billion-parameter run it was 0.0157 lower. The paper reports loss, not scores on downstream tasks. Fused operators the team wrote for Huawei's Ascend 910C chips cut the hyper-connection latency by up to 44.8% against mHC, at the smallest hidden size tested; the gain fell to 24.1% at the largest. The [code](https://github.com/Newiz430/cmHC) is out under the Apache 2.0 license.

**DeepCrossAttention.** Google's approach, [DeepCrossAttention](https://arxiv.org/abs/2502.06785) or DCA, goes further. Each layer attends across all earlier layers, the way standard attention looks across words, and mixes them with weights that depend on the input. The post says DCA adds under 0.2% to model size. On the LM1B dataset, a standard transformer needed 42 layers to get perplexity (a measure of how surprised the model is by text, lower is better) under 14, while DCA reached a lower perplexity with 30. The post says DCA matched standard transformers in up to five times fewer training steps, though the paper's abstract says up to three times faster, and the post does not explain the gap. The tests used models far smaller than frontier systems, and the post gives no wall-clock timings.

## What to make of it

The plain residual connection has lasted more than ten years because it is free and it works. All three newer methods keep it as their starting point and add learned mixing on top, and all of them report gains in loss or training speed on models well below frontier size. Whether those gains hold up in the largest models, and are worth the extra memory traffic, is the open question.

## Frequently asked questions

### Is a residual connection the same as a skip connection?

Mostly, yes. The ResNet paper calls them shortcut connections that skip one or more layers; a residual connection is the kind whose output is added to the layer's output, giving F(x) + x.

### Why do transformers use residual connections?

The 2017 Transformer paper wraps every attention and feed-forward sub-layer in one, computing LayerNorm(x + Sublayer(x)). Each block then adds a change to a running signal instead of replacing it, which keeps deep stacks trainable.

### Do residual connections add parameters?

A plain identity shortcut adds no parameters and no computation, according to the ResNet paper. Newer variants add a little: Google says DeepCrossAttention adds under 0.2% to model size, and Hyper-Connections added about 0.033% to OLMo-1B but raised memory use by 26.1%.

## Sources

- [Deep Residual Learning for Image Recognition](https://arxiv.org/abs/1512.03385), arXiv (He et al., Microsoft Research)
- [Attention Is All You Need](https://arxiv.org/abs/1706.03762), arXiv (Vaswani et al., Google)
- [Hyper-Connections](https://arxiv.org/abs/2409.19606), arXiv (Zhu et al., ByteDance)
- [mHC: Manifold-Constrained Hyper-Connections](https://arxiv.org/abs/2512.24880), arXiv (Xie et al.)
- [cmHC: Balancing Stream Mixing in Hyper-Connections via Geometric Contraction](https://arxiv.org/abs/2611.27193), arXiv (He et al.)
- [cmHC code repository](https://github.com/Newiz430/cmHC), GitHub
- [Supercharging transformer residual connections](https://research.google/blog/supercharging-transformer-residual-connections/), Google Research
- [DeepCrossAttention: Supercharging Transformer Residual Connections](https://arxiv.org/abs/2502.06785), arXiv (Heddes et al., Google)
