Large-Scale Methods for Distributionally Robust Optimization

Daniel Levy, Yair Carmon, John C. Duchi, Aaron Sidford

TL;DR

This paper introduces novel algorithms for Distributionally Robust Optimization (DRO) that scale efficiently to large datasets, a significant hurdle for previous DRO methods. They achieve this by developing new theoretical bounds on gradient estimators and demonstrating substantial speedups (9-36x) over full-batch methods on challenging datasets like ImageNet.

What Problem Does This Paper Address?

Machine learning models often struggle to perform reliably across different subpopulations or under distribution shifts, leading to fairness and robustness issues. Distributionally Robust Optimization (DRO) offers a promising solution by training models to be robust against worst-case data distributions within a defined uncertainty set. However, existing DRO methods are computationally expensive, making them impractical for large-scale applications common in machine learning. This paper aims to bridge this gap by developing scalable DRO algorithms with theoretical guarantees and empirical validation.

Methods

The authors propose and analyze algorithms for DRO with two common uncertainty sets: Conditional Value at Risk (CVaR) and $\chi^2$ divergence. Their key contributions include:

  • Mini-batch Gradient Estimators: They analyze the bias and variance of mini-batch gradient estimators for DRO objectives. Crucially, they establish bounds showing that the bias diminishes with increasing batch size, allowing for scalable optimization.
  • Multi-Level Monte Carlo (MLMC) Gradient Estimators: To further improve efficiency, they adapt MLMC techniques to create unbiased gradient estimators with logarithmic dependence on batch size. This significantly reduces the computational cost associated with estimating gradients for DRO.
  • Theoretical Guarantees: They provide theoretical complexity bounds for their algorithms, showing that the number of gradient evaluations required is independent of the training set size and model parameters, a significant improvement over prior work. For $\chi^2$ uncertainty sets, these are the first such guarantees.
  • Lower Bounds: They also establish lower bounds proving the worst-case optimality of their algorithms for CVaR and a penalized $\chi^2$ problem.

Datasets

The paper uses the following datasets for evaluation:

  • MNIST: Used for digit classification experiments.
  • Typed Digits: Mixed with MNIST for digit classification experiments.
  • ImageNet (ILSVRC-2012): Used for large-scale classification experiments.

The authors note that their ImageNet experiment is, to their knowledge, the largest DRO problem solved to date.

Key Insights and Ideas

  • Bias-Variance Trade-off in DRO: The paper highlights that while standard stochastic gradient methods work well for Empirical Risk Minimization (ERM), they suffer from bias when applied to DRO due to the "worst-case" maximization step. Understanding and bounding this bias is crucial for scalable DRO.
  • MLMC for DRO Efficiency: MLMC estimators, while having higher variance, can significantly reduce the computational cost by requiring fewer samples for a given batch size, making them a powerful tool for large-scale DRO.
  • Scalability is Achievable: The core message is that DRO doesn't have to be computationally prohibitive. By carefully analyzing gradient estimators and leveraging techniques like MLMC, DRO can be made practical for real-world, large-scale machine learning problems.
  • CVaR Guarantees Improve: The paper shows that their CVaR guarantees scale linearly with the uncertainty level, an improvement over previous quadratic scaling.

Key Results

  • Algorithmic Efficiency: The proposed algorithms achieve gradient evaluation complexity independent of training set size and number of parameters.
  • Speedups: Experiments on MNIST and ImageNet show that their algorithms are 9-36 times more efficient than full-batch methods.
  • Theoretical Guarantees: They provide theoretical complexity bounds that match or improve upon existing results for CVaR and $\chi^2$ divergence DRO.
  • Empirical Validation: Experiments confirm the theoretical scaling of their algorithms, demonstrating practical benefits on challenging datasets.

Limitations and Future Work

  • MLMC Practicality: While theoretically optimal, the MLMC estimator can be practically slower to converge than mini-batch estimators with well-tuned batch sizes and learning rates due to its increased variance.
  • $\chi^2$ Constrained Problem: Direct application of MLMC to the $\chi^2$ constrained problem was found to fail. The authors address this by optimizing its dual objective ($\chi^2$ penalty) using a doubling scheme, but this leads to a higher complexity guarantee ($\epsilon^{-3}$).
  • Future Work: The authors suggest that their work provides a foundation for solving a broader class of DRO problems at scale, including those with explicit group structure. They also emphasize the need for robust evaluation methodologies to accompany the development of DRO algorithms.

Summary updated

BibTeX
@inproceedings{levy2020large,
  author = {Daniel Levy and Yair Carmon and John C. Duchi and Aaron Sidford},
  title = {{Large-Scale Methods for Distributionally Robust Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=pjsvoVbP4x},
}
Figure