Measuring Robustness to Natural Distribution Shifts in Image Classification

Rohan Taori, Achal Dave, Vaishaal Shankar, Nicholas Carlini, Benjamin Recht, Ludwig Schmidt

Abstract

We study how robust current ImageNet models are to distribution shifts arising from natural variations in datasets. Most research on robustness focuses on synthetic image perturbations (noise, simulated weather artifacts, adversarial examples, etc.), which leaves open how robustness on synthetic distribution shift relates to distribution shift arising in real data. Informed by an evaluation of 204 ImageNet models in 213 different test conditions, we find that there is often little to no transfer of robustness from current synthetic to natural distribution shift. Moreover, most current techniques provide no robustness to the natural distribution shifts in our testbed. The main exception is training on larger and more diverse datasets, which in multiple cases increases robustness, but is still far from closing the performance gaps. Our results indicate that distribution shifts arising in real data are currently an open research problem. We provide our testbed and data as a resource for future work.

Introduction: The Real-World Gap

In computer vision, models are notoriously brittle. A state-of-the-art classifier with 99% accuracy on a standard test set may fail when faced with slight blurriness, rotations, or lighting changes. While researchers have developed various "robustness interventions"—such as adversarial training or specialized data augmentation—these are typically tested against synthetic shifts like Gaussian noise or JPEG compression. This study investigates a critical question: Does robustness to synthetic noise actually translate to robustness against "natural" distribution shifts encountered in the real world?

Methodology: Defining Effective Robustness

To distinguish between a model simply being more accurate overall and being truly robust to a shift, the authors introduced the concept of Effective Robustness. By plotting the accuracy of standard models on a shifted dataset against their accuracy on the original ImageNet, a linear baseline is established.

Figure 1: The concept of effective robustness. A model demonstrates effective robustness only if it performs significantly above the linear trend established by standard models.

A model is considered to have effective robustness only if it performs significantly above this linear trend, indicating it handles the shift better than a standard model of equivalent accuracy would.

Experimental Setup and Datasets

The researchers evaluated 204 different ImageNet models across 213 test conditions. The testbed included several benchmarks for natural distribution shifts:

  • ImageNetV2: A faithful reproduction of the original ImageNet test set.
  • ObjectNet: Objects in cluttered, real-world rooms with varied rotations.
  • ImageNet-Vid-Robust & YTBB-Robust: Video frames capturing objects in diverse poses.
  • ImageNet-A: Naturally occurring images that are consistently misclassified by standard models.

These were compared against synthetic shifts, such as ImageNet-C (digital corruptions) and various adversarial perturbations.

Key Results: The Linear Trend is King

The most striking finding is that for nearly every natural shift, a model’s performance is almost perfectly predicted by its standard ImageNet accuracy.

Figure 6: Distribution shift to ImageNetV2. The performance of nearly all models, including those with robustness interventions, follows a tight linear relationship with their standard ImageNet accuracy.

As shown in the evaluation on ImageNetV2, models follow a strict linear baseline. Most "robustness interventions" fail to provide effective robustness; they may improve accuracy on specific synthetic noise types but do not move the model above the linear trend on natural data. The correlation between synthetic and natural robustness was found to be remarkably low ($r = 0.24$ for corruptions and $r = -0.05$ for adversarial attacks).

The "More Data" Exception

The only intervention that consistently provided effective robustness was training on significantly larger and more diverse datasets, such as Instagram's 1-billion image dataset or Google’s JFT-300M. However, the scale required is immense; models often required 100x to 1000x more data than the standard ImageNet set to show even marginal gains in effective robustness.

Conclusion

Currently, the most reliable way to improve real-world performance is simply to increase overall model accuracy or use massive datasets. Most existing algorithmic robustness interventions act as placebos for natural distribution shifts. The authors suggest that the research community must prioritize natural distribution shifts as the primary metric for robustness, seeking new algorithmic ways to achieve the gains of massive datasets without the associated computational and data costs.

Summary updated

BibTeX
@inproceedings{taori2020measuring,
  author = {Rohan Taori and Achal Dave and Vaishaal Shankar and Nicholas Carlini and Benjamin Recht and Ludwig Schmidt},
  title = {{Measuring Robustness to Natural Distribution Shifts in Image Classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=r-Wancmrgq},
}
Figure