Abstract
While adversarial training (AT) has been extensively studied for ResNet architectures and low-resolution datasets like CIFAR, much less is known about its behavior on ImageNet. Given the recent debate regarding whether Vision Transformers (ViTs) are inherently more robust than convolutional networks (ConvNets), this paper revisits adversarial training on ImageNet by comparing ViTs and ConvNeXts. Through extensive experimentation, the authors demonstrate that minor architectural changes—most notably replacing the standard PatchStem with a convolutional "ConvStem"—and a refined training scheme significantly impact achieved robustness. These modifications not only increase robustness in the seen $\ell_\infty$-threat model but also dramatically improve generalization to unseen $\ell_1$ and $\ell_2$ threat models.
Introduction
Adversarial training remains the most effective defense against adversarial perturbations, yet scaling it to the complexity of ImageNet has proven difficult. Previous research often yielded conflicting conclusions about the robustness of different architectures because models were rarely compared using identical training recipes. This study addresses these discrepancies by systematically exploring the design space of modern architectures, initialization strategies, and data augmentation techniques to establish a new baseline for ImageNet-scale robustness.
Methodology
The authors focus on two primary architecture families: Vision Transformers (ViT) and ConvNeXt. Their approach introduces several key modifications to the standard adversarial training pipeline:
1. The ConvStem Architecture
Standard ViTs and ConvNeXts typically use a "PatchStem" (a single large-stride convolution) to process images into non-overlapping patches. The authors replace this with a ConvStem—a series of small-kernel convolutional layers. While this change adds negligible parameter overhead, it proves critical for the model's ability to generalize across different types of attacks.
2. Initialization and Augmentation
A significant challenge in ImageNet AT is the tendency for models to "collapse" when subjected to heavy data augmentation. To solve this, the authors initialize their adversarial training using weights from high-performing "clean" (normally trained) models. This stable starting point allows for the successful incorporation of heavy augmentations like RandAugment, MixUp, and CutMix, which were previously thought to be detrimental to robust training.
3. Efficient Optimization
For the inner maximization step during training, the authors utilize a 2-step Auto-Projected Gradient Descent (APGD). This provides a superior balance between computational efficiency and the strength of the adversarial examples generated during training compared to standard PGD.
Key Insights
The Generalization Power of Stems
The most striking finding is the impact of the ConvStem on unseen threat models. Models trained specifically against $\ell_\infty$ attacks (pixel-wise constraints) showed massive, unexpected performance gains against $\ell_1$ and $\ell_2$ attacks (total perturbation constraints) when using a ConvStem. This suggests that the local feature extraction provided by convolutions in the early layers is vital for robust representation learning.
The Resolution Paradox
In standard training, higher resolution usually improves accuracy. In adversarial settings, higher resolution increases the attack surface. However, the authors discovered that increasing resolution at test time (e.g., from 224 to 288) consistently improved robust accuracy, even though the models were exclusively trained at a resolution of 224.
ViT vs. ConvNeXt
When evaluated under the same training recipe and equipped with a ConvStem, both architectures perform exceptionally well. ConvNeXt tends to achieve slightly higher robustness in the seen $\ell_\infty$ threat model, while ViT demonstrates superior generalization to unseen threat models.
Results
The study established new State-of-the-Art (SOTA) benchmarks for $\ell_\infty$ robustness on ImageNet (at $\epsilon = 4/255$):
- ConvNeXt-T + ConvStem: Achieved 50.2% robust accuracy, a 5.8% improvement over previous benchmarks for models of similar size.
- ConvNeXt-B + ConvStem: Reached 56.3% robust accuracy.
- Transferability: The robustness gained on ImageNet was shown to be highly transferable; models fine-tuned on other datasets like Flowers-102 or CIFAR-100 maintained their competitive edge.
Conclusion
This research provides a definitive guide for scaling adversarial training to ImageNet. By demonstrating that the choice of stem architecture and the use of clean pre-training are more influential than the choice between Transformer or Convolutional backbones, the authors provide a roadmap for developing more resilient computer vision systems. Future work remains to determine the theoretical underpinnings of why the ConvStem so effectively bridges the gap between different threat models.
Summary updated