NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Out of Distribution Performance of State of Art Vision Model

Salman RahmanarXiv 2023 · DOI

Abstract

This study presents a large-scale benchmark of 58 state-of-the-art computer vision models to evaluate their robustness against data distribution shifts. By utilizing a unified training setup, we investigate the common narrative that Vision Transformers (ViTs) are inherently superior to Convolutional Neural Networks (CNNs) in out-of-distribution (OOD) scenarios. Our findings suggest that robustness is heavily dependent on training recipes and model scale rather than architectural inductive biases alone.

Introduction

The robustness of deep learning models to out-of-distribution data—images that deviate from the training distribution (e.g., sketches, artistic renditions, or occluded objects)—is a critical factor for real-world deployment. While Vision Transformers have been lauded for their superior OOD performance, previous comparisons often lacked a level playing field, comparing models of different scales or trained with different techniques. This paper addresses these inconsistencies through a standardized evaluation of 58 diverse architectures.

Methodology

We evaluated models across four categories: Convolution-Based (29 models), Attention-Based (Pure ViTs), Hybrid (Convolution + Attention), and Alternative Mechanisms (MLP-based and LSTM-based). A unified training framework using the Adam optimizer and standardized learning rates was applied to baseline versions of each architecture to ensure fair comparison.

Benchmarking Datasets

Models were tested on five ImageNet-derived OOD benchmarks:

  • ImageNet-A: Natural adversarial examples caused by occlusion or environmental factors.
  • ImageNet-R (Rendition): Artistic versions of objects, such as cartoons or paintings.
  • ImageNet-O (Out-of-distribution): Anomalies from classes not seen during training.
  • ImageNet-Sketch: 50,000 black-and-white sketch images.
  • Stylized ImageNet: Texture-agnostic images where original textures are replaced by artistic styles.

Analysis of Architectural Robustness

The Inductive Bias Trade-off

The results challenge the notion of ViT's inherent superiority. Modern CNNs, such as ConvNeXt, demonstrated exceptional performance, particularly on ImageNet-A, where it achieved 35.79% accuracy. This indicates that refined convolutional architectures remain highly competitive when trained effectively.

Table 1: Performance metrics for CNN-based architectures on ImageNet and its adversarial/OOD variants.

Training vs. Architecture

Furthermore, the study highlights that much of the reported robustness in ViTs can be attributed to advanced training recipes rather than the attention mechanism itself. Standardizing these recipes significantly narrows the performance gap between CNNs and Transformers.

Alternative Mechanisms

A surprising finding was the performance of the Sequencer model. Based on LSTMs, it outperformed many traditional designs on OOD datasets, suggesting that sequence-based image modeling is a robust alternative to both convolution and attention.

Key Results

The benchmarking identified several top-performing models across various OOD tasks:

  • Attention-Based Leaders: DeiT3 emerged as a leader on ImageNet-R (53.63%) and Stylized ImageNet (25.45%), while MViTv2 excelled on ImageNet-A (43.09%).
  • CNN Resilience: EfficientNetV2 showed remarkable resilience, achieving 52.97% on ImageNet-R, nearly matching the best Transformers.
  • Anomaly Detection: MobileViT and BEiT proved most effective at identifying unseen classes (ImageNet-O), making them suitable for safety-critical applications.
Table 2: Comprehensive OOD performance for Attention-based (ViT) architectures across multiple benchmarks.

Conclusion

Our comprehensive benchmark reveals that architectural evolution has significantly enhanced model robustness. However, the choice between CNNs and ViTs is not clear-cut; both families can achieve high OOD performance given appropriate training. Future research should delve into the causal mechanisms of model failure to design architectures that are inherently robust to non-essential features like background and texture.

Summary updated

BibTeX
@misc{rahman2023out,
  author = {Salman Rahman},
  title = {{Out of Distribution Performance of State of Art Vision Model}},
  year = {2023},
  eprint = {2301.10750},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.10750},
}
Figure