Do Image Models Overfit Robustness Benchmarks Like ImageNet-C?

Some methods that climb the ImageNet-C leaderboard gain almost nothing when the test adapts to the model, and a foundation-model check makes that test possible.

By Peiyan Zhang, Haoyang Liu, Haohan Wang, and others · · About our ICLR 2024 paper

Robustness methods for image classifiers are ranked on a handful of fixed test sets, and ImageNet-C, a collection of noise, blur, weather and digital corruptions, is the best known. Fixed sets invite a worry that is easy to state and hard to test: do image models overfit robustness benchmarks, so that a leaderboard gain says more about the benchmark than about the model? Our paper Foundation Model-oriented Robustness: Robust Image Model Evaluation with Pretrained Models, by Peiyan Zhang, Haoyang Liu, Chaozhuo Li, Xing Xie, Sunghun Kim and Haohan Wang (Hong Kong University of Science and Technology, Microsoft Research Asia and University of Illinois Urbana-Champaign), published at ICLR 2024, suggests that some do. Three ResNet-50 methods that raised ImageNet-C accuracy by 6 to 13.4 points moved by less than 1 point on a test that generates new images for each model.

Grouped bar chart for eight ResNet-50 variants comparing ImageNet-C accuracy with Foundation Model-oriented Robustness. Plain ResNet-50 39.20 vs 40.11, SIN 45.19 vs 40.07, ANT 50.41 vs 40.14, ANT+SIN 52.60 vs 40.77, DeepAug 52.60 vs 43.59, AugMix 48.31 vs 50.68, DeepAug+AugMix 58.10 vs 55.56, DAT 68.00 vs 68.66 percent
ImageNet-C accuracy against the dynamic FMR score for ResNet-50 trained with seven robustness methods (data: Table 2 of arXiv:2308.10632).

Key findings

  • In the ICLR 2024 paper Foundation Model-oriented Robustness (Zhang, Liu, Li, Xie, Kim and Wang), Stylized-ImageNet training (SIN) raised a ResNet-50's ImageNet-C accuracy from 39.20% to 45.19%, but its Foundation Model-oriented Robustness (FMR) score was 40.07, slightly below the plain ResNet-50's 40.11.
  • Adversarial noise training (ANT) and ANT+SIN reached 50.41% and 52.60% on ImageNet-C, yet scored an FMR of only 40.14 and 40.77 on the ICLR 2024 paper's dynamic test; Discrete Adversarial Training (DAT) led on both, with 68.00% on ImageNet-C and an FMR of 68.66.
  • On ImageNet, models with similar clean accuracy differed widely in FMR: Swin Transformer scored 67.26 and ViT 48.02, against 40.11 for ResNet-50 (clean accuracy 81.67%, 82.40% and 76.26%; Table 1 of the ICLR 2024 paper).
  • The ICLR 2024 paper's conclusions held when the image generator was swapped among VQGAN, ADM, Improved DDPM, Efficient-VDVAE and StyleGAN-XL: with every generator, a DeepAugment+AugMix ResNet-50 scored an FMR between 53.89 and 56.92, while the SIN model stayed between 40.86 and 42.20 (Table 3).

Why would a model overfit a robustness benchmark?

A robustness benchmark such as ImageNet-C, ImageNet-A or ImageNet-Sketch (the last one built in our own lab) is collected once and then reused for years. Every new method is tuned, selected and published by its score on the same few thousand images. The textbook danger of selecting models on a test set applies: the method that ends up on top may be the one that fits that benchmark's particular corruptions best, not the one that holds up best in the world.

The alternative, perturbing images on the fly, has its own limit. Rotations, texture swaps, frequency filters or small adversarial noise keep the label safe because they are mild by design, but mild changes leave much of the space of possible shifts untested. A large change could test more, but it might also turn a cat into something that is no longer a cat, and then a "mistake" is not a mistake. The paper's question is how to make large, model-specific changes while still knowing the right label.

Key terms

