Abstract
Distributionally Robust Supervised Learning (DRSL) is necessary for building reliable machine learning systems. When machine learning is deployed in the real world, its performance can be significantly degraded because test data may follow a different distribution from training data. DRSL with f-divergences explicitly considers the worst-case distribution shift by minimizing the adversarially reweighted training loss. In this paper, we analyze this DRSL, focusing on the classification scenario. Since the DRSL is explicitly formulated for a distribution shift scenario, we naturally expect it to give a robust classifier that can aggressively handle shifted distributions. However, surprisingly, we prove that the DRSL just ends up giving a classifier that exactly fits the given training distribution, which is too pessimistic. This pessimism comes from two sources: the particular losses used in classification and the fact that the variety of distributions to which the DRSL tries to be robust is too wide. Motivated by our analysis, we propose simple DRSL that overcomes this pessimism and empirically demonstrate its effectiveness.
Introduction
In ideal machine learning scenarios, training and test data are assumed to be independent and identically distributed (i.i.d.). However, real-world deployments often face "distribution shift"—where the test distribution differs from the training distribution due to factors like sample selection bias or non-stationary environments. This discrepancy can lead to catastrophic failures in models that performed well during validation.
To mitigate this, researchers developed Distributionally Robust Supervised Learning (DRSL). DRSL frames learning as a minimax game: an "adversary" shifts the training distribution within a defined "uncertainty set" to maximize loss, while the "learner" seeks to minimize this worst-case loss. While DRSL has shown success in regression, its application to classification has been underwhelming. This paper investigates the theoretical roots of this failure and proposes a structural solution.
The Pessimism of Standard DRSL
The authors provide a theoretical "reality check" for standard DRSL using $f$-divergences (e.g., KL-divergence). They prove that in classification tasks, standard DRSL often collapses into a model mathematically equivalent to standard Empirical Risk Minimization (ERM).
This "pessimism trap" occurs because the adversary has too much freedom to reweight individual data points. Instead of finding a robust decision boundary, the learner simply makes the loss function "steeper" to accommodate outliers in the training set. The resulting model fits the training distribution more aggressively but fails to generalize to actual shifts.
Structural DRSL: A Targeted Approach
To overcome this pessimism, the authors propose Structural DRSL. Instead of allowing the adversary to reweight every point independently, they introduce a structural constraint based on latent categories ($z$).
In this framework, the adversary is restricted to shifting the prior probabilities of these categories (e.g., assuming a different mix of user types at test time). By tying the weights of similar points together, the learner is forced to maintain performance across all latent groups rather than over-optimizing for the average training distribution. This approach assumes that while category proportions ($P(z)$) may change, the conditional distributions ($P(x,y|z)$) remain stable.
Experimental Evaluation
The proposed method was evaluated on several benchmarks, including the UCI repository (Blood, Adult, Fourclass, Phishing, Satimage, Letter), MNIST (Computer Vision), and 20newsgroups (NLP). To simulate distribution shift, the authors created sub-category groupings where proportions could be varied between training and testing.
Key Results
The experiments confirmed that while standard DRSL (AERM) often provides no benefit over ERM under shift, Structural DRSL consistently delivers robustness:
- Significant Risk Reduction: On the Adult dataset, Structural DRSL reduced the structural adversarial risk from ~30.4% (ERM/AERM) to 19.1%.
- Consistency across Domains: As shown in Figure 1, Structural DRSL achieved the lowest misclassification rates under worst-case category shifts across nearly all datasets, including MNIST and 20news.
- Computational Efficiency: The authors developed optimization algorithms for KL and Pearson divergences that add minimal overhead compared to standard ERM.
Conclusion and Future Work
Structural DRSL effectively addresses the pessimism of standard robust learning by constraining the adversary to realistic shifts. The primary requirement is the pre-definition of latent categories (e.g., using metadata like location or class labels).
Future research directions include the development of automatic latent discovery using unsupervised clustering to identify categories when metadata is unavailable, and exploring alternative structural constraints beyond prior probability changes. While the current theory holds for neural networks, further empirical work is needed to see how these structural constraints interact with high-capacity models in complex domains like computer vision.
Summary updated