The Value of Out-of-Distribution Data
Not on the map. Why?
Abstract (arXiv)
We expect the generalization error to improve with more samples from a similar task, and to deteriorate with more samples from an out-of-distribution (OOD) task. In this work, we show a counter-intuitive phenomenon: the generalization error of a task can be a non-monotonic function of the number of OOD samples. As the number of OOD samples increases, the generalization error on the target task improves before deteriorating beyond a threshold. In other words, there is value in training on small amounts of OOD data. We use Fisher's Linear Discriminant on synthetic datasets and deep networks on computer vision benchmarks such as MNIST, CIFAR-10, CINIC-10, PACS and DomainNet to demonstrate and analyze this phenomenon. In the idealistic setting where we know which samples are OOD, we show that these non-monotonic trends can be exploited using an appropriately weighted objective of the target and OOD empirical risk. While its practical utility is limited, this does suggest that if we can detect OOD samples, then there may be ways to benefit from them. When we do not know which samples are OOD, we show how a number of go-to strategies such as data-augmentation, hyper-parameter optimization, and pre-training are not enough to ensure that the target generalization error does not deteriorate with the number of OOD samples in the dataset.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 30 of its 62 references that are in the map. First posted on arXiv 23 Aug 2022.
Builds on
30 of 62 references.
References · 30
- 2016Wide Residual Networkscited by 3,057
- 2015Domain-Adversarial Training of Neural Networkscited by 3,023
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2019Invariant Risk Minimizationcited by 1,832
- 2018Moment Matching for Multi-Source Domain Adaptationcited by 1,327
- 2020Energy-based Out-of-distribution Detectioncited by 1,296
- 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,232
- 2016Deep CORAL: Correlation Alignment for Deep Domain Adaptationcited by 1,194
- 2020In Search of Lost Domain Generalizationcited by 1,042
- 2017Deeper, Broader and Artier Domain Generalizationcited by 983
- 2022Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distributioncited by 722
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 596
18 more
- 2019Likelihood Ratios for Out-of-Distribution Detectioncited by 451
- 2020Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamicscited by 423
- 2018Tune: A Research Platform for Distributed Model Selection and Trainingcited by 395
- 2017Certified Defenses for Data Poisoning Attackscited by 288
- 2021Exploring the Limits of Out-of-Distribution Detectioncited by 283
- 2015Domain Generalization for Object Recognition with Multi-task Autoencoderscited by 253
- 2018What is the Effect of Importance Weighting in Deep Learning?cited by 250
- 2020Contrastive Training for Improved Out-of-Distribution Detectioncited by 186
- 2020BREEDS: Benchmarks for Subpopulation Shiftcited by 155
- 2016Theoretical Analysis of Domain Adaptation with Optimal Transportcited by 105
- 2021Extending the WILDS Benchmark for Unsupervised Adaptationcited by 85
- 2021On the Impact of Spurious Correlation for Out-of-distribution Detectioncited by 68
- 2020On the Value of Target Data in Transfer Learningcited by 62
- 2017Generative Poisoning Attack Method Against Neural Networkscited by 49
- 2022A Data-Based Perspective on Transfer Learningcited by 32
- 2013Generalization Bounds for Domain Adaptationcited by 27
- 2022Deconstructing Distributions: A Pointwise Framework of Learningcited by 19
- 2021Characterizing and Understanding the Generalization Error of Transfer Learning with Gibbs Algorithmcited by 14
Built on by
Citing papers per year: 2023: 7; 2024: 1; 2025: 4.
12 papers.
- 2024Prospective Learning: Learning for a Dynamic Futurecited by 4
- 2025Does Feasibility Matter? Understanding the Impact of Feasibility on Synthetic Training Datacited by 4
- 2023Out of Distribution Detection via Domain-Informed Gaussian Process State Space Modelscited by 3
- 2023Out-Of-Domain Unlabeled Data Improves Generalizationcited by 3
- 2023Approximately optimal domain adaptation with Fisher's Linear Discriminantcited by 2
- 2023Read, Look or Listen? What's Needed for Solving a Multimodal Datasetcited by 2
- 2023Adapting Machine Learning Diagnostic Models to New Populations Using a Small Amount of Data: Results from Clinical Neurosciencecited by 2
- 2023Mixture Data for Training Cannot Ensure Out-of-distribution Generalizationcited by 1
- 2025On the Hardness of Unsupervised Domain Adaptation: Optimal Learners and Information-Theoretic Perspectivecited by 1
- 2025Prospective Learning in Retrospectcited by 1
- 2023Be Bayesian by Attachments to Catch More Uncertaintycited by 0
- 2025Out-of-distribution data supervision towards biomedical semantic segmentationcited by 0
- 2025Out-of-distribution data supervision towards biomedical semantic segmentation16 Jul 2025
- 2025Prospective Learning in Retrospect10 Jul 2025
- 2025On the Hardness of Unsupervised Domain Adaptation: Optimal Learners and Information-Theoretic Perspective9 Jul 2025
- 2025Does Feasibility Matter? Understanding the Impact of Feasibility on Synthetic Training Data15 May 2025
- 2024Prospective Learning: Learning for a Dynamic Future31 Oct 2024
- 2023Mixture Data for Training Cannot Ensure Out-of-distribution Generalization25 Dec 2023
- 2023Be Bayesian by Attachments to Catch More Uncertainty19 Oct 2023
- 2023Out-Of-Domain Unlabeled Data Improves Generalization29 Sep 2023
- 2023Out of Distribution Detection via Domain-Informed Gaussian Process State Space Models13 Sep 2023
- 2023Adapting Machine Learning Diagnostic Models to New Populations Using a Small Amount of Data: Results from Clinical Neuroscience6 Aug 2023
- 2023Read, Look or Listen? What's Needed for Solving a Multimodal Dataset6 Jul 2023
- 2023Approximately optimal domain adaptation with Fisher's Linear Discriminant27 Feb 2023