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.
Introduction: The Failure of Scaling Laws
In standard "In-Distribution" (ID) learning, researchers rely on neural scaling laws: as training data volume increases, the model's error typically drops following a predictable power-law pattern. However, when models face Out-of-Distribution (OOD) data—samples that differ from the training set due to shifts in style, lighting, or geometry—this rule often breaks down. Empirical observations have revealed "counterintuitive" trends where OOD error stays flat or even increases as the training set grows. This paper aims to bridge the gap between these empirical non-monotonic error trends and the theoretical understanding of why they occur.
Quantifying OOD via the Convex Hull
The authors propose a shift from qualitative definitions of OOD (simply "unseen data") to a quantitative one based on the concept of a convex hull. If training data is viewed as a mixture of different source domains (e.g., photos, art, and cartoons), the convex hull represents the space of all possible interpolations between those domains.
Under this framework, data inside this hull is considered "ID-like," while data outside is defined as "Refined OOD." The authors derive a novel mathematical upper bound for generalization error that includes a distance term ($\delta$), representing how far a test sample is from the training convex hull. This explains why performance is guaranteed for data within the hull but becomes unpredictable for data situated beyond it.
Empirical Observations of Non-Monotonic Trends
To validate their theory, the authors analyzed several benchmarks, including Rotated CIFAR-10, Blurred CIFAR-10, and DomainNet. They observed diverse error trends that directly challenge traditional scaling laws.
As shown in the results, for substantial shifts (e.g., high rotation angles or extreme blur), the error often follows a U-shaped curve or remains stagnant despite increasing the number of training samples ($N$). This suggests that once a model overfits to the specific characteristics of its training mixture, it may lose the ability to generalize to distant OOD samples. The most important insight is that model performance is only guaranteed for unseen data if that data can be represented as a mixture of what the model has already seen.
RL-Guided Data Selection
Recognizing that volume alone is insufficient, the paper introduces a data selection strategy using Reinforcement Learning (REINFORCE). Instead of training on the entire dataset, the algorithm selects a subset of samples that maximizes "diversity" (dispersion in the feature space). This effectively attempts to "stretch" the convex hull of the training set to cover as much ground as possible. This RL-guided selection method significantly outperformed "Vanilla" training and random selection on benchmarks like PACS and Rotated CIFAR-10, achieving lower OOD error with the same training effort.
Conclusion
This work demonstrates that simply adding more data is not a panacea for OOD generalization. By defining OOD through the lens of the convex hull, the authors provide a robust theoretical framework for the non-monotonic error trends observed in practice. Their findings suggest that diversity is more critical than sheer volume, and future work should focus on expanding the coverage of training environments to ensure better generalization to unseen shifts.
Summary updated