Abstract
Selective Mixup has recently emerged as a powerful technique for improving model generalization under distribution shifts. By interpolating specific pairs of training examples—such as those from different domains or classes—these methods report significant gains on out-of-distribution (OOD) benchmarks. This paper investigates whether these gains stem from the linear interpolation itself or from an overlooked side effect: implicit resampling. Our findings suggest that the success of Selective Mixup is largely driven by the balancing of training distributions, a phenomenon we term "regression toward the mean."
Introduction
In machine learning, Mixup is a popular regularization technique that creates synthetic training examples through the linear interpolation of random data pairs. Recently, specialized variants like Selective Mixup (e.g., LISA, SDMix) have claimed massive improvements on datasets with distribution shifts. These methods restrict mixing to specific pairs, such as examples sharing the same label but originating from different "domains" (e.g., different geographic locations or time periods).
However, the fundamental mechanism behind these improvements remains poorly understood. Is the mathematical interpolation creating a more robust decision boundary, or is the process of selecting specific points fundamentally altering the training dynamics in a way that mimics classical data balancing?
Methodology: Isolating the "Mix"
To decouple the effects of selection from the effects of mixing, we introduce a novel baseline called Selective Sampling.
- Selective Mixup: Pairs are selected based on a criterion (e.g., different classes) and then interpolated.
- Selective Sampling: The exact same pairs are selected, but instead of being mixed, both original examples are simply included in the mini-batch.
By comparing these two approaches against standard Empirical Risk Minimization (ERM) and classical Resampling (ensuring uniform frequency of classes or domains), we can isolate the true driver of performance.
Theoretical Insight: Implicit Resampling
We prove that choosing pairs from "different classes" mathematically forces the training distribution to become more uniform. This "regression toward the mean" aligns the training data more closely with common OOD benchmarks, which often feature more balanced test sets than their training counterparts. Consequently, Selective Mixup may be accidentally "tuning" the model to the specific quirks of these benchmarks rather than learning a fundamentally more robust representation.
Empirical Results
We evaluated these methods across five diverse datasets, including Waterbirds (vision/spurious correlations), CivilComments (NLP/subpopulation shifts), and the Wild-Time suite (temporal shifts).
The Waterbirds Case Study
On the Waterbirds dataset, we found that the impressive gains attributed to Selective Mixup were almost entirely explained by resampling. As shown in the results, once classes and domains were balanced through simple resampling or selective sampling, the addition of the mixing operation provided negligible further benefit.
Key Findings Across Datasets
- MIMIC-Readmission: Performance was dictated by how closely the sampling rate of the majority class matched the test set distribution. Selective methods succeeded simply because they sampled the majority class at a rate (64%) closer to the test set (66%) than the original training data (78%).
- Yearbook: This dataset presented a "best of both worlds" scenario. While resampling did the heavy lifting, combining it with "same-class" mixup yielded the highest overall accuracy (70.5%), suggesting mixup can be a useful complement when proper sampling is already in place.
- The Mixup "Tax": In some instances, such as the arXiv dataset, the mixing operation actually slightly degraded performance compared to pure resampling.
Discussion and Limitations
Our results highlight a significant risk of "overfitting to benchmarks." Many OOD datasets share a property where the test set is more balanced than the training set. Algorithms that exploit this through implicit resampling appear superior, but they may fail in "anti-regression" scenarios where the test set is even more imbalanced than the training data.
Conclusion
This study serves as a critical reminder to evaluate algorithmic innovations against strong, simple baselines. In the case of Selective Mixup, the "secret ingredient" is often not the interpolation, but the sampling strategy. Future research should focus on designing explicit sampling strategies that achieve these gains without the computational overhead of generating synthetic data.
Summary updated