# ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoders

Masked pre-training with a new layer lets pure ConvNets match transformers on recognition

Sanghyun Woo, Shoubhik Debnath, Ronghang Hu, Xinlei Chen, Zhuang Liu, In So Kweon and 1 more · arXiv · 2023-1-2

- **Problem** Masked autoencoders were built for transformers, whose encoder skips masked patches entirely. Convolutions cannot skip them easily, so simply combining masked pre-training with ConvNeXt gave subpar performance.
- **Method** ConvNeXt V2 pre-trains ConvNeXt with a fully convolutional masked autoencoder. Sparse convolutions run only on visible pixels, and a new Global Response Normalization layer is added to each block to counter feature collapse.
- **Results** ConvNeXt V2-B pre-trained this way reached 84.6 top-1 on ImageNet-1K, against 83.8 for supervised ConvNeXt V1-B trained for 300 epochs.

## Why masked pre-training does not transfer directly to ConvNeXt

Masked autoencoders became popular for vision largely because the encoder can skip the masked patches entirely, so most of the compute goes to visible content and pre-training stays cheap.

Learnable mask tokens inserted at the input are a common workaround for convolutions, but they exist during pre-training and disappear at test time, which creates a mismatch that becomes worse as the masking ratio rises. The model can also learn shortcuts that copy content from the masked regions into the visible ones, which is hard to prevent when the 2D image structure has to stay intact.

Training a ConvNeXt directly on masked input gave mixed results: the learned features beat the baseline, but fine-tuning still fell short of the transformer-based model. Feature analysis pointed to feature collapse in the MLP layers as a likely cause, which motivates both the architecture change and the pre-training change discussed next.

## Fully convolutional masked autoencoder

The mask is drawn at the coarsest stage of the hierarchy, where features are downsampled, and then upsampled step by step to the finest resolution. In practice 60% of the 32×32 patches are removed at random from the input image, and the only augmentation is random resized cropping.

The masked image is treated as a two-dimensional sparse array of pixels, so the encoder's standard convolutions are replaced by submanifold sparse convolutions that run only on visible points. The sparse layers become ordinary dense convolutions at fine-tuning time, so the fine-tuned network needs no special handling. An equivalent route applies binary masks before and after a dense convolution; it gives the same numbers, costs more compute, and suits TPUs better.

The decoder is one plain ConvNeXt block with a width of 512, so the encoder stays heavier than the decoder, which keeps the design asymmetric. The reconstruction target is the patch-wise normalized original image, and the mean squared error is computed only on the masked patches. In the decoder ablation, the single block matched the fine-tuning accuracy of the UNet with skip connections (83.7) while the reported wall-clock time fell from 12.9 hours to 7.7 hours, a 1.7× speedup over that baseline.

The ablations use a ConvNeXt-Base encoder pre-trained on ImageNet-1K for 800 epochs and fine-tuned for 100 epochs, with top-1 accuracy measured on a single 224×224 center crop. Removing sparse convolution from the masked pre-training drops ConvNeXt-Base from 83.7 to 79.3, which indicates that blocking information from the masked region matters for the learned representation.

## Feature collapse and the GRN layer

Activation maps from an FCMAE-pre-trained ConvNeXt-Base contain many dead or saturated feature maps, and activations repeat across channels, mostly in the dimension-expansion MLP layers. Without the masked pre-training, the supervised 100-epoch baseline reached 82.7, FCMAE reached 83.7, and the 300-epoch supervised model from the original ConvNeXt paper reached 83.8, so FCMAE improves on the short baseline but does not catch the longer supervised run.

To measure this, the average pairwise cosine distance between channel feature maps is computed for each layer, using 1,000 ImageNet-1K validation images from different classes. Higher distance means more diverse features, and lower distance means redundancy; the quantity is written as \\\\\[ \\\\frac{1}{C^2}\\\\sum\_{i}\\\\sum\_{j}\\\\frac{1-\\\\cos(X\_i,X\_j)}{2} \\\\\] over the channels of the activation tensor.

The FCMAE-pre-trained ConvNeXt V1 shows severe collapse across layers, while the supervised model loses diversity mainly in its final layers.

The GRN design borrows from lateral inhibition in the brain, where neighbouring neurons sharpen each other's responses; in deep learning this role is played by response normalization, which the paper uses to raise contrast and selectivity across channels. The first step aggregates each channel's H×W map into one number with the L2-norm, giving a vector of C values; the paper finds this works better than global average pooling.

