
regnety_120
Image classification459 ops51.8M params
Simple regular ResNet-style networks whose widths follow a quantized line, with squeeze-and-excitation added.
Image classification · 334 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.
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.
How this diagram was made
torchvision.models.get_model('regnet_y_32gf', weights=None) The torchvision RegNetY_32GF builder, the 32GF flop regime.
About this model's family
RegNetY is a family of simple, regular convolutional networks that came out of a different way of doing architecture design: designing the design space itself rather than individual networks. The authors describe this as analogous to classic manual network design, but elevated to the design space level. They start from a loosely constrained space called AnyNet, in which widths and depths vary freely across stages. Progressive simplification, guided by the error distribution of sampled models, arrives at a low-dimensional space of regular networks they call RegNet.
The core insight is that the widths and depths of good networks can be explained by a quantized linear function. Concretely a RegNet is specified by just six parameters: d, w0, wa, wm, b and g, from which block widths and depths are generated. Every network has a stem, a body that does the bulk of the computation, and a head of average pooling followed by a fully connected layer. The body is four stages at progressively reduced resolution, each a sequence of identical blocks. The block is the X block, a standard residual bottleneck with group convolution: a 1x1 conv, a 3x3 group conv and a final 1x1 conv, each followed by BatchNorm and ReLU. The Y in RegNetY stands for X plus Squeeze-and-Excitation, with the SE op added after the 3x3 conv of the X block. In the paper's ablation, RegNetY yields good gains over RegNetX.
Analysing the space turned up findings that cut against common practice: the depth of the best models is stable at about 20 blocks across compute regimes, rather than growing with flops. The best models also use a bottleneck ratio of 1.0, which effectively removes the bottleneck. Inverted bottlenecks and depthwise convolutions, the staples of mobile networks, degrade results in this space. The paper also tracks activations, the total size of all conv output tensors, because they can heavily affect runtime on memory-bound accelerators such as GPUs. Under comparable training settings and flops, RegNet models outperform EfficientNet models while being up to 5x faster on GPUs. RegNetY takes over from EfficientNet at intermediate flops, and both RegNetX and RegNetY lead at higher flops. One curious appendix finding is that Swish beats ReLU for RegNetY at low flops, but ReLU is better at high flops.
Key idea. Designing network design spaces rather than individual networks, which yields RegNet, a family where the widths and depths of good networks follow a quantized linear function. RegNetY adds Squeeze-and-Excitation to the RegNetX block and yields good gains.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{radosavovic2020designingnetworkdesignspaces,
title={Designing Network Design Spaces},
author={Ilija Radosavovic and Raj Prateek Kosaraju and Ross Girshick and Kaiming He and Piotr Dollár},
year={2020},
eprint={2003.13678},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2003.13678},
}