NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Models with Uniform Performance via Distributionally Robust Optimization

John C. Duchi, Hongseok NamkoongarXiv 2018

TL;DR

This paper introduces a novel framework for training machine learning models that maintain consistent performance across various data distributions, including shifts and subpopulations. By employing Distributionally Robust Optimization (DRO) with f-divergences, they achieve models that are more reliable in safety-critical applications and less prone to performance degradation on underrepresented groups.

What Problem Does This Paper Address?

In real-world applications, machine learning models often face "distributional shifts" – situations where the data they encounter during testing differs from the data they were trained on. These shifts can arise from various sources, such as changes in user behavior, sensor drift, or the presence of distinct, unmodeled subpopulations within the data. Standard training methods, like empirical risk minimization (ERM), optimize for average performance, which can lead to models that perform poorly on specific, "hard" instances or minority groups, potentially causing significant failures in critical systems (e.g., medical diagnosis, autonomous vehicles). The challenge is to develop models that are robust and perform well uniformly across these potential distributional variations, even when the nature of these shifts is unknown beforehand.

Methods

The core of this paper is a Distributionally Robust Optimization (DRO) framework. Instead of minimizing the expected loss under a single, fixed data distribution (like ERM), DRO minimizes the worst-case expected loss over a set of "neighboring" distributions. The authors define this neighborhood using f-divergences, a flexible class of divergence measures that quantify the difference between probability distributions.

Specifically, they formulate the problem as:

$$R_f(\theta; P_0) := \sup_{Q \ll P_0} \{E_Q[l(\theta; X)] : D_f(Q || P_0) \le \rho\}$$

Here, $\theta$ is the model parameter, $P_0$ is the true data-generating distribution, $l(\theta; X)$ is the loss function, $D_f$ is an f-divergence, and $\rho$ is a hyperparameter controlling the size of the "perturbation set" of distributions $Q$. This formulation explicitly seeks a model $\theta$ that performs well even under the "worst-case" distribution $Q$ within the defined neighborhood.

The authors provide a convex formulation for this DRO problem, making it computationally tractable. They also derive finite-sample minimax upper and lower bounds to understand the theoretical performance limits and limit theorems to characterize the asymptotic behavior of their proposed estimator, enabling the computation of confidence intervals.

Datasets

The paper uses simulated data for experiments and evaluates their approach on several real-world datasets:

  • Simulated Data: Used extensively to test the theoretical underpinnings of their method across various scenarios like domain adaptation, tail performance, and subpopulation performance.
  • MNIST Handwritten Digits Dataset: Used for domain generalization experiments, where models trained on standard MNIST digits are tested on typewritten digits.
  • Crime Prediction Dataset: Utilized for studying tail performance in a regression problem.
  • Stanford Dogs Dataset: Employed for a fine-grained recognition task, highlighting performance on challenging subpopulations.

Key Insights and Ideas

  • Uniform Performance is Achievable: The DRO framework provides a principled way to achieve uniform performance, meaning the model's loss is bounded across a range of potential data distributions, not just the training distribution.
  • Trade-off Between Average and Tail Performance: Robustness to distributional shifts often comes at a cost to average-case performance. The DRO approach allows for a controlled trade-off, enabling users to prioritize performance on difficult instances or minority groups.
  • f-Divergences Offer Flexibility: The choice of f-divergence and the parameter $\rho$ allows for tailoring the robustness to specific types of distributional shifts and desired levels of protection. Different f-divergences (e.g., KL-divergence, $\chi^2$-divergence) correspond to different notions of "closeness" between distributions.
  • Connection to Risk Measures: The DRO formulation is shown to be equivalent to optimizing certain risk measures, like Conditional Value-at-Risk (CVaR), providing a link to established concepts in robust statistics and finance.
  • Theoretical Guarantees: The paper provides rigorous theoretical guarantees on convergence rates and asymptotic normality, demonstrating the statistical soundness of their approach.

Key Results

  • Improved Performance on Tail Losses: In regression tasks, the DRO models showed significantly lower losses on rare or "hard" examples compared to standard ERM, especially when the data distribution was perturbed.
  • Better Generalization to Domain Shifts: In classification tasks (e.g., digit recognition), models trained with DRO exhibited better performance on typewritten digits (a domain shift) compared to ERM, particularly for harder classes.
  • Robustness to Heterogeneous Subpopulations: Experiments with simulated and real data demonstrated that DRO models maintain more consistent performance across different subpopulations, outperforming ERM on minority groups.
  • Theoretical Bounds: The paper establishes finite-sample minimax upper and lower bounds, showing that the DRO approach achieves near-optimal rates for certain classes of f-divergences, though with potential costs in convergence speed compared to standard ERM when dealing with large uncertainty sets.
  • Asymptotic Normality: Under appropriate conditions, the DRO estimators are shown to be asymptotically normal, allowing for the construction of confidence intervals.

Limitations and Future Work

  • Guidance on Choosing f and ρ: The paper acknowledges that providing precise guidance on selecting the f-divergence and the robustness parameter $\rho$ remains an open question. While heuristics are proposed, a deeper understanding of adaptive procedures is needed.
  • Higher-Dimensional Robustness: While theoretical guarantees are provided, the authors note that their understanding of robustness in higher-dimensional settings is limited.
  • Relaxing Identifiability Assumptions: The asymptotic normality results rely on an identifiability assumption on the dual formulation, and it is an open question whether this can be relaxed by analyzing the primal problem directly.
  • Connecting to Classical Robustness: Further research is suggested to explore the connections and contrasts between their DRO approach and classical contamination models in robust statistics.
  • Covariate Shift and Structural Shifts: Developing variants of the DRO formulation that specifically protect against covariate shifts or structural shifts on covariates (while potentially allowing shifts in the outcome) is identified as a future research direction.

Summary updated

BibTeX
@misc{duchi2018learning,
  author = {John C. Duchi and Hongseok Namkoong},
  title = {{Learning Models with Uniform Performance via Distributionally Robust Optimization}},
  year = {2018},
  eprint = {1810.08750},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.08750},
}
Figure