Papers
Topics
Authors
Recent
Search
2000 character limit reached

Group-DRO & GRAPE: Robust Optimization

Updated 11 January 2026
  • Group-DRO / GRAPE is a robust optimization paradigm that minimizes the maximum expected risk across groups to ensure fair model performance for hard or minority subpopulations.
  • It employs adaptive reweighting and clustering techniques to discover latent group structures and manage uncertainty, balancing model focus on worst-case scenarios.
  • GRAPE extends this framework to large-scale language model pretraining by dynamically adjusting domain and task weights, leading to accelerated convergence and balanced multi-task performance.

Group-DRO / GRAPE encompasses a family of distributionally robust optimization schemes for learning models that guarantee robust performance across worst-case groups, as well as recent extensions to data mixture optimization for LLMs and beyond. At its core, Group-DRO is concerned with minimizing the maximum expected risk across a predefined (or adaptively discovered) set of groups or domains, ensuring that minority or hard sub-populations are not neglected during training. GRAPE, as introduced in large-scale pretraining, extends this paradigm to simultaneous multi-source-multi-target data mixture optimization with an adaptive curriculum and reweighting mechanism.

1. Formal Foundations and Optimization Principles

Group Distributionally Robust Optimization (Group-DRO) solves the following min-max problem over model parameters θΘ\theta \in \Theta and group/adversarial weights qQΔmq \in Q \subseteq \Delta_m: minθΘmaxqQ i=1mqiLi(θ),Li(θ)=EzPi[(θ;z)]\min_{\theta \in \Theta} \max_{q \in Q}~ \sum_{i=1}^m q_i L_i(\theta), \quad L_i(\theta) = \mathbb{E}_{z \sim P_i}[\ell(\theta;z)] Where PiP_i is the data distribution for group ii and ()\ell(\cdot) a convex loss. For classical Group-DRO, Q=ΔmQ = \Delta_m (the simplex), recovering minθmaxiLi(θ)\min_{\theta} \max_{i} L_i(\theta). Generalized Group-DRO encompasses:

  • Subpopulation fairness (empirical CVaR): Q={qΔm:qi1/(pm)}Q = \{q \in \Delta_m: q_i \le 1/(p m) \}
  • Top-kk losses: qQΔmq \in Q \subseteq \Delta_m0
  • Weighted ranking (permutahedra): qQΔmq \in Q \subseteq \Delta_m1 is the convex hull of permutations, allowing reweighting by worst-case order statistics

Algorithmically, Group-DRO is typically realized as a two-player zero-sum saddle-point game: a model optimizer (“qQΔmq \in Q \subseteq \Delta_m2-player”) runs online/projected (stochastic) gradient descent (OGD/SGD), and a group-adversary (“qQΔmq \in Q \subseteq \Delta_m3-player”) runs mirror descent or exponentiated-gradient ascent to upweight groups with high current loss (Soma et al., 2022).

2. Algorithmic Advances and Convergence Guarantees

Recent works provide near-optimal stochastic algorithms for Group-DRO and its generalizations. With qQΔmq \in Q \subseteq \Delta_m4 being qQΔmq \in Q \subseteq \Delta_m5-Lipschitz and qQΔmq \in Q \subseteq \Delta_m6 diameter qQΔmq \in Q \subseteq \Delta_m7, stochastic no-regret dynamics yield the following minimax rates:

  • GDRO-EXP3: Negative entropy regularizer, mirror descent in qQΔmq \in Q \subseteq \Delta_m8
    • qQΔmq \in Q \subseteq \Delta_m9
  • GDRO-TINF: Tsallis-1/2 entropy regularizer, with a closed-form Tsallis mirror map
    • minθΘmaxqQ i=1mqiLi(θ),Li(θ)=EzPi[(θ;z)]\min_{\theta \in \Theta} \max_{q \in Q}~ \sum_{i=1}^m q_i L_i(\theta), \quad L_i(\theta) = \mathbb{E}_{z \sim P_i}[\ell(\theta;z)]0

Lower bounds (via Le Cam’s method) establish that the minθΘmaxqQ i=1mqiLi(θ),Li(θ)=EzPi[(θ;z)]\min_{\theta \in \Theta} \max_{q \in Q}~ \sum_{i=1}^m q_i L_i(\theta), \quad L_i(\theta) = \mathbb{E}_{z \sim P_i}[\ell(\theta;z)]1 dependency is tight (Soma et al., 2022). Algorithmic refinements allow for flexible sampling (variable batch size across groups) with rigorous finite-sample guarantees (Bai et al., 21 May 2025, Zhang et al., 2023).

