Does Group DRO Cycle? Stabilizing the Model–Group-Weight Game for Worst-Group Robustness

Group distributionally robust optimization (Group DRO) trains a classifier to do well on its worst-performing subgroup, such as waterbirds photographed on land, instead of on the average example. Under the hood it is a two-player game. The model's weights try to lower the loss. A vector of group weights, a probability distribution over groups, tries to raise it by shifting attention toward whichever group is currently doing worst. The standard solver takes alternating stochastic gradient steps for both players, and game theory has shown that such steps can orbit an equilibrium instead of settling at it. We propose to test whether Group DRO's training exhibits this orbiting. The observable symptom would be group weights that chase a worst group which keeps flipping. If it does, we test whether a stabilized solver fixes a practical weakness. Today Group DRO needs group-labelled validation data to pick the right stopping epoch and weight decay. A solver that converges in its final iterate should not.

Put in two sentences: if the worst-group accuracy of Group DRO swings from epoch to epoch because the two players cycle, then choosing a checkpoint with group labels is really just choosing a good phase of the cycle. Damping the cycle on both sides, with a slowly moving anchor for the model weights and one for the group weights, should make the last checkpoint good without any group-labelled model selection.

Core Claim

Distributionally Robust Neural Networks is the paper that introduced Group DRO for deep networks. Its fix for overparameterized collapse was strong weight decay or early stopping, and its reported gains rely on selecting hyperparameters and stopping points by worst-group validation accuracy. That paper motivates this proposal. It solved the game with plain online descent–ascent and never examined the joint dynamics. Our hypothesis is that part of what weight decay and early stopping buy is damping and freezing an oscillating game, not only preventing memorization.

Two lines of work supply the method. The first is the result in The Limit Points of (Optimistic) Gradient Descent in Min-Max Optimization: stable points of plain descent–ascent are a strict subset of what optimistic methods reach, and neither is guaranteed to reach a true local min-max solution. The second is the demonstration in Universal Gradient Descent Ascent Method for Nonconvex-Nonconcave Minimax Optimization that smoothing both players' variables (DS-GDA) escapes limit cycles. DS-GDA was shown only with exact gradients and only on low-dimensional toy games.

The closest existing work is Robust Learning of A Group DRO Neuron. It stabilizes only the group-weight side, using extrapolation (a look-ahead step on the group weights). Its guarantees cover a single ReLU neuron, and at scale it was used for pretraining domain reweighting, not worst-group classification. We differ in three ways. We measure cycling in deep Group DRO directly. We stabilize both sides and ablate each side separately. We evaluate on the question practitioners care about: worst-group accuracy when no group labels are available at validation time.

Research Program

The work has three stages.

Diagnose. We train Group DRO exactly as in Sagawa et al. on Waterbirds, CelebA, MultiNLI and CivilComments-WILDS. We log the group-weight vector every few steps and the per-group validation accuracy every epoch. Cycling has three concrete signatures:

  • the identity of the highest-weighted group switches repeatedly;
  • the group weights show periodic autocorrelation;
  • worst-group validation accuracy varies widely across the final checkpoints even while average accuracy is flat.

We also build a two-group linear toy problem with one core feature and one spurious feature. There we can compute the game's Jacobian and check whether its eigenvalues are complex, which is the mathematical signature of rotation.

Stabilize. We propose a stochastic, doubly anchored Group DRO. It optimizes the following objective:

$$F(\theta, q; z, v) = \sum_{g} q_g \hat{L}_g(\theta) + \frac{p}{2}\|\theta - z\|^2 - r\,\mathrm{KL}(q \,\|\, v).$$

Here $\hat{L}_g(\theta)$ is the minibatch loss of group $g$, $q$ is the group-weight vector on the probability simplex, and $z$ and $v$ are slow exponential moving averages of $\theta$ and $q$. The constants $p$ and $r$ set anchor strength. We use KL in place of DS-GDA's squared distance for $q$ so that the group-weight update stays a multiplicative, simplex-respecting step.

This objective is distinct from weight decay. Weight decay pulls $\theta$ toward zero, which changes the solution. The anchor pulls $\theta$ toward its own recent average, which leaves the fixed points of the game unchanged and only damps rotation around them. This is the mechanism that A Single-Loop Smoothed Gradient Descent-Ascent Algorithm for Nonconvex-Concave Min-Max Problems analyzes for the model-weight side alone.

