CIFAR-10-Warehouse: Broad and More Realistic Testbeds in Model Generalization Analysis

Xiaoxiao Sun, Xingjian Leng, Zijian Wang, Yang Yang, Zi Huang, Liang Zheng

TL;DR

The paper introduces CIFAR-10-Warehouse (CIFAR-10-W), a comprehensive testbed consisting of 180 diverse domains designed to evaluate model generalization and unsupervised accuracy prediction. By combining real-world web-scraped images and diffusion-generated samples, CIFAR-10-W exposes the limitations of traditional synthetic benchmarks and provides a more realistic, challenging environment for out-of-distribution (OOD) analysis.

What Problem Does This Paper Address?

Machine learning models frequently suffer severe performance drops when deployed in out-of-distribution (OOD) environments. To mitigate this, researchers rely on two primary paradigms: Domain Generalization (DG), which aims to build models resilient to distribution shifts, and Accuracy Prediction (AccP), which attempts to estimate a model's performance on unlabeled target data.

However, existing testbeds suffer from a critical dilemma: they either contain too few domains to be statistically meaningful (e.g., PACS has 4, DomainNet has 6) or they rely on synthetic image corruptions (like CIFAR-10-C), which fail to capture the nuanced environmental discrepancies encountered in the real world. This paper bridges the gap by providing a massive, diverse, and realistic multi-domain testbed based on the familiar CIFAR-10 categories.

Datasets

The core contribution is CIFAR-10-Warehouse (CIFAR-10-W), which features a total of 608,691 images across 180 distinct domains (datasets), each sharing the original 10 classes of CIFAR-10.

The domains are split into two main categories:

  1. Real-World Searched Data (143 domains): Gathered from seven search engines and photo-sharing platforms (Google, Bing, Flickr, etc.) using targeted keyword prompts specifying colors or styles (e.g., "cartoon deer", "yellow dog").
  2. Diffusion Model Generated Data (37 domains): Generated using Stable Diffusion string prompts to create specific color/style variations, including 13 "hard" domains where objects and backgrounds do not naturally co-exist (e.g., "photo of an airplane in a cage").
Examples of diverse domains and image styles within the CIFAR-10-W dataset.

Methods

The authors conduct an extensive benchmarking study using CIFAR-10-W to evaluate standard machine learning approaches:

  • Accuracy Prediction (AccP): They evaluate 8 popular AccP methods, categorized into prediction score-based (e.g., Softmax thresholding, Entropy, ATC-MC) and feature-based methods (e.g., Fréchet Distance, Bag-of-Prototypes). They also introduce MS-AoL (Multiple Sets Agreement-on-the-Line), a modified model-centric approach optimized to predict accuracy across multiple unseen test sets simultaneously.
  • Domain Generalization (DG): They benchmark 11 prominent DG algorithms (including ERM, SagNet, CORAL, and Fishr) across single-source and multi-source training configurations using a ResNet18 backbone.

Key Insights and Ideas

  • Synthetic Corruptions are Too Easy: Models consistently show much higher error rates in accuracy prediction on CIFAR-10-W compared to synthetic datasets like CIFAR-10-C. Real-world distribution shifts involve semantic and stylistic complexities that pixel-level corruptions simply cannot replicate.
  • The "Far-OOD" Wall for DG: Current domain generalization methods provide noticeable improvements on "near-OOD" datasets (like subtle color shifts) but struggle significantly on "far-OOD" datasets, such as cartoon styles or highly unnatural compositions.
  • Score-Based Predictors Falter under Real Shifts: On synthetic data, simple prediction-score-based accuracy estimators perform well. However, on real-world OOD data, their variance explodes across different classifiers. Feature-based methods and the proposed MS-AoL prove much more stable under realistic shifts.

Key Results

  • Accuracy Prediction Challenge: For a ResNet44 classifier, the average Mean Absolute Error (MAE) for accuracy prediction was 3.62% on synthetic corruptions (CIFAR-10-Cs) but jumped to 6.65% on CIFAR-10-W, peaking at 9.14% on the cartoon-style subset (KWC).
  • MS-AoL Dominance: The proposed MS-AoL method achieved the most consistent and lowest MAE across 40 different evaluated classifiers on the full warehouse testbed.
  • Multi-Source DG Stability: In domain generalization tasks, increasing the number of training sources drastically stabilized target performance. The variance of test accuracy dropped from 3.9% using a single source domain down to 0.67% when leveraging four source domains.

Limitations and Future Work

While CIFAR-10-W provides an expansive testbed, the authors note a few limitations:

  • Label Space Simplicity: Inheriting the 10-class structure of CIFAR-10 means the dataset lacks the semantic complexity of larger datasets like ImageNet.
  • Resolution Constraints: Standard benchmarks were conducted by resizing images to 32×32 pixels, which discards fine-grained visual details (though the appendix includes promising results utilizing 224×224 resolutions).

Future Directions: The authors plan to expand the domain coverage further and suggest that CIFAR-10-W's recorded annotation errors make it highly valuable for adjacent fields, such as learning from noisy labels and unsupervised domain adaptation (DA).

Summary updated

Abstract

Analyzing model performance in various unseen environments is a critical research problem in the machine learning community. To study this problem, it is important to construct a testbed with out-of-distribution test sets that have broad coverage of environmental discrepancies. However, existing testbeds typically either have a small number of domains or are synthesized by image corruptions, hindering algorithm design that demonstrates real-world effectiveness. In this paper, we introduce CIFAR-10-Warehouse, consisting of 180 datasets collected by prompting image search engines and diffusion models in various ways. Generally sized between 300 and 8,000 images, the datasets contain natural images, cartoons, certain colors, or objects that do not naturally appear. With CIFAR-10-W, we aim to enhance the evaluation and deepen the understanding of two generalization tasks: domain generalization and model accuracy prediction in various out-of-distribution environments. We conduct extensive benchmarking and comparison experiments and show that CIFAR-10-W offers new and interesting insights inherent to these tasks. We also discuss other fields that would benefit from CIFAR-10-W.
BibTeX
@inproceedings{sun2024cifar,
  author = {Xiaoxiao Sun and Xingjian Leng and Zijian Wang and Yang Yang and Zi Huang and Liang Zheng},
  title = {{CIFAR-10-Warehouse: Broad and More Realistic Testbeds in Model Generalization Analysis}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=pw2ssoOTpo},
}
Figure