All models

nfnet_f0

DeepMind's normalizer-free ResNets: no batch norm, adaptive gradient clipping, fast training.

Image classification · 547 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

Loading diagram (25 KB)

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

Family
NFNet
Parameters
71.5M
Operations
547
Framework
PyTorch
Recurrent
No
Published
2021
Cited by
398 (as of 15 November 2026)
Authors
Andrew Brock, Soham De, Samuel L. Smith, Karen Simonyan
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
m7725
Graph hash
e864bc0504acafe791e9c9a0e31e64fd36d5a1a8b1a26b633c84b546c22026ff
Skeleton hash
8e5ed5d157dd8905f6627cc78e65bb85b59e3fe8a6500920c37ae84e6e3b3689
Architecture hash
6c29abd5443b1647eb7d671fe051a42bc72a313e3f6372757fa766cceeee0957
Diagram SHA-256
b0091d137e1d536e26352c390414fbcecac15a6774d5cc15858a55b63a4e7890
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('nfnet_f0', pretrained=False)

What it is

NFNet-F0, the smallest variant, with depth pattern [1, 2, 6, 3].

About this model's family

NFNets are image classifiers that drop batch normalization entirely and still match or beat the accuracy of the best batch-normalized models on ImageNet. The authors' case against batch normalization is practical rather than theoretical, and they list three disadvantages. The one they call most important is that it breaks the independence between training examples in a minibatch.

The first ingredient is Adaptive Gradient Clipping, which clips each unit's gradient when the ratio of its gradient norm to its parameter norm grows too large. That clipping lets the unnormalized networks train stably at batch sizes up to 4096 and with strong augmentation such as RandAugment, where earlier normalizer-free ResNets failed to train. The second ingredient is the architecture, which starts from an SE-ResNeXt-D with GELU activations, a surprisingly strong baseline for normalizer-free networks. The best single block change was an extra 3x3 grouped convolution after the first one in each bottleneck. Stage depths follow the pattern [1, 2, 6, 3], and deeper variants multiply each stage's depth by a scalar. Widths are [256, 512, 1536, 1536], putting extra capacity in the third stage instead of doubling into the fourth.

Each variant is scaled so that it trains about half as fast as the one before, by deepening the stages and raising the training resolution. Images are evaluated at inference about 33% larger than the resolution they were trained at, with no fine-tuning at the larger size. Because the models lack batch normalization's implicit regularization and otherwise overfit badly, the Dropout rate is scaled up with model capacity rather than weight decay or stochastic depth. NFNet-F1 matches the 84.7% top-1 of EfficientNet-B7 while training 8.7 times faster. In timm the family appears twice, and the dm_ prefixed members are the ones marked DeepMind weight compatible. One quirk worth knowing: the larger F4 and F5 variants would not train stably with batch normalization at all, which the authors attribute to bfloat16 precision interacting badly with batch statistics.

Key idea. Adaptive Gradient Clipping, which stabilizes large-batch training of unnormalized networks with strong data augmentation. Combined with a redesigned normalizer-free backbone, it yields models that reach state-of-the-art ImageNet accuracy without extra data while training substantially faster than competing approaches.

  • nfnet
  • NFNet-F0
  • NFNet-F1
  • dm_nfnet_f0
  • nfnet_f0
  • nfnet_l0
  • normalizer-free resnet
  • adaptive gradient clipping
  • AGC
  • no batch normalization
  • deepmind
  • image classification
  • timm

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

Cite the paper

@misc{brock2021highperformancelargescaleimagerecognition,
      title={High-Performance Large-Scale Image Recognition Without Normalization}, 
      author={Andrew Brock and Soham De and Samuel L. Smith and Karen Simonyan},
      year={2021},
      eprint={2102.06171},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2102.06171}, 
}