Abstract
Machine learning models frequently encounter performance degradation when deployed in real-world environments due to distribution shifts. This paper proposes a unified framework to evaluate model stability by measuring the minimal distributional perturbation required to push a model's risk above a predefined threshold. By utilizing Optimal Transport on a joint sample-density space, the framework simultaneously accounts for individual data corruptions and broader sub-population shifts. Empirical results on real-world datasets demonstrate that this approach provides a robust metric for model evaluation and a guide for targeted interventions to improve fairness and reliability.
The Challenge of Distribution Shift
Machine learning models often exhibit high accuracy during laboratory testing but fail significantly in real-world deployments. This performance degradation typically stems from two distinct types of distribution shifts: individual data corruptions (e.g., sensor noise or adversarial perturbations) and broader sub-population shifts (e.g., changes in demographic weights). Historically, these issues have been treated as separate research problems—adversarial robustness and distributional robustness, respectively. This paper argues that a truly stable model must resist a combination of both and provides a mathematical framework to measure this resistance holistically.
A Unified Stability Metric
The authors introduce a stability criterion, $\mathcal{R}(\beta, r)$, defined as the minimum "distance" from the training distribution to a "sensitive" distribution where the model's risk exceeds a threshold $r$. To achieve this, they "lift" the problem into a joint space that considers both the location of samples and their probability mass.
By using Optimal Transport (OT) to quantify the cost of these perturbations, the framework allows for a flexible trade-off between corruption and shift. The authors introduce two hyperparameters, $\theta_1$ and $\theta_2$, to tune the relative cost of moving data points versus changing their weights. While the original problem is an infinite-dimensional optimization challenge, the authors prove a strong duality theorem that transforms it into a tractable, finite-dimensional convex optimization problem.
Visualizing the Worst-Case Scenarios
A key advantage of this framework is the ability to visualize the "most sensitive" distribution for a given model. By adjusting the hyperparameters $\theta_1$ and $\theta_2$, practitioners can explore different failure modes.
As shown in the figure above, if the focus is solely on sub-population shifts ($\theta_1 = \infty$), the metric identifies a few "hard" samples near the decision boundary and increases their weight. Conversely, if the focus is solely on corruptions ($\theta_2 = \infty$), the metric physically pushes samples across the boundary. A balanced approach (finite $\theta_1, \theta_2$) creates a more realistic, holistic worst-case scenario that combines both effects.
Diagnostic Insights and Fairness
The framework was validated on real-world datasets, including the ACS Income and COVID-19 Mortality datasets. The analysis revealed several critical insights:
- Model Comparison: While Multi-Layer Perceptrons (MLPs) often achieve higher raw accuracy than Logistic Regression (LR), they are frequently less stable and more sensitive to input perturbations.
- Feature Sensitivity: By restricting perturbations to a single feature, the authors can identify which features contribute most to model instability. In the ACS Income task, models were found to be highly sensitive to minority racial features.
- Targeted Interventions: The authors demonstrate that identifying the most sensitive features allows for "Targeted Adversarial Training." In the ACS Income dataset, this approach boosted the accuracy for the most vulnerable group (American Indian) from 72% to over 80%, significantly improving both fairness and worst-group accuracy.
Conclusion
This research provides a rigorous mathematical foundation for evaluating model stability in the face of complex, real-world distribution shifts. By unifying data corruption and sub-population shift into a single metric, practitioners can better diagnose model weaknesses and implement targeted interventions to ensure more reliable and fair machine learning systems. Future work will focus on scaling these methods to modern architectures like Transformers and Large Language Models.
Summary updated