# ResNet (residual network)

> Canonical: https://skillalmanac.com/glossary/resnet | Last verified: 2026-11-24 | Index status: not offered to search engines

ResNet, short for residual network, is a neural network design that adds skip connections so each layer learns a residual function relative to its input. The 2015 paper by He et al. used it to train very deep image-recognition networks.

Also called: ResNet, residual network, resnet 50, residual neural network, ResNets.

## In plain language

A ResNet is a type of image-recognition network that is built so that very deep stacks of layers can still be trained. Each block gets a shortcut that passes its input forward, so the block only has to learn what to change, not rebuild the whole picture. Think of editing a draft instead of rewriting it from scratch. A ResNet recognises patterns in pictures it learned from labelled examples. It does not understand what it sees, and it can fail on images unlike its training data.

## Technical definition

He, Zhang, Ren and Sun (arXiv 1512.03385, submitted 10 December 2015) propose a residual learning framework: instead of learning an unreferenced function, layers learn a residual function with reference to the layer input. The abstract reports that such networks are easier to optimize and gain accuracy from greater depth, evaluates networks up to 152 layers on ImageNet, and says the work won first place in the ILSVRC 2015 classification task. The Stanford CS231n notes describe ResNet as using special skip connections (the shortcut connections that carry a block's input forward) and heavy use of batch normalization.

## How it shows up when you use agents

You are unlikely to meet a ResNet inside Claude Code or Codex. It is an image model, and coding agents mostly work with text. It shows up indirectly: a library, a vision pipeline or a model hub entry may name a ResNet as the backbone, and the name is often followed by a layer count such as 50. When an agent writes or reviews code that loads one, the name tells you the architecture, not the training data or the quality.

The idea behind it is still useful. Skip connections pass a layer's input forward past the layer, which is the paper's way of making depth easier to train. A ResNet belongs to the family of [convolutional neural networks](/glossary/convolutional-neural-network) used in [computer vision](/glossary/computer-vision).

What breaks when it is misunderstood: people assume that a model named ResNet is a ready-made product, or that a deeper one is better for their task. The paper reports gains from depth on its own tests. Your images may differ.

Next action: when an agent proposes a ResNet, ask which weights it loads, what they were trained on, and how it will be checked on your own images. The catalogue's [huggingface-datasets](/skills/huggingface/huggingface-datasets) skill can help inspect a dataset first.

## Common confusions

- **ResNet versus a CNN.** A ResNet is one design of convolutional network. The skip connections are what set it apart.
- **ResNet-50 versus ResNet.** The number after the name usually refers to a specific depth. The paper itself evaluates several depths up to 152 layers.
- **Architecture versus weights.** The design is a recipe. A trained model also needs weights learned from data, and those decide what it can recognise.
- **Myth.** Residual means the network remembers earlier inputs over time. The skip connection passes a layer's input forward within one pass. It is not memory like a recurrent network.

## Worked examples in this catalogue

### [huggingface-datasets](https://skillalmanac.com/skills/huggingface/huggingface-datasets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Reads Hugging Face datasets through the Dataset Viewer API: metadata, rows, search and filters.

Why it exercises the concept: Image models such as ResNets are trained and tested on labelled datasets. This skill lets an agent inspect a dataset's rows, but the catalogue has no skill that trains or runs a ResNet.

### [image-spec-check](https://skillalmanac.com/skills/skill-almanac/image-spec-check)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Checks exported images against your own spec table and says exactly what to resize, crop, re-export or replace.

Why it exercises the concept: This is an adjacent file check on image exports, not a ResNet tool.

### [alt-text-writer](https://skillalmanac.com/skills/skill-almanac/alt-text-writer)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Writes and checks image alt text and long descriptions in HTML and Markdown, per image function.

Why it exercises the concept: A ResNet labels an image with a category. Alt text describes the image's purpose to a reader. The contrast shows what a classifier does and does not give you.

## Related terms

- [Convolutional neural network (CNN)](https://skillalmanac.com/glossary/convolutional-neural-network.md)
- [Deep learning](https://skillalmanac.com/glossary/deep-learning.md)
- [Neural network](https://skillalmanac.com/glossary/neural-network.md)
- [Computer vision](https://skillalmanac.com/glossary/computer-vision.md)
- [Image classification](https://skillalmanac.com/glossary/image-classification.md)
- [Vanishing gradient problem](https://skillalmanac.com/glossary/vanishing-gradient.md)

## Sources

- [Deep Residual Learning for Image Recognition](https://arxiv.org/abs/1512.03385), arXiv (He et al.) (accessed 2026-11-24)
- [CS231n: Convolutional Neural Networks for Visual Recognition](https://cs231n.github.io/convolutional-networks/), Stanford CS231n course notes (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
