Mixture Data for Training Cannot Ensure Out-of-distribution Generalization
Songming Zhang, Yuxiao Luo, Qizhou Wang, Haoang Chi, Xiaofeng Chen, Bo Han, Jinyan Li
TL;DR
This work questions the universal benefit of more data for out-of-distribution (OOD) generalization by introducing a convex-hull view: OOD data are defined with respect to the convex hull $Con(\mathcal{E}_s)$ of training environments, and new risk bounds distinguish data inside versus outside the hull. The authors prove that while models can generalize well to unseen data within the hull, generalization to data outside the hull cannot be guaranteed, even with increasing training size, and they uncover diverse non-monotonic error patterns across benchmarks. They validate these insights with extensive experiments on MNIST, CIFAR-10, PACS, and DomainNet, showing that OOD errors can decrease under some shifts but remain non-monotone or stable under larger shifts. To improve OOD performance, they propose a diversity-driven data selection framework (including an RL-guided sampler) that expands the training mixture's coverage without requiring target-domain labels, thereby broadening the learned representations and improving OOD generalization for large datasets. Overall, the paper provides both theoretical bounds and practical data-selection strategies that illuminate why simply adding more data does not inexorably improve OOD generalization and how to design more robust training mixtures.
Abstract
Deep neural networks often face generalization problems to handle out-of-distribution (OOD) data, and there remains a notable theoretical gap between the contributing factors and their respective impacts. Literature evidence from in-distribution data has suggested that generalization error can shrink if the size of mixture data for training increases. However, when it comes to OOD samples, this conventional understanding does not hold anymore -- Increasing the size of training data does not always lead to a reduction in the test generalization error. In fact, diverse trends of the errors have been found across various shifting scenarios including those decreasing trends under a power-law pattern, initial declines followed by increases, or continuous stable patterns. Previous work has approached OOD data qualitatively, treating them merely as samples unseen during training, which are hard to explain the complicated non-monotonic trends. In this work, we quantitatively redefine OOD data as those situated outside the convex hull of mixed training data and establish novel generalization error bounds to comprehend the counterintuitive observations better. Our proof of the new risk bound agrees that the efficacy of well-trained models can be guaranteed for unseen data within the convex hull; More interestingly, but for OOD data beyond this coverage, the generalization cannot be ensured, which aligns with our observations. Furthermore, we attempted various OOD techniques to underscore that our results not only explain insightful observations in recent OOD generalization work, such as the significance of diverse data and the sensitivity to unseen shifts of existing algorithms, but it also inspires a novel and effective data selection strategy.