Robustness benchmark
A fixed test set of shifted or corrupted images, such as ImageNet-C, used to compare how well image classifiers hold up outside their training distribution.
ImageNet-C
A benchmark by Hendrycks and Dietterich (ICLR 2019) that applies 15 types of common corruption, such as noise, blur, weather and digital artifacts, at five severities to ImageNet validation images.
Surrogate oracle
A stand-in for a human labeler; here, a panel of large pretrained foundation models that decides whether a perturbed image still shows its original class.
Perturbed accuracy (PA)
The tested model's accuracy on the perturbed images that the generation process produced and the oracle accepted.
Foundation Model-oriented Robustness (FMR)
Perturbed accuracy divided by clean (standard) accuracy, in percent, so that a model is not rewarded or penalized for its clean accuracy alone.
VQGAN
An image generator with a learned latent code; the paper perturbs images by moving this code, which changes style, texture and shape rather than adding pixel noise.

How do you test robustness without a fixed benchmark?

The paper builds a new test set for every model it evaluates. Starting from an ordinary test image, it takes small steps in VQGAN's latent space in the direction that increases the tested model's classification loss. After each step, a panel of foundation models votes on whether the image still shows the original class: OpenAI's CLIP (prompted with "an image of {class}"), CoCa, and an adversarially trained ConvNeXt-T from the RobustBench leaderboard. The majority vote is what keeps the label trustworthy, since CLIP alone has imperfect zero-shot accuracy. The ImageNet runs used a step size of 0.001 and a budget of 50 steps per image; at that step size, the authors report that the oracle accepted every generated image.

Diagram of the evaluation loop: a clean test image is perturbed by VQGAN in the direction that raises the tested model's loss, a panel of CLIP, CoCa and a robust ConvNeXt votes on whether it keeps its label, the step repeats up to a budget of 50, and the kept images give perturbed accuracy and FMR, which is perturbed accuracy divided by clean accuracy
The dynamic evaluation loop of the ICLR 2024 paper (Section 3 and Algorithm 1).

Because the perturbation follows the tested model's own gradient, two models get two different test sets, each aimed at that model's weak spots. That raises a fair question: can scores on different test sets be compared? The paper checks this on CIFAR-10. Images generated against one ResNet were given unchanged to eight other models, and every model's FMR stayed well below its clean accuracy (FMR 54.17 to 70.57 against clean accuracy of 90.91% to 95.38%), with FMR tracking perturbed accuracy on that shared set. So the images are not a quirk of one network, and a static set generated this way could also serve as a conventional benchmark.

Do models that top ImageNet-C hold up on a dynamic test?

The paper took a standard ResNet-50 and seven versions of it trained with methods from the ImageNet-C leaderboard, all with nearly the same clean accuracy, and evaluated them with the dynamic protocol:

ResNet-50 trained withClean accuracyImageNet-C accuracyPerturbed accuracyFMR
Standard training76.2639.2030.5940.11
Adversarial noise training (ANT)76.2650.4130.6140.14
Stylized ImageNet (SIN)76.2445.1930.5540.07
ANT+SIN76.2652.6031.0940.77
DeepAugment76.2652.6033.2443.59
AugMix76.7348.3138.8950.68
DeepAugment+AugMix76.6858.1042.6055.56
Discrete Adversarial Training (DAT)76.5768.0052.5768.66

Accuracy (%) and FMR, from Table 2 of the paper. Three methods stand out. SIN, ANT and ANT+SIN added 6.0, 11.2 and 13.4 points of ImageNet-C accuracy over standard training, but their FMR moved by -0.04, +0.03 and +0.66 points. The authors read this as a sign that these methods are well fitted to ImageNet-C rather than robust in general, which is exactly the hazard of selecting models on a fixed test set. ANT+SIN and DeepAugment tie on ImageNet-C at 52.60% but differ by almost 3 FMR points.

The ranking is not simply reversed, though. Methods that perturb training data dynamically (DeepAugment, AugMix and their combination) did better on FMR than SIN and ANT, and DAT, which perturbs images in a discrete symbolic space rather than in pixel space, led on both measures. ImageNet-C was informative at the top of the table and misleading in the middle.

Are vision transformers more robust than ResNets under this test?

Bar chart of clean ImageNet accuracy and FMR for seven architectures: ResNet-50 76.26 and 40.11, ViT 82.40 and 48.02, DeiT 78.57 and 52.41, ConvNeXt 82.05 and 55.38, Visformer 79.88 and 57.22, Twins 80.53 and 57.71, Swin 81.67 and 67.26
Clean accuracy and FMR of ImageNet models from the timm library (data: Table 1 of arXiv:2308.10632).