The second step applies divisive normalization, so each channel's norm is divided by the sum of all channel norms, \\\\\[ N(\\\\lVert X\_i\\\\rVert)=\\\\frac{\\\\lVert X\_i\\\\rVert}{\\\\sum\_{j}\\\\lVert X\_j\\\\rVert} \\\\\]; the paper also multiplies this value by the channel count C in practice to account for wider deeper layers. The third step calibrates the input, \\\\\[ X\_i = \\\\gamma\\\\, X\_i\\\\, N(G(X)\_i) + \\\\beta + X\_i \\\\\], where gamma and beta are learnable and start at zero and a residual connection carries the input through, so the layer begins as an identity map.

The core unit has no learnable parameters, and the reference pseudocode for it is three lines long.

## What the GRN ablations show

Under ConvNeXt-Base with FCMAE pre-training, the aggregation choice gives 83.7 for global average pooling, 84.3 for L1, and 84.6 for L2. Among normalization operators, the divisive form gives 84.6, standardization gives 84.5, and dividing by the sum of norms alone gives 83.8. Keeping the residual connection gives 84.6, while dropping it gives 84.0.

Replacing the normalization with other layers gives LRN 83.2, BN 80.5, LN 83.8 and GRN 84.6, against a baseline of 83.7. The authors attribute the weaker layers to missing global context in LRN, which only contrasts nearby channels, and to BN normalizing across the batch, which they consider unsuitable for masked inputs.

Removing GRN at fine-tuning drops the accuracy from 84.6 to 78.8, and adding a newly initialized GRN only at fine-tuning gives 80.6, so the layer has to be present during both stages. A component analysis on ConvNeXt V2-Base shows that using the spatial L2-norm aggregation alone or the channel division alone reaches 83.9, and that the full combination reaches 84.6; the version that normalizes without aggregation was unstable.

## ImageNet-1K results after co-design

In the Table 3 comparison at 800 epochs, the V1 backbone with FCMAE gives 83.7 for Base and 84.4 for Large, a small change from the supervised 83.8 and 84.3. Moving to ConvNeXt V2 with supervised training gives 84.3 for Base and 84.5 for Large, while V2 with FCMAE gives 84.6 for Base and 85.6 for Large. The gain from the V2 FCMAE combination is +0.8 for Base and +1.3 for Large relative to the V1 supervised model, so the gain grows with model size in this comparison.

ConvNeXt V2-B pre-trained with FCMAE reaches 84.6 top-1, above the 83.8 of the supervised ConvNeXt V1-B trained for 300 epochs. The appendix table reports 84.9 for ConvNeXt V2-B and 85.8 for ConvNeXt V2-L with FCMAE, which match the 1600-epoch rows of the comparison table rather than the 800-epoch values above.

Across eight sizes from Atto to Huge, the appendix table reports ConvNeXt V1 supervised against ConvNeXt V2 with FCMAE: 75.7 to 76.7 for Atto, 77.5 to 78.5 for Femto, 79.5 to 80.3 for Pico, 80.8 to 81.9 for Nano, 82.1 to 83.0 for Tiny, 83.8 to 84.9 for Base, 84.3 to 85.8 for Large.

## Comparison with masked models built for transformers

In the Table 4 comparison with IN-1K pre-training data, ConvNeXt V2-B with FCMAE at 800 epochs reaches 84.6, above Swin-B with SimMIM at 84.0 and ViT-B with BEiT at 83.2. ConvNeXt V2-L at 800 epochs reaches 85.6, above Swin-L with SimMIM at 85.4, and ConvNeXt V2-H at 800 epochs reaches 85.8, above Swin V2-H with SimMIM at 85.7.

In the Huge regime ConvNeXt V2-H reaches 85.8 at 800 epochs and 86.3 at 1600 epochs, against 86.9 for ViT-H with MAE at 1600 epochs. The authors suggest that a huge ViT benefits more from self-supervised pre-training, and that the gap may close with the intermediate fine-tuning described next.

## ImageNet-22K intermediate fine-tuning and the Huge model

The pipeline has three steps: FCMAE pre-training, supervised fine-tuning on ImageNet-22K, and fine-tuning on ImageNet-1K, with 384 by 384 images for pre-training and fine-tuning. Among the architectures compared in Table 5, the ConvNeXt V2-H at 384 reaches 88.7 and at 512 reaches 88.9, above MViTV2-H at 88.8 and MaxViT-XL at 88.7. The authors state that 88.9 is the highest accuracy among methods that use only public data, namely ImageNet-1K and ImageNet-22K.

