Minimax Regret Optimization for Robust Machine Learning under Distribution Shift

Alekh Agarwal, Tong Zhang

Abstract

In this paper, we consider learning scenarios where the learned model is evaluated under an unknown test distribution which potentially differs from the training distribution (i.e., distribution shift). Standard approaches like Distributionally Robust Optimization (DRO) often fail when test environments exhibit noise heterogeneity, leading the model to overfit to high-noise scenarios. We introduce Minimax Regret Optimization (MRO), a framework that minimizes the gap to the best possible performance in each environment rather than raw error. We provide theoretical guarantees showing that MRO achieves faster convergence rates than DRO and maintains robust performance across diverse test distributions.

1. Introduction

Machine learning models are increasingly deployed in real-world settings where the test data distribution differs significantly from the training data. This phenomenon, known as distribution shift, can lead to a drastic reduction in predictive accuracy. The conventional defense against such shifts is Distributionally Robust Optimization (DRO), which seeks to minimize the worst-case risk across a predefined family of potential test distributions.

However, DRO possesses a fundamental limitation: it is highly sensitive to noise heterogeneity. In scenarios where some test environments are inherently noisier than others, a model minimizing worst-case risk will disproportionately focus on the high-noise environments. This often results in a "sacrifice" of accuracy in cleaner, low-noise environments to achieve marginal gains in environments where high error is unavoidable. This paper argues for a shift in perspective from minimizing risk to minimizing regret.

2. The Case for Minimax Regret

The core contribution of this work is the Minimax Regret Optimization (MRO) objective. Unlike DRO, which minimizes the maximum risk, MRO minimizes the maximum regret—defined as the difference between the model's performance and the best possible performance achievable by any model in the class for that specific distribution:

$$\min_{f \in \mathcal{F}} \sup_{P \in \mathcal{P}} [R_P(f) - \inf_{f' \in \mathcal{F}} R_P(f')] $$

By subtracting the minimum possible risk, MRO effectively "levels the playing field" across distributions. This prevents the learner from being distracted by environments that are inherently difficult or noisy, focusing instead on the aspects of the problem the learner can actually control. This approach ensures uniformly small regret across all potential test distributions.

3. Algorithmic Framework

To make MRO practical, we utilize a weight-based reformulation, assuming test distributions are reweightings of the training distribution (a standard assumption in covariate shift). We frame the optimization as a two-player zero-sum game:

  1. The Learner: Attempts to find a model $f$ that minimizes regret.
  2. The Adversary: Attempts to find a weighting $w$ (representing a test distribution) that maximizes the learner's regret.

This game is solved iteratively: the Learner employs an Empirical Risk Minimization (ERM) oracle, while the Adversary updates their strategy using the Exponentiated Gradient (Hedge) algorithm. Additionally, we introduce Scaled MRO (SMRO), which rescales regret to better handle "misspecified" models where the true relationship is not perfectly captured by the model class.

4. Theoretical Analysis and Key Results

Our theoretical analysis reveals significant advantages for MRO over standard DRO:

  • Fast Convergence Rates: For convex model classes and squared loss, MRO achieves "fast" convergence rates of $O(1/n)$. In contrast, we prove (Proposition 6) that the standard DRO objective is fundamentally limited to a slower $O(1/\sqrt{n})$ rate for worst-case risk.
  • Uniform Regret Bounds: We prove that MRO achieves a regret bound of $O(\sqrt{B/n})$ (where $B$ is the bound on importance weights) that holds simultaneously for all distributions in the target family.
  • Alignment Condition: We demonstrate that if a single model in the class is sufficiently "good" for all distributions (the alignment condition), SMRO can automatically adapt to achieve even higher performance by learning the underlying similarities between environments.
  • Computational Efficiency: The proposed iterative algorithm converges to the MRO solution with a complexity that scales linearly with the size of the weight class and $n^2$ with the number of samples.

5. Conclusion and Future Work

Minimax Regret Optimization offers a robust alternative to risk-based optimization in the presence of distribution shift. By focusing on regret, MRO avoids the pitfalls of noise heterogeneity and provides superior theoretical convergence rates. While this work establishes a strong theoretical foundation, future research should focus on scaling these algorithms to massive datasets and complex weight classes, such as those defined by deep neural networks. Applying MRO to practical domains like algorithmic fairness and medical imaging remains a promising avenue for validating the real-world utility of the regret-minimization paradigm.

Summary updated

BibTeX
@inproceedings{agarwal2022minimax,
  author = {Alekh Agarwal and Tong Zhang},
  title = {{Minimax Regret Optimization for Robust Machine Learning under Distribution Shift}},
  booktitle = {Conference on Learning Theory},
  year = {2022},
  url = {https://openreview.net/forum?id=wmryRrAwIAJ},
}
Figure