Across ImageNet architectures from the timm library, clean accuracy varied by only about 6 points while FMR ranged from 40.11 (ResNet-50) to 67.26 (Swin Transformer). Every transformer variant scored above ResNet-50. The authors do not attribute this to attention alone: transformers are usually trained with strong augmentation such as Mixup, CutMix and Random Erasing, and ConvNeXt, a CNN trained with similar augmentation, reached 55.38. Within the transformer family, Swin had the best FMR despite not having the best clean accuracy. A follow-up experiment in the appendix varied Swin's number of attention heads at a fixed 88M parameters, and FMR rose from 64.85 to 69.97 as heads increased, while clean accuracy stayed between 80.82% and 81.98%.

On the simplest benchmarks the gap to the oracle was large too: a LeNet with 99.09% clean accuracy on MNIST had an FMR of 24.99, and a ResNet-18 with 95.38% on CIFAR-10 had 51.69.

What else did the generated images reveal?

  • Texture and shape both get attacked. Because the perturbation is driven by each model's gradient, images generated against shape-biased models such as SIN changed object shapes, while others kept misleading local textures, such as chicken-like skin that fooled the DeepAugment model.
  • Ignoring color did not help. The generated images often shift colors, so the authors trained a grayscale ResNet on CIFAR-10. Tested on images generated against itself, it scored an FMR of 44.76, below the color model's 57.79 (Table 10).
  • Adversarial training is not the same thing. A PGD-trained CIFAR-10 model barely noticed images generated against a standard model (FMR 95.96), but images generated against itself still brought it down to 66.18.
  • Training on generated images helps, at a cost. Augmenting CIFAR-10 training with one static copy of generated images raised FMR on its own generated test set to 78.61, against 58.03 for the standard model on the same images, while clean accuracy fell from 95.38% to 87.41%.

How does this compare with other ways to measure robustness?

The question of how far benchmark scores transfer has a long history, and several groups have attacked it from different directions.

  • ImageNet-C. Benchmarking Neural Network Robustness to Common Corruptions and Perturbations by Dan Hendrycks and Thomas Dietterich (ICLR 2019) introduced ImageNet-C and ImageNet-P and made corruption robustness a standard, reproducible measurement, separate from worst-case adversarial robustness. Our paper relies on its leaderboard to choose the robust models it tests; the point is not that ImageNet-C is wrong, but that a single fixed set should not be the only arbiter.
  • Overfitting to reused test sets. In Do ImageNet Classifiers Generalize to ImageNet? (ICML 2019), Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt and Vaishaal Shankar rebuilt the CIFAR-10 and ImageNet test sets and found accuracy drops of 11% to 14% on ImageNet, but concluded that the drops came from slightly harder images, not from adaptive overfitting; gains on the old test set carried over to the new one. That is an important counterpoint. Their study concerns clean accuracy on a faithful replica of the test set, while the ResNet-50 results above concern methods designed and selected around one corruption benchmark, so the two findings are compatible.
  • Synthetic versus natural shift. Measuring Robustness to Natural Distribution Shifts in Image Classification by Rohan Taori, Achal Dave, Vaishaal Shankar, Nicholas Carlini, Benjamin Recht and Ludwig Schmidt (NeurIPS 2020) evaluated 204 ImageNet models in 213 test conditions and found little to no transfer from robustness on synthetic shifts to robustness on natural ones, with training on larger and more diverse data as the main exception. Our paper's results point the same way: the gap between every tested model and the foundation-model panel suggests that more diverse training data helps.
  • Generated benchmarks. ImageNet-D: Benchmarking Neural Network Robustness on Diffusion Synthetic Object by Chenshuang Zhang, Fei Pan, Junmo Kim, In So Kweon and Chengzhi Mao (CVPR 2024) uses diffusion models to synthesize hard images with new backgrounds, textures and materials, and reports accuracy drops of up to 60% across models including CLIP and MiniGPT-4. CNS-Bench: Benchmarking Image Classifier Robustness Under Continuous Nuisance Shifts by Olaf Dünkel, Artur Jesslen, Jiahao Xie, Christian Theobalt, Christian Rupprecht and Adam Kortylewski (ICCV 2025) applies LoRA adapters to diffusion models to vary a shift continuously, evaluates more than 40 classifiers, and finds that model rankings change with the type and scale of the shift. Both produce realistic images, which our VQGAN perturbations often are not; in exchange, our protocol adapts each test image to the model being tested, and both CNS-Bench and our paper need a filter to discard generated images that no longer show their class.
  • Benchmarks going stale. LAION-C: An Out-of-Distribution Benchmark for Web-Scale Vision Models by Fanfei Li, Thomas Klein, Wieland Brendel, Robert Geirhos and Roland S. Zimmermann (ICML 2025) argues that most ImageNet-C corruptions are no longer out of distribution for models trained on web-scale data, which already contains blur and compression artifacts, and introduces six new distortion types. It is a different route to the same concern: a fixed benchmark can lose its meaning as training data and methods change around it.