## COCO object detection with Mask R-CNN

Mask R-CNN is fine-tuned on COCO and evaluated on val2017 with box AP and mask AP; the table separates the V1 and V2 backbones, their supervised and FCMAE initializations, and the Swin baselines. At Base size, ConvNeXt V2-B with FCMAE reaches 52.9 box AP at 486G FLOPs, while Swin-B with SimMIM reaches 52.3 at 497G FLOPs. At Huge size, ConvNeXt V2-H with FCMAE reaches 55.7 box AP, against 54.4 for Swin V2-H with SimMIM; the Huge detector uses 2525G FLOPs, a much larger compute budget than the rest of the table.

The V1 to V2 step and the supervised to FCMAE step each add a gain, and the best numbers appear only when both are applied.

## ADE20K semantic segmentation

With UperNet at 512 by 512 input, ConvNeXt V2-H with FCMAE reaches 55.0 mIoU, against 54.2 for Swin V2-H with SimMIM. ConvNeXt V2-B with FCMAE reaches 52.1 mIoU, slightly below Swin-B with SimMIM at 52.8, while ConvNeXt V2-L with FCMAE reaches 53.7 mIoU, slightly above Swin-L at 53.5. With ImageNet-22K fine-tuning and a 640 input, ConvNeXt V2-H reaches 57.0 mIoU at 5113G FLOPs.

The segmentation models start from ImageNet-1K supervised fine-tuned weights rather than from the self-supervised weights, because the authors found that initialization gives better results. Training uses 512×512 crops, and inference uses multi-scale testing at five resolutions of 512×2048.

## Masking ratio and sparse encoding cost

In the masking ratio sweep with 32×32 masks, a ratio of 0.6 gives the best ImageNet-1K accuracy, and the range from 0.5 to 0.7 gives the best results. Accuracy falls at both extremes, when most of the input is removed or when only a small fraction is removed.

Averaged across models, sparse convolution raised training throughput by about 1.3× and lowered maximum memory by about 2×, with the gap larger for bigger models. These benchmark numbers were measured on a separate run that simulated masked input, and they are not the accuracy results of the trained checkpoints. The authors note that the sparse convolution libraries are not highly optimized for current hardware, so the speed gain depends on the framework used.

## Class selectivity of deep features

The class selectivity index measures how far the highest class-conditional mean activity lies above the others, and it is normalized to lie between 0 and 1. The distributions of V1 and V2 match in the early stages and diverge in deeper layers, starting around stage 3 layer 12. V2 is bimodal and includes more class-generic features than V1, which is unimodal.

The authors connect this to prior work treating class-agnostic features as more transferable, and suggest it may explain the better fine-tuning results, leaving the deeper study to future work.

## Comparison with contrastive learning

Using MoCo V3 and FCMAE with the same ConvNeXt V2-Base encoder, each under its default recipe, the table reports 84.3 for the 300-epoch supervised baseline, 83.7 for MoCo V3, and 84.9 for FCMAE. FCMAE is therefore higher than both MoCo V3 and the supervised baseline in this comparison, and the authors read this as consistent with masked image modeling giving better end-to-end fine-tuning than contrastive pre-training.

## Limitations

The ablation studies use ConvNeXt-Base with FCMAE pre-training on ImageNet-1K only, so the component effects are measured on that one backbone. The Huge model's comparison with MAE-pre-trained ViT-H mixes 800-epoch ConvNeXt V2 numbers with 1600-epoch ViT numbers, and the authors leave the gap open. The ADE20K results start from supervised ImageNet-1K weights, so they do not isolate the effect of self-supervised pre-training on segmentation.

The speed and memory benefit of sparse encoding comes from one controlled benchmark on one GPU setup, and the accuracy experiments do not test it. The authors leave further study of the class-generic feature finding to future work.

## Paper info

