All models

nfnet_l0

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
35.1M
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
m7733
Graph hash
ac47f0a395a698a5de68364a35aa774678ab5268c1f1ad4a0fa9e74c6b621eb9
Skeleton hash
aeeb3c2b5067973d92c893ffee3d5558b12439a9c8076601affbbd8ec585fd96
Architecture hash
6278b7fb55345e3b52ccec0afe040f4b7ee6ea3259a51d8b9c93a2d69e58d712
Diagram SHA-256
72067f68aa52392f6d6b2869c9faeeebf14abc9382b5c763d0df41b2850c937a
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_l0', pretrained=False)

What it is

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}, 
}