Fast Distributionally Robust Learning with Variance-Reduced Min-Max Optimization

Yaodong Yu, Tianyi Lin, Eric V. Mazumdar, Michael I. Jordan

Abstract

Distributionally robust supervised learning (DRSL) is emerging as a key paradigm for building reliable machine learning systems for real-world applications—reflecting the need for classifiers and predictive models that are robust to the distribution shifts that arise from phenomena such as selection bias or nonstationarity. Existing algorithms for solving Wasserstein DRSL—one of the most popular DRSL frameworks based around robustness to perturbations in the Wasserstein distance—have serious limitations that limit their use in large-scale problems—in particular they involve solving complex subproblems and they fail to make use of stochastic gradients. We revisit Wasserstein DRSL through the lens of min-max optimization and derive scalable and efficiently implementable stochastic extra-gradient algorithms which provably achieve faster convergence rates than existing approaches. We demonstrate their effectiveness on synthetic and real data when compared to existing DRSL approaches. Key to our results is the use of variance reduction and random reshuffling to accelerate stochastic min-max optimization, the analysis of which may be of independent interest.

Introduction

Most machine learning models are trained using Empirical Risk Minimization (ERM), which assumes that the training and deployment data distributions are identical. In practice, this assumption is frequently violated by selection bias, non-stationarity, or adversarial perturbations. Distributionally Robust Supervised Learning (DRSL) addresses this by optimizing for the worst-case scenario within a neighborhood of the training distribution.

Wasserstein DRSL is a particularly powerful framework that uses the Wasserstein distance to define this neighborhood. However, traditional algorithms for solving Wasserstein DRSL are computationally intensive, often requiring the solution of complex subproblems in every iteration and failing to leverage stochastic gradients effectively. This makes them impractical for the large-scale datasets common in modern applications.

Methodology: A Min-Max Reformulation

The core innovation of this work is a shift in perspective: reformulating the Wasserstein DRSL problem as a smooth, finite-sum, convex-concave min-max problem. This transformation enables the application of efficient stochastic first-order optimization techniques. The authors introduce two primary algorithms:

  1. SEVR (Stochastic Extragradient with Variance Reduction): This algorithm incorporates an SVRG-style variance reduction technique. By utilizing an exponentially increasing inner loop size as iterates approach the optimal set, SEVR achieves a complexity of $O(n \log(1/\epsilon))$, a significant improvement over the $O(n/\epsilon)$ rate of previous deterministic methods.
  2. SPPRR (Stochastic Proximal Point with Random Reshuffling): This represents the first stochastic first-order algorithm for min-max optimization to utilize random reshuffling (RR). RR—sampling data without replacement in each epoch—is a popular heuristic in deep learning. The authors provide a theoretical analysis showing that SPPRR's convergence rate is essentially independent of the number of samples $n$, making it highly scalable.

Key Results

The proposed algorithms were evaluated against synthetic datasets (varying from $n = 5,000$ to $100,000$) and real-world benchmarks from the LIBSVM library (a9a, ijcnn1, and w8a).

Convergence comparison of SEVR and SPPRR against baseline methods across synthetic and real-world datasets.

As illustrated in the figure above, both SEVR (blue) and SPPRR (green) significantly outperform traditional baselines such as LPADMM and standard sub-gradient (SG) methods. SPPRR, in particular, demonstrates exceptional efficiency, reaching a suboptimality of $10^{-3}$ within fewer than 20 data passes across all datasets. These results confirm that tailoring algorithms to the specific structure of the WDRSL problem yields substantial performance gains over general-purpose solvers.

Conclusion and Future Work

By reformulating Wasserstein DRSL as a smooth min-max problem, this work provides a scalable path for robust machine learning. The introduction of SEVR and SPPRR brings the benefits of variance reduction and random reshuffling to the DRSL domain, offering linear-like convergence and dataset-size independence.

Future research directions include extending these techniques to non-convex models, such as deep neural networks, and relaxing the boundedness assumptions required for the current analysis of SPPRR. Additionally, exploring the sensitivity of hyperparameters like the number of fixed-point iterations ($M$) in SPPRR could further refine its practical application.

Summary updated

BibTeX
@inproceedings{yu2022fast,
  author = {Yaodong Yu and Tianyi Lin and Eric V. Mazumdar and Michael I. Jordan},
  title = {{Fast Distributionally Robust Learning with Variance-Reduced Min-Max Optimization}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
  url = {https://openreview.net/forum?id=Hztv0QwRYd},
}
Figure