ResNet-original-cifar
A 20-layer residual network for CIFAR-10 image classification, built from 3×3 convolutions and identity shortcuts.
Image classification · 80 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Image classification
- Parameters
- 269.7K
- Operations
- 80
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2016
- Cited by
- 4,192 (as of 23 October 2026)
- Authors
- Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
- License
- BSD-2-Clause
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m2590
- Graph hash
- 6dc368353bad9b71043924e6ce5e560135fd3491dedba19e68980d96c8b2f7f1
- Skeleton hash
- 7ad40e34928015554e48b54a41a88d3aca91ea84cb421ba78944e8f2726f305a
- Architecture hash
- 4f8a9e0ee83f3c23b94311941febf846e0965e7beae6ef693149d88185f76e9e
- Diagram SHA-256
- c612928a0b2e008a7a220ddcf29677a5ad72ad44621892dbcf39e4e237d5b079
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
This is the residual network (ResNet) that its paper built for CIFAR-10, a dataset of 50k training images and 10k testing images in 10 classes. The authors kept the design simple on purpose. Their interest was in how extremely deep networks behave. The paper starts from what it calls the degradation problem: as a network gets deeper, its accuracy levels off and then drops quickly. Its answer is to have each small stack of layers fit a residual mapping. A shortcut connection passes the input through unchanged and adds it to the output of the stacked layers.
The body is a stack of 6n layers of 3×3 convolutions over three feature map sizes (32, 16 and 8), 2n layers per size, with 16, 32 and 64 filters. It ends with global average pooling, a 10-way fully-connected layer and softmax, for 6n+2 weighted layers in total. Setting n = 3 gives the 20-layer network shown on this page; the paper also trains 32, 44 and 56 layers. All shortcuts on CIFAR-10 are identity shortcuts, the paper's option A.
In the paper's CIFAR-10 runs, plain networks without shortcuts show higher training error as they get deeper. The residual versions get more accurate with depth. The authors also trained a 1202-layer version, and its test result was worse than that of the 110-layer network. They suggest it may be unnecessarily large for this small dataset.
Key idea. The paper shows empirically that residual networks are easier to optimize and can gain accuracy from considerably increased depth.
- ResNet
- ResNet-20
- ResNet CIFAR
- CIFAR-10 ResNet
- residual network
- deep residual learning
- shortcut connections
- CIFAR-10
- image classification
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{he2015deepresiduallearningimage,
title={Deep Residual Learning for Image Recognition},
author={Kaiming He and Xiangyu Zhang and Shaoqing Ren and Jian Sun},
year={2015},
eprint={1512.03385},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1512.03385},
}