[Paper Review] ConvNets Match Vision Transformers at Scale
The paper shows that NFNet ConvNets, pre-trained on JFT-4B, can match Vision Transformers when scaled with comparable compute budgets and fine-tuned on ImageNet, achieving up to 90.4% Top-1 accuracy with repeat augmentation.
Many researchers believe that ConvNets perform well on small or moderately sized datasets, but are not competitive with Vision Transformers when given access to datasets on the web-scale. We challenge this belief by evaluating a performant ConvNet architecture pre-trained on JFT-4B, a large labelled dataset of images often used for training foundation models. We consider pre-training compute budgets between 0.4k and 110k TPU-v4 core compute hours, and train a series of networks of increasing depth and width from the NFNet model family. We observe a log-log scaling law between held out loss and compute budget. After fine-tuning on ImageNet, NFNets match the reported performance of Vision Transformers with comparable compute budgets. Our strongest fine-tuned model achieves a Top-1 accuracy of 90.4%.
Motivation & Objective
- Assess whether ConvNets pre-trained with large-scale data and compute can rival Vision Transformers (ViTs) when evaluated under fair, comparable budgets.
- Characterize scaling laws for NFNet models pre-trained on JFT-4B across varying compute budgets.
- Evaluate ImageNet fine-tuning performance and practical augmentation practices to compare with ViTs.
- Provide practical guidance on optimal model size, epoch budget, and learning rate for scale-aware training.
Proposed method
- Train NFNet models of varying depth and width on JFT-4B for a range of epoch budgets (0.25 to 8) using SGD with Momentum and Adaptive Gradient Clipping.
- Evaluate pre-training compute by estimating steps and reporting log-log scaling between held-out loss and compute.
- Fine-tune pre-trained NFNets on ImageNet for 50 epochs at 384×384 resolution and evaluate at 480×480 using sharpness aware minimization (SAM) with stochastic depth and dropout.
- Compare ImageNet Top-1 results with published ViT results trained on large JFT-like datasets, using pre-training budgets up to 110k TPU-v4 core hours.
- Note: pre-training pipeline mirrors the NFNet architecture and training framework from Brock et al. (2021) with adjustments for ImageNet data handling.
Experimental results
Research questions
- RQ1Do ConvNet architectures pre-trained with web-scale data match Vision Transformers when evaluated with comparable compute budgets?
- RQ2What are the scaling laws (in terms of compute, model size, and epochs) for NFNet models trained on JFT-4B?
- RQ3How does post-pretraining fine-tuning on ImageNet with aggressive augmentation affect performance relative to ViTs?
- RQ4What practical guidelines emerge for selecting model size, epochs, and learning rate as compute budgets increase?
Key findings
- NFNet models exhibit a log-log scaling law between validation loss and pre-training compute on JFT-4B.
- After ImageNet fine-tuning, NFNets achieve performance comparable to pre-trained ViTs with similar compute budgets.
- The strongest NFNet (F7+) reaches 90.4% Top-1 on ImageNet with repeated augmentation during fine-tuning, given substantial pre-training compute.
- Pre-training for 8 epochs on 110k TPU-v4 core hours plus 1.6k TPU-v4 hours for fine-tuning yields 90.3% Top-1; repeated augmentation can push to 90.4%.
- Optimal learning rates around α ≈ 1.6 for small epoch budgets, decreasing gradually for larger models and budgets, enabling efficient tuning across scales.
- The findings suggest that the perceived superiority of ViTs over ConvNets at web scale is not strongly supported when comparing fairly designed models with aligned compute and data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.