A classifier trained on data where a shortcut, such as image background, usually predicts the label will typically fail on the rare examples where the shortcut points the wrong way. Theory and practice disagree sharply about how bad this gets as models grow. One line of theory proves that any overparameterized linear classifier that perfectly fits its training data must rely on the shortcut, and so does no better than chance on the hard groups (Malign Overfitting). Yet bigger pre-trained networks trained the ordinary way get better on those groups (The Effect of Model Size on Worst-Group Generalization). We propose that both are right about different moments of training. The impossibility result describes where gradient descent ends up after infinite time. What practitioners observe is decided earlier, by a race between two processes. In the first, the rare conflicting examples drive the model toward the true feature. In the second, the model memorizes those same examples using irrelevant high-dimensional noise, which makes their gradient vanish and ends the first process.
We will analyze this race with gradient flow, which treats training with a very small step size as a continuous-time differential equation whose trajectory can be solved or bounded. From the analysis we will derive a signal that can be measured during training without group labels and that says when memorization of the conflicting examples begins. The practical output is a way to set the stopping time, or the strength of a logit penalty, without the group-annotated validation data that current robust-training practice quietly depends on. The scientific output is a single account of why spectral decoupling, sharpness-aware minimization, early stopping, and pre-trained scale all help: each delays memorization or gives the true feature a head start in the race.
Core Claim
Worst-group accuracy of an overparameterized classifier is a finite-time property of the training trajectory. Training passes through three phases. In the first, the shortcut is learned because it reduces loss fastest. In the second, "rescue," the majority examples are fit and their gradients shrink, so the remaining gradient comes mostly from conflicting minority examples, and it pushes the true feature up. In the third, "memorization," minority examples are fit through noise directions, their gradients vanish, and the true feature stops growing. The final worst-group accuracy is set by how much the true feature grows during rescue before memorization starts. We call the start of the third phase the memorization onset time $T_{mem}$.
This claim is new relative to prior work in the following ways. Gradient Starvation identifies the first phase, where easy features starve others of gradient, but analyzes it in the linearized kernel regime without a memorization channel. Minor First, Major Last tracks feature order under gradient flow for sharpness-aware minimization in diagonal linear networks on separable data, but it has no conflicting minority group and no noise dimensions to memorize with. Malign Overfitting characterizes the endpoint, not the path. None of the three predicts when robustness is won or lost.
Research Program
The analytic model is logistic regression, and later a two-layer diagonal network, on inputs with three parts. The first is a core coordinate $y\mu_c$ with signal strength $\mu_c$ and label $y$. The second is a spurious coordinate $s\mu_s$ with $\mu_s > \mu_c$, where $s = y$ with probability $p$ close to 1 and $s = -y$ otherwise. The third is a noise block $\xi \in \mathbb{R}^d$ with $d \gg N$, where $N$ is the number of training examples. This is the two-environment Gaussian setting of Malign Overfitting, extended with an initialization $w(0)$ that has alignment $a$ with the core direction, which stands in for pre-training. Gradient flow is
$$\frac{dw}{dt} = \frac{1}{N}\sum_{i=1}^{N} \sigma(-y_i w^\top x_i)\, y_i x_i ,$$
where $w$ is the weight vector, $x_i, y_i$ are the $i$-th input and label, and $\sigma$ is the logistic sigmoid. The factor $\sigma(-y_i w^\top x_i)$ is each example's residual weight, the quantity whose collapse causes starvation.
We will derive the core-to-spurious weight ratio $w_c(t)/w_s(t)$ through the three phases. Our target is a closed form or tight bounds for $T_{mem}$ and for the ratio at $T_{mem}$, as functions of $\mu_c/\mu_s$, minority fraction $1-p$, $d/N$, noise scale, depth, and alignment $a$. The reasoning behind the expected form is as follows. Memorizing a minority example through noise requires $\|w_\xi\|$ to reach roughly its margin deficit. The noise directions of different examples are nearly orthogonal when $d \gg N$, so each minority example has a private direction whose growth rate scales with $\|\xi_i\|^2 \approx d$. $T_{mem}$ should therefore shrink as $d$ grows. This predicts that more raw memorization capacity hurts, while pre-training, which both raises $a$ and compresses the representation so that the effective $d$ is smaller, helps. That is consistent with the scale effect appearing mainly for pre-trained models (The Effect of Model Size on Worst-Group Generalization).
We will add the logit penalty of spectral decoupling to the flow. It keeps majority residuals from vanishing, so we expect it to slow the collapse of rescue and to act like a finite time horizon. We will derive the map from penalty strength $\lambda$ to an effective stopping time. We will also add the sharpness-aware perturbation, which Sharpness-Aware Minimization Enhances Feature Quality shows up-weights hard examples. We expect it to lengthen rescue rather than prevent memorization. That would supply the trajectory-level explanation that Towards Understanding the Role of SAM says flatness bounds cannot provide.
The label-free signal follows from the mechanism. During rescue, the gradients of high-loss examples point along a shared direction, the core feature. During memorization, each high-loss example's gradient is mostly idiosyncratic. We define the idiosyncratic fraction. Take the gradients of the top-$k$ highest-loss training examples, computed with respect to the last layer so the cost stays small. The idiosyncratic fraction is the share of their total squared norm that lies outside their top few principal directions. The theory predicts that this fraction jumps at $T_{mem}$. We will use the jump to pick a stopping checkpoint, or to schedule $\lambda$ upward when it occurs. No group labels are involved at any point.
Baselines
The naive reference is standard empirical risk minimization, meaning training to convergence and selecting on average validation accuracy. Gradient Starvation reports 40.35% worst-group accuracy on CelebA and 23.7% on Colored MNIST under standard training.
The strongest competitor on this question is spectral decoupling from the same paper. It is the only method in the file that addresses starvation without environment labels, and it reports 83.24% CelebA worst-group accuracy and 68.4% on Colored MNIST. Its weakness is a sensitive $\lambda$. The fair comparison runs spectral decoupling in two ways, each with the same grid size and seeds as our method. In the first, $\lambda$ is tuned on group-labeled validation data, which is the favorable setting the reported numbers assume. In the second, $\lambda$ is tuned on average validation accuracy only, which matches our information budget. Beating it means matching the group-tuned version within seed noise while using no group labels, and clearly exceeding the label-free version.
The second competitor is sharpness-aware minimization, evaluated along its full trajectory rather than only at its endpoint. Towards Understanding the Role of SAM reports an average 4.76% zero-shot out-of-distribution gain over Adam. For Waterbirds worst-group accuracy under SAM, no reported result found on Lacuna.
The third comparison is the oracle upper bound: early stopping on group-labeled validation worst-group accuracy. Our label-free stopping rule should recover most of the gap between plain training and this oracle. We will also run post-hoc last-layer correction with EvA (EvA) on our selected checkpoint and on the final checkpoint. EvA reports 4.1% higher Waterbirds accuracy than prior methods, and we treat it as complementary rather than as a rival.
The ablation that isolates the key ingredient replaces the idiosyncratic-fraction signal with simpler trajectory signals. One is the training-loss plateau. The other is the onset of fitting the highest-loss decile, which ignores gradient geometry. If these select equally good checkpoints, the gradient-geometry part of our story adds nothing.
Why not just…?
Why not just early-stop on a group-labeled validation set? This works, and it is our oracle. But it requires the group annotations whose absence is the whole difficulty. When Does Group Invariant Learning Survive Spurious Correlations? shows that inferring groups is brittle when shortcuts are multivariate. If a label-free signal cannot come close to the oracle, the practical half of this proposal fails. The explanatory half would survive.
Why not just use spectral decoupling? This is the real threat. Its reported gains are large, and if $\lambda$ can be tuned robustly without group labels, our stopping rule is redundant. Our theory predicts that label-free tuning of $\lambda$ fails, because average accuracy is insensitive to the rescue phase. The paired runs described under Baselines test that prediction directly. If label-free spectral decoupling matches group-tuned spectral decoupling, we will report that result and reposition the work as the theory of why it works, namely the $\lambda$-to-horizon map.
Why not just scale up a pre-trained model? The Effect of Model Size on Worst-Group Generalization reports roughly 18.39% lower worst-group error on Waterbirds from a larger pre-trained ResNet. The same paper finds weak effects from scratch and plateaus on CelebA. Our model says scale helps through core alignment and a smaller effective memorization dimension, not unconditionally. We will measure $T_{mem}$ across model sizes to test whether it tracks the reported gains.
Why not just prune spurious units after training, as EvA does? Post-hoc pruning can only reweight features that already exist in the representation. If memorization cuts rescue short before the core feature is well represented, pruning has nothing to recover. Running EvA on early and final checkpoints measures exactly this.
Proposed Experiments
The first stage is synthetic. We will simulate the Gaussian two-environment model while sweeping $d/N$, $\mu_c/\mu_s$, $a$, depth, and $\lambda$, and check that measured $T_{mem}$ and the final core ratio follow the derived scaling. The decisive check is that final worst-group accuracy is predicted by the core ratio at $T_{mem}$ better than by final loss sharpness.
The second stage uses Colored MNIST, PC-MNIST, CIFAR-2, Waterbirds, CelebA, and MultiNLI, with three to five seeds each. We will log full trajectories: worst-group accuracy, idiosyncratic fraction, and last-layer probe error on the core attribute, following the probing protocol of Sharpness-Aware Minimization Enhances Feature Quality. Four checks decide the proposal. The first is whether worst-group accuracy stops improving within a small window of the idiosyncratic-fraction jump across all datasets. The second is whether sharpness-aware minimization's advantage appears as a later jump rather than a different endpoint. The third is whether spectral decoupling with increasing $\lambda$ delays the jump monotonically. The fourth is whether the label-free stopping rule reaches most of the oracle early-stopping worst-group accuracy.
The theory is falsified if the jump is absent or uncorrelated with the worst-group peak. It is also falsified if pre-trained larger models show no later $T_{mem}$ despite better worst-group accuracy.
References
- Malign Overfitting: Interpolation and Invariance are Fundamentally at Odds
- The Effect of Model Size on Worst-Group Generalization
- Gradient Starvation: A Learning Proclivity in Neural Networks
- Minor First, Major Last: A Depth-Induced Implicit Bias of Sharpness-Aware Minimization
- Sharpness-Aware Minimization Enhances Feature Quality via Balanced Learning
- Towards Understanding the Role of Sharpness-Aware Minimization Algorithms for Out-of-Distribution Generalization
- EvA: Erasing Spurious Correlations with Activations
- When Does Group Invariant Learning Survive Spurious Correlations?