Analyze. On the toy game we check whether the anchored dynamics provably turn complex eigenvalues into contracting ones for some range of $(p, r)$. We also check whether that range survives minibatch noise. That second question is open even for DS-GDA.

Baselines

The do-nothing reference is ERM. The file reports worst-group accuracies of 60.0% on Waterbirds, 41.1% on CelebA and 65.7% on MultiNLI (Distributionally Robust Neural Networks), and 56.0% on CivilComments-WILDS (WILDS).

The strongest competitor is Group DRO with strong regularization and group adjustments, selected by worst-group validation accuracy. It reports 84.6% worst-group accuracy on Waterbirds with strong regularization and 90.5% with the $C/\sqrt{n_g}$ adjustment, 86.7% on CelebA and 77.7% on MultiNLI (Distributionally Robust Neural Networks). WILDS reports 70.0% on CivilComments. It is the strongest competitor because it is the only method in the file with large reported worst-group gains on these exact benchmarks.

We run every method with the same backbones, epochs, and hyperparameter grid size. We report two protocols:

  • Oracle selection: checkpoints chosen by worst-group validation accuracy.
  • Label-free selection: last iterate, or selection by average validation accuracy.

Beating the baseline means one of two outcomes. Under label-free selection, we should match its oracle-selected number within about one point. Under oracle selection, we should equal or exceed it while showing lower variance across seeds and across the weight-decay grid.

Stochastic Re-weighted Gradient Descent via Distributionally Robust Optimization (RGD) weights each minibatch in closed form by exponentiated loss, with clipping. It is the strongest game-free alternative, and we run it with group-agnostic weights at matched compute. No reported result was found on Lacuna for RGD worst-group accuracy on Waterbirds, CelebA, MultiNLI or CivilComments.

The Group DRO neuron method's group-weight extrapolation, transplanted to deep Group DRO, isolates whether stabilizing the group weights alone is enough. No reported result was found on Lacuna for it on these benchmarks.

Lookahead interpolation with the constant $\lambda = 0.5$ from Stable Nonconvex-Nonconcave Training via Linear Interpolation is a cheap stabilizer on both players and serves as a second stabilizer baseline.

Our key ingredient is anchoring both players. The ablations therefore set $p = 0$ (group-weight anchor only) and $r = 0$ (model-weight anchor only).

Why not just…?

Why not just shrink the group-weight step size or average the group weights? This is the most serious threat. A small step size on $q$, or an exponential average of $q$, is nearly our group-weight anchor with $p = 0$. We include both in the same tuning grid. If they match the full method, the honest conclusion is that damping the group weights suffices, and the contribution becomes the diagnosis plus that simple recipe. Our method earns its extra machinery only if the model-weight anchor adds measurable robustness to the stopping epoch.

Why not just use strong weight decay, as Sagawa et al. do? Their numbers show it works under oracle selection. The open question is whether it works without group-labelled validation, which that paper does not test. We sweep weight decay under both selection protocols. If weight decay alone flattens the checkpoint-to-checkpoint variance, cycling is not the bottleneck.

Why not just average model weights after training? Post-hoc averaging of checkpoints could hide oscillation without changing the dynamics. We run it as a baseline. If it matches us, the practical claim survives but the claim about the training mechanism weakens.

Why not avoid the game with RGD? RGD's closed-form minibatch weights cannot cycle. However, they do not target groups, and RGD's own authors call the clipping a heuristic. The comparison above shows whether group-level adversarial weighting is worth its instability.

Decisive Checks

The first check can falsify the premise. We look for cycling signatures in deep Group DRO: repeated flips in which group gets the highest weight, and periodic group-weight autocorrelation. If worst-group validation accuracy is stable across late checkpoints under the Sagawa configuration, we report a negative result and stop there. The toy game's Jacobian eigenvalues provide a controlled confirmation.

The second check is the label-free protocol described in Baselines. Given cycling, the stabilized method should shrink the gap between oracle-selected and last-iterate worst-group accuracy on Waterbirds and CelebA.

The third check plots worst-group accuracy against weight decay and stopping epoch. It should show a wider plateau for the doubly anchored solver than for plain Group DRO. It should also show that the model-weight anchor, not only the group-weight one, is responsible.

CivilComments-WILDS tests whether the effect persists under an in-the-wild shift, where WILDS found robust objectives rarely beat ERM.