All models

resnetrs350

ResNets re-trained and re-scaled to match EfficientNet accuracy at 1.7x to 2.7x the TPU speed.

Image classification · 2,231 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

This diagram has 2,231 operations (1.1 MB) and is drawn when you ask.

Open in a new tab

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

Parameters
164M
Operations
2,231
Framework
PyTorch
Recurrent
No
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m8888
Graph hash
052f1132e3a8c9d08ff95742a43fc6029d1e311ddd5392b81a58b12fc331e1af
Skeleton hash
da08dda122e8f9e3957f6e9e25b3a6d225b3f7231b10318e9457dca8eccff491
Architecture hash
25b9699814387ef4b8f6240c2813aca8e3989f17f6f304351d640f59422f7459
Diagram SHA-256
97ed0857bef9a5a75f84591cc69edfe85568f57aef481e8b79b94fbf3213d404
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

timm.create_model('resnetrs350', pretrained=False)

What it is

About this model's family

ResNet-RS is a family of re-scaled ResNets whose point is that training and scaling strategies may matter more than architectural changes. The authors revisit the canonical ResNet to disentangle architecture from training and scaling, since the impact of the model architecture is often conflated with simultaneous changes to training methodology and scaling strategies. With improved training and scaling, ResNet-RS models are 1.7x to 2.7x faster than EfficientNets on TPUs while achieving similar accuracies on ImageNet.

Architecturally the change is small: the ResNet-D modification and Squeeze-and-Excitation in all bottleneck blocks. ResNet-D replaces the 7 by 7 stem convolution with three smaller 3 by 3 convolutions, following InceptionV3. In downsampling blocks the stride-2 1 by 1 shortcut convolution becomes a stride-2 2 by 2 average pool followed by a non-strided 1 by 1 convolution. Squeeze-and-Excitation reweighs channels via cross-channel interactions, at a ratio of 0.25 in all experiments.

In the additive study, the baseline ResNet-200 gets 79.0% top-1 and improves to 82.2% through improved training methods alone. Adding Squeeze-and-Excitation and ResNet-D lifts it to 83.4%, so training methods alone cause three quarters of the total improvement. The scaling rules: scale depth where overfitting can occur, width otherwise, and increase image resolution more slowly than previously recommended. In timm, resnetrs50 through resnetrs420 follow this paper, with pretrained weights sourced from the TensorFlow TPU repository. FLOPs are a poor proxy on accelerators: a ResNet-RS model with 1.8x more FLOPs than EfficientNet-B6 is 2.7x faster on a TPUv3.

Key idea. Modern training methods and better scaling rules, not a new architecture, lift the canonical ResNet to EfficientNet-level ImageNet accuracy at 1.7x to 2.7x the speed on TPUs.

  • resnetrs
  • resnet-rs
  • resnet rs
  • revisiting resnets
  • resnetrs50
  • resnetrs101
  • resnetrs152
  • resnetrs200
  • resnetrs270
  • resnetrs350
  • resnetrs420
  • resnet
  • image classification

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.