Efficient Stochastic Approximation of Minimax Excess Risk Optimization

Lijun Zhang, Wei-Wei Tu · DOI

Abstract

Minimax Excess Risk Optimization (MERO) is a robust learning framework designed to handle heterogeneous noise across multiple data distributions. While theoretically sound, existing MERO algorithms are computationally expensive, often requiring full optimization at every iteration. This paper presents the first efficient stochastic approximation algorithms for MERO. By interleaving the estimation of minimal risks with a minimax optimization step, the proposed methods achieve nearly optimal convergence rates and significant speedups—up to 6.9x—over previous state-of-the-art approaches.

Introduction

In real-world machine learning, distribution shift—where test data differs from training data—is a common challenge. Distributionally Robust Optimization (DRO) addresses this by minimizing the maximum risk across a set of potential distributions. However, standard DRO suffers from a "noise problem": it tends to fixate on distributions with high intrinsic noise, potentially ignoring cleaner, more informative data.

Minimax Excess Risk Optimization (MERO) was proposed to mitigate this by minimizing excess risk—the difference between the current risk and the best possible risk for a specific distribution. This approach "levels the playing field" by accounting for the inherent difficulty of each task. Despite its theoretical advantages, MERO is computationally challenging because the minimal risk for each distribution is typically unknown.

Methodology

The authors introduce two primary algorithmic frameworks to make MERO practical for large-scale applications.

Anytime Stochastic Approximation

The first approach, detailed in Algorithm 1, is an "anytime" algorithm that does not require prior knowledge of the total sample size. It maintains $m$ parallel instances of Stochastic Mirror Descent (SMD) to track the minimal risks of each distribution. Simultaneously, a meta-algorithm utilizes these estimates to solve the global minimax objective.

Algorithm 1: The Anytime Stochastic Approximation Approach for MERO.

A key theoretical challenge in this approach is that the gradients used for the minimax step are biased due to the ongoing estimation of minimal risks. The authors provide a novel analysis demonstrating that this bias remains controlled, allowing the algorithm to achieve a nearly optimal $O(1/\sqrt{t})$ convergence rate.

Two-Stage Weighted MERO

For imbalanced settings where sample sizes vary significantly across distributions, the authors propose a two-stage approach. The first stage uses half the sample budget to estimate minimal risks. The second stage employs Stochastic Mirror-Prox (SMPA) with mini-batches to solve a weighted MERO problem, ensuring that data-rich groups benefit from faster, distribution-dependent convergence rates.

Experimental Evaluation

The proposed methods were evaluated on both synthetic and real-world datasets.

  • Synthetic Dataset: A controlled environment with six distributions featuring varied noise levels to test robustness to heterogeneous noise.
  • Adult Dataset (UCI): A census dataset partitioned into six groups based on race and gender to simulate demographic sub-populations.

Key Results

  • Computational Efficiency: The new MERO approach demonstrated massive speedups, performing 5.7x faster on synthetic data and 6.9x faster on the Adult dataset compared to the previous state-of-the-art (E-MERO) to reach the same target error.
  • Balanced Performance: Compared to standard Group DRO (GDRO), MERO achieved more balanced risks. While GDRO focused heavily on the noisiest groups, MERO improved performance across the majority of groups by preventing noise from dominating the objective.
  • Memory Efficiency: As stochastic approximation methods, these algorithms process samples incrementally, avoiding the need to store entire datasets in memory.

Conclusion

This work provides a scalable and efficient solution for Minimax Excess Risk Optimization. By managing the bias inherent in on-the-fly risk estimation, the authors bridge the gap between the theoretical benefits of MERO and its practical implementation. Future work includes extending these guarantees to non-convex settings, such as deep neural networks, and exploring variance reduction techniques to further accelerate convergence.

Summary updated

Abstract

While traditional distributionally robust optimization (DRO) aims to minimize the maximal risk over a set of distributions, Agarwal and Zhang (2022) recently proposed a variant that replaces risk with excess risk. Compared to DRO, the new formulation -- minimax excess risk optimization (MERO) has the advantage of suppressing the effect of heterogeneous noise in different distributions. However, the choice of excess risk leads to a very challenging minimax optimization problem, and currently there exists only an inefficient algorithm for empirical MERO. In this paper, we develop efficient stochastic approximation approaches which directly target MERO. Specifically, we leverage techniques from stochastic convex optimization to estimate the minimal risk of every distribution, and solve MERO as a stochastic convex-concave optimization (SCCO) problem with biased gradients. The presence of bias makes existing theoretical guarantees of SCCO inapplicable, and fortunately, we demonstrate that the bias, caused by the estimation error of the minimal risk, is under-control. Thus, MERO can still be optimized with a nearly optimal convergence rate. Moreover, we investigate a practical scenario where the quantity of samples drawn from each distribution may differ, and propose a stochastic approach that delivers distribution-dependent convergence rates.
BibTeX
@inproceedings{zhang2024efficient,
  author = {Lijun Zhang and Wei-Wei Tu},
  title = {{Efficient Stochastic Approximation of Minimax Excess Risk Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=oTYuORAMaP},
}
Figure