3. Extensions: Group Discovery, Flexible Membership, and Group-DRO Beyond Fixed Groups

Adversarial and Latent Group Discovery

Standard Group-DRO requires a priori knowledge of group identities. Several works lift this restriction:

  • Group-DRO++ (Thopalli et al., 2021): Alternates group assignments by K-means clustering latent representations (every minθΘmaxqQ i=1mqiLi(θ),Li(θ)=EzPi[(θ;z)]\min_{\theta \in \Theta} \max_{q \in Q}~ \sum_{i=1}^m q_i L_i(\theta), \quad L_i(\theta) = \mathbb{E}_{z \sim P_i}[\ell(\theta;z)]2 steps) and Group-DRO updates, exposing shift-aligned subpopulations and improving zero-shot generalization.
  • AGRO (Paranjape et al., 2022): Trains a learnable “grouper” network with adversarial slicing, assigning soft group probabilities and maximizing worst-group loss to co-discover error-prone slices and directly integrate with Group-DRO via the CVaR-style adversary.
  • PG-DRO (Ghosal et al., 2023): Employs soft group membership minθΘmaxqQ i=1mqiLi(θ),Li(θ)=EzPi[(θ;z)]\min_{\theta \in \Theta} \max_{q \in Q}~ \sum_{i=1}^m q_i L_i(\theta), \quad L_i(\theta) = \mathbb{E}_{z \sim P_i}[\ell(\theta;z)]3, estimated via classifier, semi-supervised, or zero-shot (CLIP) approaches. The optimization generalizes G-DRO by weighting losses via soft assignments.

Beyond Worst-Group: Weighted Criteria and Uncertainty

Group-DRO can be relaxed to consider top-minθΘmaxqQ i=1mqiLi(θ),Li(θ)=EzPi[(θ;z)]\min_{\theta \in \Theta} \max_{q \in Q}~ \sum_{i=1}^m q_i L_i(\theta), \quad L_i(\theta) = \mathbb{E}_{z \sim P_i}[\ell(\theta;z)]4 groups, subpopulation fairness, or uncertainty balls around empirical distributions:

  • Top-minθΘmaxqQ i=1mqiLi(θ),Li(θ)=EzPi[(θ;z)]\min_{\theta \in \Theta} \max_{q \in Q}~ \sum_{i=1}^m q_i L_i(\theta), \quad L_i(\theta) = \mathbb{E}_{z \sim P_i}[\ell(\theta;z)]5 DRO (Soma et al., 2022, Zhang et al., 2023): Uses a minθΘmaxqQ i=1mqiLi(θ),Li(θ)=EzPi[(θ;z)]\min_{\theta \in \Theta} \max_{q \in Q}~ \sum_{i=1}^m q_i L_i(\theta), \quad L_i(\theta) = \mathbb{E}_{z \sim P_i}[\ell(\theta;z)]6-constraint to optimize the mean of the hardest minθΘmaxqQ i=1mqiLi(θ),Li(θ)=EzPi[(θ;z)]\min_{\theta \in \Theta} \max_{q \in Q}~ \sum_{i=1}^m q_i L_i(\theta), \quad L_i(\theta) = \mathbb{E}_{z \sim P_i}[\ell(\theta;z)]7 groups, mitigating outlier-dominated worst-group risks.
  • Wasserstein Group-Uncertainty (Konti et al., 10 Sep 2025): Extends Group-DRO by robustifying each group with a within-group Wasserstein DRO ball, optimizing minθΘmaxqQ i=1mqiLi(θ),Li(θ)=EzPi[(θ;z)]\min_{\theta \in \Theta} \max_{q \in Q}~ \sum_{i=1}^m q_i L_i(\theta), \quad L_i(\theta) = \mathbb{E}_{z \sim P_i}[\ell(\theta;z)]8. This interpolates between classical DRO and Group-DRO via a hyperparameter minθΘmaxqQ i=1mqiLi(θ),Li(θ)=EzPi[(θ;z)]\min_{\theta \in \Theta} \max_{q \in Q}~ \sum_{i=1}^m q_i L_i(\theta), \quad L_i(\theta) = \mathbb{E}_{z \sim P_i}[\ell(\theta;z)]9.

Group-Agnostic Reweighting

  • Bitrate-Constrained DRO (BR-DRO) (Setlur et al., 2023): Instead of hard or proto-group partitions, BR-DRO constrains the adversarial reweighting function by its description length (e.g., via neural parameterization, VIB, PiP_i0 regularization), thus focusing on “simple” groupings (e.g., background, lighting) and avoiding noise memorization as in unconstrained CVaR-DRO.

