MixMax: Distributional Robustness in Function Space via Optimal Data Mixtures
Anvith Thudi, Chris J. Maddison
TL;DR
MixMax reframes group DRO by optimizing over bounded functions in function space, proving a minimax result that the worst-case distribution can be realized as an optimal data mixture. It then shows that, for cross-entropy and $\ell_2^2$ losses, the MixMax objective is concave in the mixture weights, enabling a convex optimization over mixture weights followed by standard risk minimization. The paper introduces EMixMax and E$^2$MixMax to compute gradients empirically, including data-reuse variants, and demonstrates improved worst-group performance over baselines on sequence modeling and tabular tasks with non-parametric models like XGBoost. These findings offer a scalable, non-parametric DRO approach with practical gradient estimators and actionable prescription for mixture-based robustness in real-world deployments. Overall, MixMax provides a principled, efficient path to distributional robustness when model classes are expressive and data come from multiple sources.
Abstract
Machine learning models are often required to perform well across several pre-defined settings, such as a set of user groups. Worst-case performance is a common metric to capture this requirement, and is the objective of group distributionally robust optimization (group DRO). Unfortunately, these methods struggle when the loss is non-convex in the parameters, or the model class is non-parametric. Here, we make a classical move to address this: we reparameterize group DRO from parameter space to function space, which results in a number of advantages. First, we show that group DRO over the space of bounded functions admits a minimax theorem. Second, for cross-entropy and mean squared error, we show that the minimax optimal mixture distribution is the solution of a simple convex optimization problem. Thus, provided one is working with a model class of universal function approximators, group DRO can be solved by a convex optimization problem followed by a classical risk minimization problem. We call our method MixMax. In our experi ments, we found that MixMax matched or outperformed the standard group DRO baselines, and in particular, MixMax improved the performance of XGBoost over the only baseline, data balancing, for variations of the ACSIncome and CelebA annotations datasets.
