# ConvNeXt (2022)

> Modernize a ResNet one design choice at a time, and a pure ConvNet matches Swin Transformers without any attention.

Page: https://mralbu.github.io/ai-datasets/p/convnext

## Key facts

- Title: A ConvNet for the 2020s
- Authors: Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, Saining Xie
- Venue: CVPR 2022
- Category: Vision
- Paper: https://www.alphaxiv.org/abs/2201.03545

## Why it matters

It showed that much of the Transformers' lead in vision came from training and design details, not from attention itself. Convolutions are simpler and faster on most hardware, and ConvNeXt became a common backbone again.

## The idea

Start from ResNet-50 and apply what Transformers brought, one change at a time, measuring each: their training recipe, a new stage ratio, a patchify stem, depthwise convolutions, an inverted bottleneck, 7×7 kernels, GELU, fewer activations and normalizations, LayerNorm.

## The result

ResNet-50 went from 76.1% to 82.0% ImageNet top-1, above Swin-T's 81.3%. At every size ConvNeXt matched or beat Swin on ImageNet, on COCO detection (54.0 box AP against 53.0 for the base models) and on ADE20K segmentation (53.1 mIoU against 51.7).

## The data

- [ImageNet (ILSVRC) (2009)](https://mralbu.github.io/ai-datasets/d/imagenet.md): 1.28 million photos across 1,000 classes, the dataset behind the deep learning boom.
- [MS COCO (2014)](https://mralbu.github.io/ai-datasets/d/coco.md): 330k everyday scenes with 1.5M labeled objects in 80 categories.
- [ADE20K (2017)](https://mralbu.github.io/ai-datasets/d/ade20k.md): 27,000 scenes where every object, and often its parts, is outlined and named.

## Builds on

- [ResNet (2015)](https://mralbu.github.io/ai-datasets/p/resnet.md)
- [Swin (2021)](https://mralbu.github.io/ai-datasets/p/swin.md)

## Part of

- [Vision backbones](https://mralbu.github.io/ai-datasets/t/vision-backbones.md) (step 6 of 6)
