Aggregation Hides Out-of-Distribution Generalization Failures from Spurious Correlations

Olawale Salaudeen, Haoran Zhang, Kumail Alhamoud, Sara Beery, Marzyeh Ghassemi
10/28/2025
cs.LG

No official code found. Best implementation: olawalesalaudeen/OODSELECT (1 star, last commit 2025-11-30).

Abstract

Benchmarks for out-of-distribution (OOD) generalization frequently show a strong positive correlation between in-distribution (ID) and OOD accuracy across models, termed "accuracy-on-the-line." This pattern is often taken to imply that spurious correlations - correlations that improve ID but reduce OOD performance - are rare in practice. We find that this positive correlation is often an artifact of aggregating heterogeneous OOD examples. Using a simple gradient-based method, OODSelect, we identify semantically coherent OOD subsets where accuracy on the line does not hold. Across widely used distribution shift benchmarks, the OODSelect uncovers subsets, sometimes over half of the standard OOD set, where higher ID accuracy predicts lower OOD accuracy. Our findings indicate that aggregate metrics can obscure important failure modes of OOD robustness. We release code and the identified subsets to facilitate further research.

View on arXivView PDF

Code Implementations(1)

Codebase for "Aggregation Hides Out-of-Distribution Generalization Failures from Spurious Correlations" (NeurIPS 25 Spotlight)

11PythonOct 22, 202510 months ago
accuracy-on-the-linedistribution-shiftgeneralizationspurious-correlations

Similar Papers

Cite this paper

@article{salaudeen2025aggregation,
  title  = {Aggregation Hides Out-of-Distribution Generalization Failures from Spurious Correlations},
  author = {Olawale Salaudeen and Haoran Zhang and Kumail Alhamoud and Sara Beery and Marzyeh Ghassemi},
  year   = {2025},
  eprint = {2510.24884},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.24884v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.24884.svg)](https://codeofpaper.com/paper/2510.24884)

Discussion