4. GRAPE: Multi-Target Adaptive Pretraining via Group-DRO

GRAPE (Fan et al., 26 May 2025) generalizes Group-DRO to the domain-and-task reweighting setting of large-scale LLM pretraining. The framework is characterized by simultaneous adaptation of:

  • Domain weights (PiP_i1): Control the mixture proportions over PiP_i2 source data domains (e.g., pretraining corpora)
  • Task weights (PiP_i3): Emphasize PiP_i4 downstream target tasks

The core innovation is an interleaved minimax game: PiP_i5 where the progress metric is the Rate-of-Improvement (RoI),

PiP_i6

with PiP_i7 the gradient for domain PiP_i8, PiP_i9 the loss on target ii0, and ii1, ii2 Bregman-divergence regularizers. Updates are performed via multiplicative mirror descent with normalization. The inner minimization in ii3 prioritizes tasks improving slowest, the outer maximization in ii4 boosts domains that most benefit those tasks.

Unlike single-target or task-agnostic domain mixture optimization, GRAPE ensures balanced, Pareto-stabilizing progress across all target tasks, with theoretical convergence to a Pareto frontier (under convexity assumptions) and empirical reductions in loss variance across tasks.

5. Applications and Empirical Performance

Classical Benchmarks

  • On the Adult (UCI) dataset and synthetic data, near-optimal Group-DRO algorithms (GDRO-EXP3, GDRO-TINF) (Soma et al., 2022) reach specified optimality gaps up to ii5 times faster than prior methods (e.g., Sagawa et al. ICLR 2020), with convergence matching theoretical bounds.

Fairness and Uncertainty

  • FairDRO (Jung et al., 2023), a classwise DRO, integrates fairness metrics (Equalized Conditional Accuracy, DCA) directly as precise regularizers, strictly unifying reweighting and penalty perspectives for group fairness (achieving state-of-the-art on vision, language, and tabular benchmarks).

Large-Scale LLM Pretraining

  • On ClimbLab and SlimPajama, GRAPE (Fan et al., 26 May 2025) outperforms uniform, DoGE, PCGrad, RegMix, and CLIMBMix mixtures across 6 reasoning tasks (ARC, SciQ, PIQA, LogiQA, HellaSwag), with avg accuracy improvements up to +3.3 points and up to 60% acceleration in low-resource language PPLs. The dynamic curriculum matches domain mixing to emergent target task challenges (e.g., shifting focus from reading comprehension to commonsense reasoning).

6. Limitations, Variants, and Future Directions

  • Convergence and optimality guarantees for saddle-point procedures, especially in the deep non-convex function space of LLMs or high-dimensional representation clustering, remain an open question except under strong convexity.
  • Group-DRO and its variants can be sensitive to group granularity (too coarse may miss worst-cases, too fine may suffer overfitting or impractical labeling). Adaptive group discovery (AGRO, Group-DRO++) and soft/multimembership (PG-DRO) mitigate this but introduce their own hyperparameters and challenges.
  • Computational overhead from adversarial or joint clustering (K-means in Group-DRO++, descent-ascent for Wasserstein balls) can be substantial.
  • In large-scale multi-task settings, GRAPE's efficiency depends on judicious balancing of reweighting intervals, entropy regularization, and the choice of domain/task partitions.
  • Potential future directions: sample-level DRO (individual hard instances), online tracking of shifting group-uncertainty (Wasserstein balls), end-to-end joint optimization of group assignment and model, and extension to federated/distributed settings (Guo et al., 2024).

7. Nomenclature Distinctions: Group-DRO vs. GRAPE (and GRAPE variants)

  • Group-DRO is the robust learning paradigm minimizing the worst-case group risk for known or adaptively identified groups.
  • GRAPE (Group Robust Multi-target Adaptive Pretraining) specifically refers to the multi-source, multi-target, adaptive domain mixture framework for LLM and multi-task pretraining, unifying Group-DRO for the target-task prioritization loop with large-scale training data mixture optimization (Fan et al., 26 May 2025).
  • GRAPE (Group RepresentAtional Position Encoding) in (Zhang et al., 8 Dec 2025) is an unrelated positional encoding framework based on group actions in Transformers and is not a robust optimization algorithm.

There is no connection between the minimax robust optimization Group-DRO/GRAPE methodology discussed here and the positional encoding framework called “GRAPE” in long-context models (Zhang et al., 8 Dec 2025); the similarity in acronym is coincidental and context-dependent (Soma et al., 2022).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Group-DRO / GRAPE.