VanillaNet
A 13-layer image classifier of plain 1 × 1 convolutions with no shortcuts or attention.
Image classification · 114 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
- 107.7M
- Operations
- 114
- Framework
- PyTorch
- Recurrent
- No
- Published
- NeurIPS 2023
- Cited by
- 169 (as of 29 October 2026)
- Authors
- Hanting Chen, Yunhe Wang, Jianyuan Guo, Dacheng Tao
- License
- MIT
- 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
- m21323
- Graph hash
- d3145ab91424bb401a1b617d923969b86c329634ea779a106530383b20750f7e
- Skeleton hash
- 602bbac29231f1b6e118a6494a1aa76dd75a74ad91112ed38b19ee455c2ba2ef
- Architecture hash
- 3fa6b080bb4af38a4ed982145800959f99deff5178da3ab74737a2087b041656
- Diagram SHA-256
- 808c790c502f7b13ec61c9c2441243281289874a6dfa1ec41c144e01e5c70d28
- 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
VanillaNet is an image classification network made of a small number of plain convolutional layers, with no shortcut connections and no self-attention. The paper's argument is that on GPUs with spare computing power, latency follows depth and design complexity more than FLOPs or parameter counts.
The layers are 1 × 1 convolutions, each followed by an activation function and batch normalization, with pooling between stages to shrink the feature map. Because so shallow a network has weak non-linearity, the authors replace the plain activation with a series activation, a learned weighted sum of ReLU outputs taken over neighboring positions. Training also uses what the paper calls deep training: each layer starts as two convolutions with an activation between them, and that activation is gradually reduced to an identity mapping. At the end of training the two convolutions can be merged into one, and this page shows VanillaNet-13 in the training form, before that merge.
The paper reports 82.05% ImageNet top-1 accuracy for VanillaNet-13 with 58.6M parameters and 4.26 ms latency on an Nvidia A100 GPU. In its ablation, adding shortcuts gave little improvement, which the authors attribute to weak non-linearity, not identity mapping, being the limit of such networks.
Key idea. The paper shows that a shallow network of plain convolutions, trained with a deep training strategy and a series activation function, can match deeper networks and vision transformers on ImageNet.
- VanillaNet
- VanillaNet-13
- vanilla network
- minimalism in deep learning
- plain convolutional network
- network without shortcuts
- series activation function
- deep training strategy
- image classification
- ImageNet
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{chen2023vanillanetpowerminimalismdeep,
title={VanillaNet: the Power of Minimalism in Deep Learning},
author={Hanting Chen and Yunhe Wang and Jianyuan Guo and Dacheng Tao},
year={2023},
eprint={2305.12972},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2305.12972},
}