- **Authors**: Sanghyun Woo, Shoubhik Debnath, Ronghang Hu, Xinlei Chen, Zhuang Liu, In So Kweon, Saining Xie
- **Venue**: arXiv · Preprint
- **First published**: 2023-1-2
- **Added**: 2026-11-12
- **Updated**: 2023-1-2
- **Version**: v1
- **arXiv**: 2301.00808
- **Category**: cs.CV
- **Original paper terms**: [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2301.00808v1) · [PDF ↗](https://arxiv.org/pdf/2301.00808v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Sanghyun Woo, Shoubhik Debnath, Ronghang Hu, Xinlei Chen, Zhuang Liu, In So Kweon, Saining Xie (2023). ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoders. arXiv:2301.00808v1. https://arxiv.org/abs/2301.00808v1

**BibTeX**

```
@misc{woo2023convnext,
  title = {{ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoders}},
  author = {Sanghyun Woo and Shoubhik Debnath and Ronghang Hu and Xinlei Chen and Zhuang Liu and In So Kweon and Saining Xie},
  year = {2023},
  eprint = {2301.00808},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.00808v1}
}
```

## Other paper commentary

- [Person Re-identification by Local Maximal Occurrence Representation and Metric Learning](https://refivu.com/en/papers/ce1c4e84-0a27-40a3-8d69-3dc923b2cf52-person-re-identification-by-local-maximal-occurrence.md)
- [UNITER: UNiversal Image-TExt Representation Learning](https://refivu.com/en/papers/c2b71a61-22ad-48f9-af71-922539fd9eab-uniter-universal-image-text-representation-learning.md)
- [Learning Face Representation from Scratch](https://refivu.com/en/papers/c66cea99-ee67-42f0-85f5-a773fc796f34-learning-face-representation-from-scratch.md)
- [Learning deep representations by mutual information estimation and maximization](https://refivu.com/en/papers/0ecc4e49-5a6d-49c7-a22d-0464db0ce259-learning-deep-representations-by-mutual-information.md)
- [Digging Into Self-Supervised Monocular Depth Estimation](https://refivu.com/en/papers/501b9eb4-7fd4-43f0-8b68-eaaf0aab3b71-digging-into-self-supervised-monocular-depth-estimation.md)
- [Unsupervised Representation Learning by Predicting Image Rotations](https://refivu.com/en/papers/44e2c7d7-5798-499b-99ea-bd1b30e157b3-unsupervised-representation-learning-by-predicting-image.md)
- [Deeper Depth Prediction with Fully Convolutional Residual Networks](https://refivu.com/en/papers/4ef3d92a-82ea-4f76-8b77-ec72d726dd77-deeper-depth-prediction-with-fully-convolutional-residual.md)
- [Deep Learning for Sensor-based Activity Recognition: A Survey](https://refivu.com/en/papers/2047ba14-2bcc-42f2-a0fe-57280553acee-deep-learning-for-sensor-based-activity-recognition-a.md)
- [Attention-Based Models for Speech Recognition](https://refivu.com/en/papers/3c2117c0-4216-4c2d-8001-0377fd293004-attention-based-models-for-speech-recognition.md)
- [A Comprehensive Survey of Graph Embedding: Problems, Techniques and Applications](https://refivu.com/en/papers/ec23e11b-6984-4611-aa20-93a65865b536-a-comprehensive-survey-of-graph-embedding-problems.md)
- [Learning Fine-Grained Bimanual Manipulation with Low-Cost Hardware](https://refivu.com/en/papers/8d8af879-da03-4506-b5c4-b0f829b285cf-learning-fine-grained-bimanual-manipulation-with-low-cost.md)
- [ResNeSt: Split-Attention Networks](https://refivu.com/en/papers/7bce75cd-ce67-4d10-8c3b-89c0b6a895bd-resnest-split-attention-networks.md)

## Terms in this paper

- [Object detection](https://refivu.com/en/terms/113bfdb14049-object-detection)
- [COCO](https://refivu.com/en/terms/41f3215c4f4a-coco)
- [Top-1 accuracy](https://refivu.com/en/terms/653c0b9eaa58-top-1-accuracy)
- [mIoU](https://refivu.com/en/terms/901dcc5384c2-miou)
- [Mask R-CNN](https://refivu.com/en/terms/6da881f24c0c-mask-r-cnn)
- [ImageNet-1K](https://refivu.com/en/terms/d8d6444bd460-imagenet-1k)
- [ImageNet-22K](https://refivu.com/en/terms/8baf67d92a09-imagenet-22k)
- [ImageNet classification](https://refivu.com/en/terms/16ecf59e2761-imagenet-classification)
- [feature collapse](https://refivu.com/en/terms/a72fd4a36c93-feature-collapse)
- [L2-Norm](https://refivu.com/en/terms/010633642ec4-l2-norm)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/d6599a02-0aa8-4eec-a1c3-2bdc45716f23-convnext-v2-co-designing-and-scaling-convnets-with)