What held up, and what has changed since?

This section is our current perspective, not a result of the paper. The paper's central worry, that fixed robustness benchmarks lose their power to rank methods once a field optimizes against them, looks more relevant now than in 2023: models are trained on web-scale data that may already contain the corruptions a benchmark tests, and independent work such as LAION-C and CNS-Bench has moved toward new or generated test conditions. What has changed is the oracle. The paper's own argument is that the evaluation is only as good as the foundation models that guard the label, and those models have become much stronger since CLIP and CoCa. We have not re-run the protocol with newer models, so we cannot say how the numbers above would move.

What this does not show

  • The oracle sets the ceiling. FMR measures agreement with a panel of foundation models, not with people. The appendix shows that CLIP's judgment is uneven across classes (with a large step size, it rejected about half of the perturbed primate images), and in specialized domains such as medical imaging, general foundation models may not be reliable judges.
  • Generated images can look unnatural. Realism is not part of the objective. The authors argue that unnatural counterfactuals are still useful for exposing spurious features, but a failure on an unnatural image is not the same as a failure a user would meet.
  • Different models get different test sets. The transfer experiment supports comparing FMR across models, but it was run on CIFAR-10, not on ImageNet.
  • The robust-method comparison is ResNet-50 only. The seven robustness methods were tested on one architecture with publicly released weights, and the paper does not evaluate models trained on web-scale data as the tested model.
  • Cost and attack surface. Generating a test set requires running a generator and three foundation models for every image and every tested model, and the oracle itself can be attacked if its weights are exposed, which the paper discusses in its appendix.

Frequently asked questions

Do image models overfit robustness benchmarks like ImageNet-C?

Some robustness methods appear to. In the ICLR 2024 paper Foundation Model-oriented Robustness, three ResNet-50 training methods (SIN, ANT and ANT+SIN) raised ImageNet-C accuracy by 6 to 13.4 points over a plain ResNet-50, yet their score on a dynamic, model-specific test changed by less than 1 point. Other methods, such as DAT and DeepAugment+AugMix, improved on both.

How can you evaluate robustness without a fixed benchmark?

One way is to generate new test images for each model: perturb a test image step by step in the direction that raises the model's loss, and keep only images that a panel of foundation models still assigns to the original class. The model's accuracy on these images, divided by its clean accuracy, is the Foundation Model-oriented Robustness (FMR) score.

Can CLIP be used as an oracle to label generated test images?

Partly. The ICLR 2024 paper uses CLIP as a surrogate for a human labeler but, because its zero-shot accuracy is imperfect, takes a majority vote of CLIP, CoCa and an adversarially trained ConvNeXt. The evaluation is only as good as that oracle, which can be weak on rare classes or specialized domains such as medical images.

Are vision transformers more robust than ResNets?

On this dynamic test, the ImageNet transformers scored higher than ResNet-50: Swin reached an FMR of 67.26 against 40.11 for ResNet-50, at similar clean accuracy. The authors attribute much of the gap to the strong data augmentation transformers are usually trained with, since ConvNeXt, a CNN trained with similar augmentation, scored 55.38.

Citation

@inproceedings{zhang2024foundation,
  title     = {Foundation Model-oriented Robustness: Robust Image Model Evaluation with Pretrained Models},
  author    = {Zhang, Peiyan and Liu, Haoyang and Li, Chaozhuo and Xie, Xing and Kim, Sunghun and Wang, Haohan},
  booktitle = {International Conference on Learning Representations (ICLR)},
  year      = {2024}
}

Related from our lab