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

In Search of Forgotten Domain Generalization

Prasanna Mayilvahanan, Roland S. Zimmermann, Thaddäus Wiedemer, Evgenia Rusak, Attila Juhos, Matthias Bethge, Wieland Brendel · DOI

Abstract

Recent foundation models like CLIP have demonstrated remarkable zero-shot performance on out-of-distribution (OOD) benchmarks, leading to the belief that domain generalization is a solved problem. This paper challenges this notion by demonstrating that CLIP’s apparent robustness is primarily a result of "domain contamination" within its massive web-scale training sets. By partitioning the LAION dataset into "Natural" and "Rendition" domains, we show that CLIP’s performance on stylistic shifts collapses when it has not been exposed to those styles during training. Our findings suggest that the fundamental challenges of domain generalization remain largely unaddressed.

Introduction

In the "ImageNet era," the boundary for out-of-distribution (OOD) generalization was well-defined: models were trained on natural photographs and evaluated on stylistically distinct datasets such as ImageNet-Sketch or ImageNet-R (renditions). Standard supervised models consistently failed these tests, highlighting a fundamental lack of robustness.

The advent of the "Foundation Model era," epitomized by CLIP, changed this perception. Trained on 400 million image-text pairs, CLIP achieved unprecedented accuracy on these same OOD benchmarks. However, web-scale datasets like LAION are a heterogeneous "soup" containing nearly every imaginable style. If a model encounters millions of sketches during pre-training, evaluation on ImageNet-Sketch becomes an in-domain task rather than a true test of generalization. This study aims to re-establish meaningful OOD assessment by disentangling these domains in the training data.

Overview of domain contamination and the impact of filtering on model robustness across different eras.

Methodology

To investigate the impact of domain contamination, we developed a strategy to isolate "natural" and "rendition" domains within web-scale data:

  1. Data Labeling and Classification: We manually categorized 19,000 images from LAION-200M into Natural (photographic), Rendition (sketches, paintings), and Ambiguous classes. This labeled set was used to train a high-precision domain classifier (fine-tuned CLIP ViT-L/14) to partition the broader dataset.
  2. Controlled Training: We constructed "clean" single-domain training sets, such as LAION-Natural (57M images) and LAION-Rendition (16M images). CLIP models (ViT-B/32) were then trained from scratch on these subsets to observe performance under strict domain isolation.
  3. Refined Evaluation: We "cleaned" standard benchmarks like ImageNet-R and ImageNet-Sketch to remove any photographic samples that might erroneously inflate the scores of models trained only on natural data.

Key Insights

The Illusion of Robustness

Our experiments reveal that CLIP’s robustness is largely a data-scaling artifact. When restricted to LAION-Natural training data, the model's relative performance on rendition test sets drops to approximately 0.4x of its original score. This confirms that the "CLIP magic" relies heavily on seeing the test domain during training.

Domain vs. Sample Contamination

While previous research focused on exact image duplicates (sample contamination), this work highlights domain contamination. The model does not necessarily need to see the exact test images; rather, it learns the underlying style or distribution of the test set (e.g., the "sketchiness" of ImageNet-Sketch) during its massive pre-training phase.

Asymmetric Generalization and Texture

We observed an asymmetric relationship between domains: training on renditions benefits performance on natural images more than the reverse. This suggests that abstract, simplified features found in sketches may be more foundational for general vision than high-fidelity textures. We define the boundary between these domains based on texture; natural images preserve fine-grained details, while renditions simplify or flatten them.

Key Results

  • Performance Collapse: Models trained exclusively on natural images show a significant performance gap on rendition shifts across all training scales (4M to 57M samples).
  • Effective Robustness: In "Effective Robustness" plots, models trained on clean natural data revert toward the baseline of standard ImageNet-trained models, losing their OOD advantage.
  • Optimal Data Mixing: A rendition-to-natural ratio between 1:1 and 3:1 was found to provide the best overall generalization, suggesting that a diverse but balanced diet of styles is necessary for broad performance.

Conclusion

This study demonstrates that the perceived robustness of foundation models is often an illusion created by the vast diversity of web-scale training data. By filtering these datasets, we show that the core problem of domain generalization—bridging the gap between disparate visual styles without direct supervision—remains unsolved. We propose that the community adopt these "clean" data splits to develop next-generation architectures capable of true, zero-shot generalization.

Summary updated

BibTeX
@inproceedings{mayilvahanan2025search,
  author = {Prasanna Mayilvahanan and Roland S. Zimmermann and Thaddäus Wiedemer and Evgenia Rusak and Attila Juhos and Matthias Bethge and Wieland Brendel},
  title = {{In Search of Forgotten Domain Generalization}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=Fk3eod9aaD},
}
Figure