Abstract
While a broad range of techniques have been proposed to tackle distribution shift, the simple baseline of training on an undersampled balanced dataset often achieves close to state-of-the-art-accuracy across several popular benchmarks. This is rather surprising, since undersampling algorithms discard excess majority group data. To understand this phenomenon, we ask if learning is fundamentally constrained by a lack of minority group samples. We prove that this is indeed the case in the setting of nonparametric binary classification. Our results show that in the worst case, an algorithm cannot outperform undersampling unless there is a high degree of overlap between the train and test distributions (which is unlikely to be the case in real-world datasets), or if the algorithm leverages additional structure about the distribution shift. In particular, in the case of label shift we show that there is always an undersampling algorithm that is minimax optimal. In the case of group-covariate shift we show that there is an undersampling algorithm that is minimax optimal when the overlap between the group distributions is small. We also perform an experimental case study on a label shift dataset and find that in line with our theory, the test accuracy of robust neural network classifiers is constrained by the number of minority samples.
Introduction
Machine learning models are notoriously brittle when the test distribution differs from the training distribution. A common scenario is "group-structured" shift: a dataset contains a massive majority group and a tiny minority group, but high accuracy is required on both at test time. While complex techniques like Group Distributionally Robust Optimization (Group-DRO) are standard, a simple baseline—undersampling the majority group to create a balanced dataset—often performs surprisingly close to state-of-the-art (SOTA) methods. This paper provides a theoretical foundation for this "undersampling paradox" in the context of nonparametric binary classification.
Theoretical Framework and Methods
The study analyzes two primary types of distribution shift using a nonparametric framework (specifically Lipschitz-continuous distributions):
- Label Shift: One class is overrepresented in training, but test time requires a balanced distribution.
- Group-Covariate Shift: The relationship between features and labels is consistent, but the feature distributions of groups differ (e.g., "land birds" vs. "water birds").
By deriving minimax lower bounds—the absolute best a "perfect" algorithm could do in the worst-case scenario—the authors compare these to the upper bounds achieved by a simple undersampled estimator. When these bounds match, the algorithm is considered minimax optimal.
Key Insights: The Minority Bottleneck
The core finding is that the minimax excess risk scales with $1/n_{min}^{1/3}$, where $n_{min}$ is the number of minority samples. Crucially, this risk does not depend on the number of majority samples ($n_{maj}$). Even with infinite majority data, worst-case error is trapped by the size of the minority set.
In low-overlap group-covariate shifts, majority samples provide almost zero information about the regions of the feature space where the minority group resides. Therefore, discarding them doesn't lose useful information for the robust objective. The authors argue that to beat undersampling, an algorithm must leverage specific structure (like high overlap); general-purpose robustness tools are mathematically destined to perform no better than simple data pruning.
Empirical Results
The theoretical proofs are validated through meta-analysis of popular benchmarks and controlled experiments. On a "Cat vs. Dog" CIFAR-10 task, adding 1,500 minority samples improved test accuracy by ~6%, while adding 1,500 majority samples resulted in negligible gains (<1%) and occasionally decreased accuracy due to increased model bias.
As shown in the meta-analysis, undersampling (often discarding >90% of data) remains remarkably competitive with methods like Group-DRO and Importance Weighting across datasets such as CelebA, Waterbirds, and MultiNLI.
Conclusion and Future Work
Undersampling is a minimax optimal intervention in many nonparametric settings. While this study primarily uses 1D features for theoretical clarity, it highlights that the performance of robust classifiers is fundamentally constrained by minority sample size. Future research may bridge the gap between the implicit bias of stochastic gradient descent in neural networks and these nonparametric minimax bounds, particularly in higher dimensions.
Summary updated