Group Distributionally Robust Machine Learning under Group Level Distributional Uncertainty

Xenia Konti, Yi Shen, Zifan Wang, Karl Henrik Johansson, Michael J. Pencina, Nicoleta J. Economou-Zavlanos, Michael M. Zavlanos · DOI

Introduction

Standard machine learning models typically rely on Empirical Risk Minimization (ERM), which aims to minimize the average loss across the entire training dataset. While effective when training and testing distributions are identical, ERM often fails in real-world deployments where data is heterogeneous or subject to shifts. In high-stakes domains like healthcare or finance, this failure often manifests as poor performance on minority groups, raising significant fairness and reliability concerns.

Existing approaches like Group Distributionally Robust Optimization (Group DRO) attempt to mitigate this by minimizing the loss of the worst-performing subpopulation. However, Group DRO assumes that the training distribution for each group is a perfect representation of its test-time distribution. In practice, groups may be small, noisy, or subject to "temporal drift." This paper introduces a novel framework that provides a "double layer" of protection: it optimizes for across-group heterogeneity while simultaneously accounting for unpredictable within-group distribution shifts using Wasserstein-based Distributionally Robust Optimization (DRO).

Methodology: A Nested Optimization Approach

The authors propose a nested, three-level optimization problem designed to handle both group-level and individual-level uncertainty. The framework can be conceptualized as follows:

  1. Outer Level: Optimization of model parameters ($\theta$) to minimize the overall robust loss.
  2. Middle Level: Adjustment of group weights ($q$) to identify the subpopulation currently experiencing the highest loss.
  3. Inner Level: For each group, the model searches within a "Wasserstein ambiguity set"—a ball of plausible distributions centered at the observed training data—to identify the worst-case distribution shift within that specific group.
Conceptual illustration of (a) a Wasserstein ball, (b) standard Group DRO, and (c) the proposed nested framework handling both group heterogeneity and within-group uncertainty.

To ensure computational feasibility for non-convex models like neural networks, the authors employ a Lagrangian relaxation, converting the hard Wasserstein constraint into a penalty term. They utilize a three-step gradient descent-ascent algorithm: first, finding adversarial perturbations of data points (inner level); second, updating group weights via mirror ascent (middle level); and third, updating model parameters via gradient descent (outer level).

Experimental Setup

The framework was evaluated using the Adult Income dataset from the UCI Machine Learning Repository. To simulate real-world distribution shifts, the authors defined six intersectional groups based on race and income and induced a controlled covariate shift. Specifically, they trained the model on a version of the dataset where the "education level" distribution was artificially made uniform, while testing on the natural, skewed distribution. This setup tests the model's ability to generalize when the training environment does not perfectly represent the deployment environment.

Results and Discussion

The experimental results demonstrate the clear superiority of the proposed nested approach over traditional methods. On the Adult Income task with induced shifts, the proposed method achieved a worst-group accuracy of 61.26%, significantly outperforming Group DRO (56.07%) and vastly exceeding ERM (8.15%) and standard DRO (2.87%).

Comparison of model performance across different robustness parameters, demonstrating the stability and superiority of the proposed method in worst-group accuracy and disparity reduction.

Beyond raw accuracy, the method significantly reduced performance disparities. The "Accuracy Range" (the gap between the best and worst-performing groups) was reduced to 0.19, compared to a massive 0.91 for ERM. Crucially, this gain in fairness did not come at the cost of overall performance; the model maintained the highest average accuracy (71.48%).

Another practical advantage identified is parameter stability. As shown in the performance curves, the model is remarkably insensitive to the robustness parameter $\gamma$ across several orders of magnitude ($10^{-4}$ to $10^1$). This characteristic simplifies deployment by reducing the need for exhaustive hyperparameter tuning.

Conclusion and Future Work

This research provides a robust bridge between standard DRO and Group DRO, offering a comprehensive solution for distribution shifts both between and within subpopulations. While the method currently requires group labels during training and introduces some computational overhead due to its nested nature, it sets a new benchmark for fair and robust machine learning. Future research may explore handling uncertainty in group membership labels and scaling the approach to high-dimensional image data or datasets with a massive number of groups.

Summary updated

BibTeX
@misc{konti2025group,
  author = {Xenia Konti and Yi Shen and Zifan Wang and Karl Henrik Johansson and Michael J. Pencina and Nicoleta J. Economou-Zavlanos and Michael M. Zavlanos},
  title = {{Group Distributionally Robust Machine Learning under Group Level Distributional Uncertainty}},
  year = {2025},
  eprint = {2509.08942},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.08942},
}
Figure