
tresnet_v2_l
Image classification743 ops46.2M params
A ResNet50 reworked for real GPU throughput rather than FLOP counts, reaching 80.8% ImageNet top-1.
Image classification · 447 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
timm.create_model('tresnet_m', pretrained=False) This is TResNet-M, the variant sized to match ResNet50's GPU throughput, listed at 29.4M parameters.
About this model's family
TResNet is a family of ResNet-style image classifiers designed around what actually runs fast on a GPU rather than around FLOP counts. The authors' starting observation is that many newer networks beat ResNet50 on ImageNet with fewer FLOPs, yet plain ResNet50 is usually much faster when you measure real GPU training and inference throughput. They trace much of the gap to depthwise and 1x1 convolutions, which cut FLOPs but leave GPUs bound by memory access cost rather than arithmetic.
The design starts from ResNet50 and layers on a specific set of refinements: a SpaceToDepth stem, economical anti-alias downsampling, In-Place Activated BatchNorm, a block-type selection redesign and optimized squeeze-and-excitation (SE) layers. The stem replaces ResNet50's convolution and max pool with a SpaceToDepth layer that rearranges blocks of spatial data into depth, followed by a single convolution to set the channel count. Instead of ResNet's uniform block type, the first two stages use BasicBlock layers for their larger receptive field and the last two use Bottleneck layers. Every BatchNorm plus ReLU pair is replaced by an Inplace-ABN layer, which fuses normalization and activation into one in-place operation to save training memory. Inside it the activation is Leaky-ReLU rather than plain ReLU, which the authors report gives TResNet better accuracy. Downsampling is anti-aliased economically: stride-2 convolutions become stride-1 convolutions followed by a 3x3 blur filter with stride 2. SE blocks appear only in the first three stages, since the low-resolution last stage gains little from them.
Among the code optimizations, dedicated in-place operations gave the biggest boost, improving throughput and raising the maximal batch size. The models were trained on ImageNet at resolution 224 for 300 epochs with SGD and a 1-cycle policy. Three variants, TResNet-M, TResNet-L and TResNet-XL, differ only in depth and channel count. TResNet-M matches ResNet50's GPU throughput and reaches 80.8% top-1 against ResNet50's 79.0%. A short fine-tune at 448 resolution lifts TResNet-M to 83.2% and the largest variant, TResNet-XL, to 84.3%. Beyond ImageNet, the authors report transfer results on Stanford Cars (96.0%), CIFAR-10 (99.0%), CIFAR-100 (91.5%) and Oxford-Flowers (99.1%). Swapping ResNet50 for TResNet-M as the FCOS backbone raised COCO detection mAP from 42.8 to 44.0.
Key idea. A carefully selected set of GPU-aware refinements to ResNet50: a SpaceToDepth stem, economical anti-alias downsampling, Inplace-ABN, a block-type selection redesign and optimized SE layers. Combined with code optimizations, they lift ImageNet top-1 from ResNet50's 79.0% to 80.8% at similar GPU throughput.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{ridnik2020tresnethighperformancegpudedicated,
title={TResNet: High Performance GPU-Dedicated Architecture},
author={Tal Ridnik and Hussam Lawen and Asaf Noy and Emanuel Ben Baruch and Gilad Sharir and Itamar Friedman},
year={2020},
eprint={2003.13630},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2003.13630},
}