SGD Provably Prioritizes a Shortcut Spurious Feature in the XOR Model
Tyler LaBonte, Vidya Muthukumar
NeurIPS 2026
TL;DR. We theoretically characterize how SGD on a two-layer ReLU neural network learns the spurious correlation in an XOR model.
Abstract. Neural networks are known to be susceptible to over-reliance on spurious correlations. However, the precise mechanism by which models exploit shortcut features is not fully understood, and algorithms to mitigate this behavior rely on as yet unjustified assumptions about the learned representations. In this work, we provide the first end-to-end theoretical characterization of spurious feature learning for two-layer ReLU neural networks trained by online minibatch SGD on the logistic loss. We consider data drawn from the high-dimensional Boolean hypercube with a quadratic signal function (namely XOR) and a linear spurious correlation. We show that SGD learns the spurious feature first, and exponentially fast. Moreover, the optimization dynamics couple the spurious and signal features, with a stronger spurious component inhibiting signal feature learning. Our analysis reveals precise phase transitions in the learning dynamics. In the first phase, alignment between the signs of the spurious feature and second-layer weight drives rapid growth of the spurious feature. When the spurious correlation is maximally strong, we show theoretically that the spurious feature dominates even at the sample complexity threshold where XOR would be learned in isolation (i.e., if the spurious feature was absent). In contrast, when the correlation strength is constant, we provide preliminary evidence that the model can eventually learn the XOR signal, although the spurious feature is not forgotten.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This work presents a precise analysis of how SGD on ReLU network learns spurious features. The analysis assumes an XOR data model, and clearly establishes two phases of feature learning.
All the reviews were very sound and informative. The critical issue in the initial reviews centred the assumption that , which implies that the data is highly unbalanced. The authors addressed this partially through additional mathematical analysis, which was appreciated by the reviewers. Additionally, there were also some comments to provide further empirical evidence, which were adequately addressed by the authors.
Final justification
This is an interesting work, and the reviews were unanimous in acceptance of the work. The scope is somewhat narrow due to a strong assumption, but the work certainly advances the understanding of SGD-based feature learning in XOR.
Read meta-review
Meta-review
This work presents a precise analysis of how SGD on ReLU network learns spurious features. The analysis assumes an XOR data model, and clearly establishes two phases of feature learning.
All the reviews were very sound and informative. The critical issue in the initial reviews centred the assumption that , which implies that the data is highly unbalanced. The authors addressed this partially through additional mathematical analysis, which was appreciated by the reviewers. Additionally, there were also some comments to provide further empirical evidence, which were adequately addressed by the authors.
Final justification
This is an interesting work, and the reviews were unanimous in acceptance of the work. The scope is somewhat narrow due to a strong assumption, but the work certainly advances the understanding of SGD-based feature learning in XOR.
1 comment
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies the case of minibatch SGD where a two-layer ReLU network is trained on a sparse XOR dataset with a spurious feature. The paper first theoretically studies the case where the correlation strength decays sufficiently fast. In the initial phase, the spurious feature grows exponentially fast while the signal feature grows slowly but not suppressed. After a small amount of time, the spurious feature suppresses the signal feature. Therefore, the test accuracy on the minor group becomes very low. The story is a bit different when it comes to constant case. The paper empirically shows that the network can manage to learn the signal in the end for larger ’s. Still, the spurious features are retained after the signal feature is learned.
Strengths and weaknesses
Strengths
- Most previous theoretical works (as far as I read) on spurious correlation assumed a synthetic dataset of a `linear’ target function with different feature vector norms. In this work, the authors control the signal strength with non-linearity of the target function instead of explicit feature vector norms, which is way more realistic and meaningful. Also, it makes the problem more challenging.
- The theoretical analysis in this paper from Phase I to II seems very solid.
- The paper tries to explain the high concepts behind the proofs through a sketch.
Weaknesses
- This is a minor problem and can seem a bit far-fetched for a theoretical work: the qualitative conclusion that a simpler linear shortcut is learned before a nonlinear XOR signal is quite expected. The main novelty lies in the technical analysis and precise characterization of the dynamics rather than in the qualitative phenomenon itself. SNR of a non-linear XOR target function is predicted to be smaller than the spurious linear function, and the narrative would be similar to previous works on linear target functions. These works show us some other surprising results alongside such a narrative: for example, Lu et al. [1] also study the synthetic dataset with linear spurious features, but they show that a large learning rate (edge of stability) could prevent the network from noise memorization and fitting to a spurious feature. While I admit that the analysis of this paper is more challenging than those previous works, it would have been nice if the paper had more `surprising’ elements.
- While many papers study the behavior of a network 'during’ convergence of shortcut learning, a lot more people would be more interested in the behavior of the network `after’ convergence, e.g. a max margin solution for logistic loss, a min norm interpolator for MSE loss, etc. However, the solution after convergence for constant is studied empirically but not theoretically thoroughly analyzed. This is sad since this was the most intriguing point when I first looked at the abstract as a reviewer. I have a fair amount of experience with a very same synthetic dataset of sparse XOR, and for data of dimension (about) 30 the two-layer ReLU network usually moderately learns XOR. Also, for regular shortcut learning datasets like Waterbirds, the network trained under ERM shows a high test accuracy up to 97%. I think it is highly important to analyze the case after convergence under constant , but it is not thoroughly dissected in this very paper.
[1] Lu, Miao, et al. "Benign oscillation of stochastic gradient descent with large learning rate." International Conference on Learning Representations. Vol. 2024. 2024.
Questions
-
In Figure 2 and 7, the dimension of the data is pretty high as 100, and the rest are very high as 1000. How sensitive are the empirical phase transitions to the ambient dimension? Do the same qualitative dynamics appear for moderate dimensions such as d = 30 or d = 50? Especially, dimension 50 is a quite general setup when studying Boolean data. For this setup, I think the result could be different.
-
Such an analysis might be probable since XOR (or PARITY) is a very non-linear function with no linear components. Meanwhile, a linear classifier would show `above random’ accuracies on real datasets like MNIST or CIFAR-10. What would happen if the target function has linear components (like AND gates)? When would a spurious feature suppress the target features?
-
The initialization scale and the learning rate are not just small but larger than certain values. Could you explain the necessity of these assumptions?
Limitations
yes
Final justification
** After Rebuttal ** The rebuttal satisfactorily addresses my concerns about moderate-dimensional behavior, target functions with linear components, and the motivation for the technical assumptions. I also agree that the main result is stronger than the expected observation that simple shortcuts are learned first. I therefore raise my score.
Still, what remains is that the late-time behavior for constant correlation strength is still primarily empirical. The authors gave a lemma on this case, which shows a fair possibility, but it is certainly not a full theory. The discussion on the max-margin bias explains why existing results do not directly characterize the relevant phenomena, but it does not replace a theoretical analysis of eventual signal learning and shortcut retention. Thus, I view the rebuttal as strengthening the acceptance case, but not enough to justify a strong-accept score.
Formatting concerns
N/A
5 comments
Rebuttal
We warmly thank Reviewer Ew2J for their applicable comments and insightful questions. Below, we provide responses to each of the reviewer’s points.
W1: Surprising elements
We thank the reviewer for engaging with the positioning of our results, and we agree that the order of signal and spurious learning is unsurprising at a high level. We would argue that our main theorem asserts something strictly stronger. Qualitatitively, one expects the shortcut to be learned first and the signal to be learned later. Theorem 3.2 instead shows the signal is not learned at all at the sample complexity at which XOR is learnable in isolation [1]: the spurious feature actively suppresses the signal rather than merely preceding it, such that the weight on the signal feature is below the noise floor (specifically, ). In other words, the signal would not dominate even if the spurious feature were completely removed by a debiasing algorithm!
Several further elements were, to us, unexpected:
-
In Phase Ia, spurious feature growth requires sign alignment between and the second-layer weight, so the signal and spurious features are entangled at initialization rather than learned in cleanly separated phases (providing theoretical justification for the empirical findings of [2]).
-
The Phase II spurious feature recurrence has a fixed point at , so at constant the spurious feature grows geometrically and then decays geometrically: the spurious feature is partially un-learned, which is what permits eventual signal learning.
-
The condition is not a proof artifact but a prescriptive phase transition boundary, corroborated by simulations.
On Lu et al. [3]: our Assumption 3.1 requires , so we operate in a small-learning-rate regime in which edge-of-stability effects are absent. We read their result as complementary: it is a distinct escape mechanism from shortcut reliance driven by learning rate, where ours is driven by the natural learning dynamics on features of competing complexities.
W2: Solution upon convergence
Regarding the solution upon convergence, we would offer one observation that we think reframes the question: the max-margin solution in our setting does not depend on , and therefore cannot distinguish any of the key phenomena we identify.
Since the minority group has positive probability for every , any predictor with positive margin on the support of must classify all of correctly. Moreover, any nonzero weight on raises the majority group margin while lowering the minority group margin, strictly decreasing the minimum. The max-margin direction therefore places zero weight on the spurious coordinate and computes XOR for every -- this is exactly the optimal neural network from Section 2.3. An implicit bias characterization therefore could not distinguish the phase transition, the exponential suppression of the signal, the retention of the spurious feature, etc.
We would also note that existing implicit bias results (e.g., [4, 5]) characterize directional convergence on a fixed dataset conditional on reaching zero training error, and guarantee a KKT point rather than the global max-margin solution. Our setting uses online minibatch SGD with fresh samples, so there is no fixed training set and no interpolation.
Q1: Moderate-dimension empirics
We follow the reviewer’s suggestions and evaluate whether our results are robust to moderate dimensions. We fix , , and , and we average over ten random seeds.
We find that the feature learning dynamics implied by our theory continue to hold in moderate dimension. In our first table, we detail the majority and minority group accuracies at the end of training for each . We find that the majority group is perfectly fit regardless of dimension (the spurious feature is always learned). On the other hand, seems to control whether the model eventually learns the XOR signal; we think this makes intuitive sense since our threshold requires much smaller as increases, but here we fix . We remark that this phenomenon matches the observation of the reviewer that XOR is learned at .
| dimension | majority acc | minority acc |
|---|---|---|
| 30 | 1.000 ± 0.000 | 0.914 ± 0.156 |
| 50 | 1.000 ± 0.000 | 0.571 ± 0.435 |
| 100 | 1.000 ± 0.000 | 0.085 ± 0.268 |
In our second table, we detail the first step at which the spurious feature is learned (quantified as majority group acc ) and the first step at which the signal feature is learned (quantified as minority group acc ). We find that regardless of dimension, the spurious feature is learned within the first 15 steps of training. Likewise, the XOR signal is easier to learn in lower dimensions.
| dimension | step where maj acc | step where min acc |
|---|---|---|
| 30 | 14 | 1063 |
| 50 | 13 | 1034 |
| 100 | 12 | never |
Q2: Target functions
We thank the reviewer for this question, which we think identifies an interesting boundary of our mechanism. The relevant property of XOR is not nonlinearity per se, but that its degree-1 Fourier coefficients vanish. Comparing Lemma C.1 and Lemma C.2, we find that the partial derivative for the -th coordinate is approximately -- indeed, our spurious coefficient is exactly . But because for XOR, the signal has no first-order term, which is precisely what causes our signal/spurious separation.
If the target has a nonzero degree-1 component (unlike XOR), we expect this separation to be mitigated, or at least hold only up to constants. This is because the signal would receive first-order drift proportional to that of the spurious feature, and they would grow together. More importantly, we would not expect its degree-1 component to be exponentially suppressed in the same manner that we show for the degree-2 component of XOR. Our prediction is that a shortcut exponentially suppresses the nonlinear residual of the target while its linear projection is merely slowed (perhaps by a constant factor). This is consistent with the reviewer's observation that linear probes are above chance on real data, and with the empirical premise of DFR that both features are learned but misweighted.
We note that AND alone is not a good separating case, since computes it exactly and its linear part alone suffices. The informative class is target functions where the nonlinear part is actually necessary, e.g., staircase functions in the sense of Abbe et al. [6], where leap complexity rather than degree is the right parameter. We think that extending our analysis to more general target functions parameterized by leap complexity is an interesting direction for future work.
Q3: Hyperparameter justification
We thank the reviewer for their close attention to details of our analysis. We have added additional technical sections which explain the necessity of each of our assumptions, with links to their limiting usage in the proofs. To summarize, the upper bound on the initialization scale is limited by Lemma D.14; the initialization scale acts as a free parameter which we can make sufficiently small so that the dynamics dominate in Phase I. The lower bound on the initialization scale is loose and just helps to simplify the analysis. For the condition on the learning rate , the lower bound is necessary to make the total number of iterations , while the upper bound is limited by Lemma D.7(i) and helps with the balancedness condition .
References
[1] Margalit Glasgow. “SGD finds then tunes features in two-layer neural networks with near-optimal sample complexity: A case study in the XOR problem.” ICLR 2024.
[2] Qiu et al. “Complexity Matters: Dynamics of Feature Learning in the Presence of Spurious Correlations.” ICML 2024.
[3] Lu et al. “Benign oscillation of stochastic gradient descent with large learning rate.” ICLR 2024.
[4] Lyu and Li. “Gradient Descent Maximizes the Margin of Homogeneous Neural Networks.” ICLR 2020.
[5] Ji and Telgarsky. “The implicit bias of gradient descent on nonseparable data.” COLT 2019.
[6] Abbe et al. “SGD learning on neural networks: leap complexity and saddle-to-saddle dynamics.” COLT 2023.
Inclined to acceptance, but I partially agree with AC
Thank you for your comments in the rebuttal! The additional experiments and your answers to the questions help me understand your points more clearly. I now see some of the surprising elements of this paper and agree with your opinion.
Especially, I like your insights into the solution upon convergence and the target functions. As in the initial review, I am still inclined towards the acceptance of this paper.
However, I am not sure if the concerns of the AC, which I kind of agree, are fully addressed. The condition is said to be not a proof artifact, but I still think that the phenomenon outside this condition is more important and I do not see additional results on this (PLEASE comment if I am wrong!). As you showed in the experiments, the network moderately learns XOR in a low-dimension setting, which is more important and consistent with the experimental results of Waterbirds and CelebA, but I do not see those situations theoretically described in the paper.
Still, I really like the findings of this paper and I am inclined towards acceptance. Again, please comment if my arguments are wrong!
Thank you very much for your questions and engagement! We think your comments will improve the submission, and we had a particularly insightful time thinking about your target functions question.
Regarding theory for the constant- case, we kindly direct the reviewer to item (W1 / Q1) in our response to Reviewer s1gX. We were able to explicitly derive the time it takes for the XOR signal to be learned in an idealized system reflective of our Phase II dynamics when is small, and we included this new theoretical result as a lemma in our response.
We indeed do not have full theory for the constant- case, and we believe it would be difficult to obtain for moderate . Nevertheless, for the case of a very large number of neurons (i.e., a wide neural network), we believe our theory has significant promise to be adapted to a mean-field infinite-width limit by adapting our lemmas on the population gradient (Appendices A-C) to the population Wasserstein gradient (e.g., Chizat & Bach 2018 and 2020). The ultimate outcome of such an adaptation would be an explicit dynamical system reflecting the growth of the signal and spurious feature in Phase II and accompanying derivations for the time taken for the XOR signal to be learned. In our view this would be a substantial enough mathematical development to merit a paper of its own, but the technical ingredients in this paper already outline a very plausible path to doing so.
We hope these responses address your concerns, and we're glad to elaborate further during the remaining discussion period. If any points above would benefit from additional clarification, please let us know!
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies feature-learning dynamics in a two-layer ReLU network trained by online minibatch SGD on logistic loss. The target is a quadratic XOR function, while the data additionally contains a linear spurious feature. The paper shows that the spurious component is learned first and grows rapidly after its sign becomes aligned with the second-layer weight. Under an asymptotically extreme spurious correlation, the resulting majority-group margin suppresses the acquisition of the XOR feature. At the time scale at which XOR would be learned without the spurious feature, the trained network achieves nearly perfect majority-group accuracy and nearly zero minority-group accuracy.
Strengths and weaknesses
Strength
The problem is important, and the linear-spurious-versus-quadratic-signal model is a clean setting for studying simplicity bias. The analysis goes beyond NTK or random-feature regimes and trains both layers of the network. The phase decomposition is informative, particularly the Phase II argument connecting large majority margins to suppressed signal gradients. The control of the orthogonal components using Boolean-to-Gaussian approximations and coordinate-wise concentration also appears technically substantial.
The main text is generally well organized and provides useful intuition for a long and technically involved proof.
Weakness
The core theorem mixes both "feature simplicity" and "minority proportions tend to zero", The main theorem requires , where lambda is also the minority-group probability. Thus, the long-term domination of the spurious feature is caused by both its lower complexity and the vanishing weight of minority samples in the population objective. The Phase I result appears to capture complexity-driven early prioritization more cleanly and may hold for constant lambda. I suggest the authors to state this as a separate formal result and to distinguish early simplicity bias from long-term domination under extreme imbalance.
The inductive recurrence for each spurious component is only stated up to . The proof then states that all neurons share the same multiplicative update. This conclusion does not immediately follow if the hidden constants in can vary across neurons or groups. Moreover, the proof derives the Phase II duration by replacing the discrete recurrence with a continuous ODE and integrating an exponential integral. This gives the correct intuition, but a formal hitting-time result requires a discrete comparison argument with explicit uniform upper and lower bounds.
Claims about disjoint signal and spurious subnetworks and retention of the spurious feature are based mainly on a few trajectory plots. These observations are interesting, but they should either be weakened or supported with multiple seeds and quantitative measurements of neuron specialization, group accuracy, and the transition as a function of lambda
Although the paper is framed as a result about SGD, the theoretical assumptions require very large fresh minibatches, and much of the analysis proceeds by showing that the minibatch gradient remains uniformly close to the population gradient. Consequently, the identified mechanism may simply be a property of population gradient descent and the logistic-loss geometry, rather than a phenomenon caused or qualitatively altered by stochastic gradients. The paper provides no comparison with full-batch gradient descent, population gradient flow, or different batch-size regimes. I therefore find the attribution of the phenomenon specifically to SGD insufficiently justified.
The main theorem treats the extreme regime , whereas the constant- regime is supported only by preliminary simulations. The scientifically central question—at what scaling of lambda, initialization, and training time the XOR feature begins to overtake the spurious feature—remains unresolved. In particular, the paper provides neither a necessary condition for shortcut domination nor a sufficient condition for eventual signal learning. Thus, despite the title of Section 5, the paper does not theoretically answer when the XOR signal can be learned.
The theorem establishes shortcut reliance at one particular time scale, chosen to match the time at which XOR would be learned in the absence of the spurious feature. It does not show that the XOR signal remains unlearned under longer training, that SGD converges to a spurious solution, or that the signal is permanently suppressed. Since minority examples retain nonzero probability and incur large logistic loss under the purely spurious classifier, substantially longer-time dynamics may be qualitatively different. The claims should therefore be phrased as delayed signal acquisition or long transient shortcut reliance, rather than an eventual failure to learn the signal.
The proof relies on fixed-norm spherical initialization for the first layer, equal-magnitude random-sign initialization for the second layer, a shared small initialization scale, and preservation of the second-layer signs. These properties are directly involved in the initial sign-alignment phase. It is unclear whether the same dynamics survive standard Gaussian or Kaiming initialization, unequal layer scales, biases, or regularization. At minimum, empirical robustness checks across common initialization schemes are needed.
Btw, I'm very interested in this question, so if the author can solve my problem, I will be more than happy to adjust my rating to Accept
Questions
See weakness
Limitations
yes
Final justification
The rebuttal substantially addressed most of my original concerns and clarified the scope of the contribution.
In particular, the authors provided a clearer separation between the Phase I simplicity-driven shortcut acquisition result and the Phase II shortcut domination result under extreme imbalance. The additional clarification on the recurrence analysis and hitting-time argument also addresses my concern about the use of asymptotic recurrences and the need for a more rigorous discrete analysis. Furthermore, the robustness experiments across different initialization schemes, layer scales, biases, and regularization settings strengthen the empirical evidence and clarify which observations are theoretically established versus empirically observed. The authors also clarified that the core mechanism is better interpreted as a population logistic-loss dynamics phenomenon, while SGD provides the finite-sample training framework.
My remaining concern is the constant- and long-time dynamics. The newly provided idealized Phase II analysis is valuable and provides insight into signal–spurious feature crossing, but it does not constitute a complete characterization of the original multi-neuron SGD dynamics. The authors acknowledge this limitation and agree to revise the paper to distinguish between (1) formal finite-time shortcut-dominance guarantees, (2) idealized dynamical analyses, and (3) empirical observations.
Overall, I find the revised scope and clarification of claims substantially improve the paper. While a complete theory of the constant- multi-neuron regime remains an interesting open problem, I do not view this as fatal given the strengthened theoretical and empirical contributions. Assuming the revised manuscript incorporates these clarifications and avoids overstating the constant- conclusions, I am inclined to raise my rating to 4.
Formatting concerns
N/A
5 comments
Rebuttal
We graciously thank Reviewer H7gp for their detailed review and interesting comments. Below, we provide responses to each of the reviewer’s points.
W1: Phase I result
We thank the reviewer for the observation; our Phase I result does indeed hold for constant . We have already stated this as a separate formal result in Proposition D.16. We agree that we can distinguish better between early simplicity bias and long-term spurious feature domination, and we will apply this as a writing edit in the revision.
W2: Multiplicative factors
It is a sharp observation that the spurious feature recurrences are indeed stated up to multiplicative factors (). We fixed this issue shortly after the submission. For example, the Phase I spurious feature recurrence (Lemma D.11) can be sharpened from $$ to $$ with the same analysis. This formalized our hitting-time result as the reviewer requested. It also simplifies various parts of the proof because we do not need to carry hidden multiplicative factors, or worry about whether they match across groups -- they are all explicit coefficients up to the same factor.
W3 / W7: Empirical validation
We follow the reviewer’s suggestions and evaluate whether our results are robust to the initialization, layer scales, biases, and regularization. We start from the same experimental configuration as in the paper, and we average over ten random seeds. We detail the first step at which the spurious feature is learned (quantified as majority group acc ) and the first step at which the signal feature is learned (quantified as minority group acc ). Overall, across all four experiments, we find that Phase I behavior is always consistent, but Phase II behavior may vary.
Our first experiment evaluates whether our results are robust to the initialization scheme with and . Indeed, we find that the spurious feature is learned first under every initialization scheme. However, the spherical initialization (which we use in the paper) is the only one which prevents the XOR signal from being eventually learned over all ten seeds. We believe this may be due to essentially being a constant in these experiments. We also separately verified that Phase Ia sign alignment occurs under every initialization.
| init | step where maj acc | step where min acc |
|---|---|---|
| Spherical | 12 | never |
| Gaussian | 12 | 1531 |
| Kaiming | 55 | 729 |
| PyTorch | 52 | 549 |
Our second experiment evaluates whether our results are robust to unequal layer scales with and . We find that a heavily-weighted output layer speeds up the entire computation and fits the shortcut nearly immediately, while a lightly-weighted output layer slows down the entire computation and enables the XOR signal to be eventually learned.
| ratio of output to hidden layer | step where maj acc | step where min acc |
|---|---|---|
| 0.1 | 67 | 1870 |
| 1.0 (balanced) | 12 | never |
| 10 | 2 | never |
Our third experiment evaluates whether our results are robust to biases (initialized at zero and trained as usual) with and . This result was surprising to us: the inclusion of biases alone is sufficient for the XOR signal to be eventually learned! (Though, again, Phase I behavior does not change). We believe this may be because the bias pushes the pre-activation far from zero during Phase II, which mitigates the exponential suppression of -- essentially, it would prevent the probability from entering the exponential-tailed (Hoeffding) regime in Lemma E.7.
| bias | step where maj acc | step where min acc |
|---|---|---|
| off | 12 | never |
| on | 14 | 556 |
Our fourth experiment evaluates whether our results are robust to regularization strength (here, weight decay) with and . This is the cleanest result; our results are essentially invariant to regularization strength. Both the Phase I and Phase II behaviors are exactly the same here.
| weight decay | step where maj acc | step where min acc |
|---|---|---|
| 0 | 12 | never |
| 1e-3 | 12 | never |
| 1e-2 | 12 | never |
| 1e-1 | 12 | never |
W4: Attribution to SGD
We thank the reviewer for their attention to subtle points regarding SGD. The reviewer is correct that the mechanism we identify is a property of the population dynamics under the logistic loss, rather than of gradient noise. For an explicit comparison with population methods as the reviewer requested: replacing online minibatch SGD with population gradient descent would remove the Hoeffding inequality terms from the error bounds, leaving the core steps of the -approximation, margin concentration, and balancedness argument unchanged. Under population gradient flow one additionally gains exact conservation of , so the balancedness condition would hold identically. On the other hand, full-batch gradient descent on a fixed dataset is not a simplification of our setting, but woud require a completely different analysis: since data reuse breaks independence across iterations, the minibatch gradient would no longer be a conditionally unbiased estimator for the population gradient.
The respect in which online minibatches are essential to our claims is sample complexity accounting. Because each step draws fresh data, the sample complexity is exactly , so our main claim (that the spurious feature dominates at the sample complexity where XOR is learnable in isolation) is a statistical statement with no analogue under population gradients, where no finite sample budget is defined. Our assumptions on the optimization procedure, including the batch size, intentionally match [1] to provide a fair comparison, i.e., to elucidate how introducing a spurious correlation modifies signal feature learning under the same algorithmic parameterization.
W5 / W6: Learning the XOR signal
We agree with the reviewer that understanding the conditions under which the XOR signal is eventually learned in the constant- case is an important direction. Towards this end, we explicitly derive the time it takes for the XOR signal to be learned in an idealized system reflective of our Phase II dynamics. Due to space limitations, we kindly refer the reviewer to item (W1 / Q1) in our response to Reviewer s1gX.
References
[1] Margalit Glasgow. “SGD finds then tunes features in two-layer neural networks with near-optimal sample complexity: A case study in the XOR problem.” ICLR 2024.
Thank you for the additional analysis. I find the idealized Phase II system and the closed-form crossing-time calculation to be a meaningful and nontrivial addition. In particular, the expression for the crossing time provides a concrete prediction for how the signal–spurious crossing depends on the correlation strength and the initial signal magnitude at the start of the idealized Phase II dynamics. The comparison with numerical simulations of the idealized dynamics is also informative.
At the same time, I agree with the authors’ characterization that this does not constitute a complete analysis of the constant- regime in the original model. The closed-form crossing-time result is established only for an idealized Phase II system motivated by the or setting, whereas the main paper studies a multi-neuron network trained by online minibatch SGD. Moreover, the idealized system predicts a U-shaped dependence of the crossing time on , while the actual SGD experiments exhibit monotone behavior. This discrepancy suggests that the reduced system does not capture all effects present in the actual multi-neuron SGD dynamics.
Consequently, the new analysis does not yet establish necessary or sufficient conditions for eventual XOR learning in the original network, nor does it fully characterize the long-time dynamics. Nevertheless, I view it as substantial progress relative to the original submission.
The rebuttal now makes a useful distinction among three levels of results:
- A formal finite-time shortcut-dominance theorem under the extreme-correlation assumption.
- A closed-form analysis of an idealized low-width dynamical system that predicts a signal–spurious crossing for constant .
- Empirical evidence for eventual XOR learning in the actual multi-neuron network.
This distinction substantially addresses my concern about overstatement, provided that it is made explicit in the revised paper. In particular, the constant- section should not suggest that the paper has fully characterized when XOR is learned in the original network. The closed-form result would be more accurately presented as an analytically tractable case study and a starting point for a future multi-neuron or mean-field analysis.
Together with the separate Phase I result, the sharpened discrete recurrence, and the new robustness experiments, the rebuttal resolves most of my technical concerns and substantially clarifies the scope of the contribution. My main question regarding the actual constant-, multi-neuron dynamics remains open, but the authors now acknowledge this limitation and provide a useful partial analysis. I am therefore willing to raise my rating, and I will determine how much to raise it based on the authors’ subsequent response (whether the remaining weaknesses are further addressed).
Thank you for your engagement and positive response!
Dear Reviewer H7gp,
Thank you very much for your engagement and updated positive assessment of our work! Your suggestions were very useful for enriching our results.
We agree completely with your distinction between the three tiers of results, and that a full analysis of the constant-\lambda multi-neuron dynamics remains open. We will definitely revise the paper at all levels to make this distinction clear.
Regarding the last sentence of your response: "I will determine how much to raise it based on the authors’ subsequent response (whether the remaining weaknesses are further addressed)." we just wanted to ask for some clarification -- do you mean the other aspects that you raised in your review (multiplicative factors, experimental robustness to alternative initialization conditions, and attribution to SGD)? We responded to these in our initial rebuttal (see above) - and we are happy to discuss further during the remainder of the discussion period. Please let us know if anything else would be helpful to address.
Best, Authors
- Rating
- 4/6
- Confidence
- 2/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies SGD dynamics for a two-layer ReLU network trained on an XOR target with an easier linear spurious feature. The authors show that, when the spurious correlation is sufficiently strong, SGD first aligns the spurious coordinate of each neuron with the sign of its second-layer weight, causing the spurious component to grow quickly. This makes the network behave approximately like the shortcut predictor , producing large positive margins on majority examples and large negative margins on minority examples. In the later phase, these large margins suppress the gradient signal coming from the true XOR feature, so the XOR direction cannot catch up. Thus, in the extreme-correlation regime, SGD prioritizes the easy linear shortcut over the harder quadratic XOR signal and remains like that over the analyzed training horizon.
Strengths and weaknesses
$\textbf{Strengths:} $ The paper is technically strong. The authors analyze SGD in this non-convex feature-learning setting, without relying on NTK/lazy-training assumptions or freezing one of the layers. This provides useful insight into why neural networks may prefer spurious correlations even when a true signal is present. I particularly like that both layers of the network are trained and that the mechanism is conceptually clean: the easy linear spurious feature is learned first, creates large margins, and then suppresses learning of the harder XOR signal. Overall, the result gives a clear dynamical explanation of shortcut learning in a simple but nontrivial model.
$\textbf{Weaknesses:} $ The main result is established in a rather restrictive regime where the spurious correlation is extremely strong , meaning that the minority group probability vanishes asymptotically. As a result, it is unclear to what extent the theorem explains the behavior observed in more realistic settings where the minority group has constant mass. Indeed, the experiments suggest different dynamics in the constant- regime, where the XOR signal may eventually be learned. Consequently, the scope of the theorem is significantly narrower than what the title suggests, i.e. that SGD inherently prioritizes shortcuts. Additionally, there are a number of technical assumptions on initialization, width, batch size, and learning rate, making it difficult to assess how robust the conclusions are beyond this specific setting.
Questions
-
The main theorem requires , whereas the experiments suggest different dynamics when is constant and the XOR signal may eventually be learned. Can the authors provide any theoretical explanation for the transition between these regimes? Do you conjecture a threshold value of beyond which the XOR signal eventually dominates, or is the behavior fundamentally different for every constant ?
-
The condition appears only in the Phase II analysis. Is this assumption merely a proof artifact, or do the authors believe it is genuinely necessary for shortcut dominance to persist throughout training?
-
The analysis considers a single linear spurious feature . To what extent do you expect the proof strategy to extend to more distributed spurious correlations?
Limitations
yes
Final justification
The authors have answered all my questions. There are no unresolved issues remaining. As I mentioned in both my review and the discussion above, I find the technical contribution strong, I just find the scope of the theoretical result as somewhat narrow.
Formatting concerns
None
3 comments
Rebuttal
We warmly thank Reviewer s1gX for their clear technical evaluation and sharp questions. Below, we provide responses to each of the reviewer’s points.
W1 / Q1: Learning the XOR signal
We agree with the reviewer that understanding the conditions under which the XOR signal is eventually learned in the constant- case is an important direction. Providing a full formal analysis in the case where (i.e., “constant”) is left open by our paper (and will likely require new techniques and machinery, as we outline at the end of this section). Nevertheless, the results in this submission form a non-trivial starting point, and already provide some valuable insights and predictions that complement our simulations. In the or neurons case, it is natural to consider the following idealized exact form for the Phase II dynamics of the signal and spurious feature.
Define and and write , where is the sigmoid function. Then we have the idealized Phase II dynamics:
We find that these idealized dynamics yield a “crossing time” where the XOR signal feature overtakes the linear spurious feature, similarly to our real XOR experiments. In fact, we can derive the crossing time in (approximate) closed form.
Lemma. Suppose the idealized dynamics above are initialized from the end-of-Phase I scalings such that and write . Then, we will have at approximately $$ where .
This closed form depends only on the initial value of and the correlation strength . It aligns with empirical simulations of the idealized dynamics, as seen in the below table ().
| real | predicted | |
|---|---|---|
| 0.02 | 87.45 | 79.92 |
| 0.05 | 46.53 | 43.09 |
| 0.10 | 32.00 | 30.10 |
| 0.15 | 27.96 | 26.65 |
| 0.20 | 27.27 | 26.32 |
| 0.25 | 28.73 | 28.06 |
| 0.30 | 32.50 | 32.12 |
| 0.40 | 56.23 | 56.84 |
Moreover, these crossing times have an intriguing U-shaped behavior in : they initially decrease with , then increase. This is because there are two competing effects in the idealized dynamics for : on one hand, the threshold at which starts to decrease is smaller for larger ; on the other hand, the rate of initial growth of is also smaller for larger . It’s worth noting that the real SGD crossing-time behavior is monotone, rather than U-shaped, but we still think that this idealized dynamical system is an interesting case study.
Providing such idealized dynamics is more challenging in the case of multiple neurons, though we expect to be possible in the limit as the width of the network goes to infinity -- here, we believe it would be possible to take the mean-field limit and study the Wasserstein stochastic gradient flow [1], i.e., derive dynamics on the distribution of the spurious feature, signal feature, margin, etc. Our analysis techniques would be a natural starting point for this future work, but we expect adapting them to be highly non-trivial as we will need to derive analogous lemmas to those in Appendices A-C to characterize the Wasserstein gradients.
Q2: Necessity of condition
The condition is not a proof artifact but a prescriptive phase transition boundary implied by our Phase II result. In particular, we have tight upper and lower bounds on the Phase II growth to obtain $$ an improved version of Def. E.2(i). This is the true growth of in our Phase II and holds with equality. Solving directly gives as the genuine threshold at which monotonicity of growth may not hold. This is in accordance with our simulations.
Q3: Distributed spurious correlations
We thank the reviewer for this question, which gets at important structural considerations for extending our work. Our results are not really about the spurious feature occupying one coordinate; rather, we prove separation between a signal feature of greater complexity (quadratic) and a spurious feature of lesser complexity (linear).
It may help to separate three readings of “distributed”, since our mechanism treats them quite differently.
-
Correlated spurious features distributed across coordinates. Here we expect the argument to go through with slight modifications. The spurious gradient among the distributed coordinates would be times larger than on a single coordinate, which would introduce an additional multiplicative factor into the spurious feature recurrence. So, Phase I would last a factor fewer iterations, since the additional spurious coordinates dominate the XOR faster; Phase II would similarly compress. There are a few technical items we’d need to take care of to make this formal. For example, Lemma C.3 would need to flip all the spurious features, and we no longer have isotropy of .
-
Several independent linear spurious features with distinct strengths . We expect this case to go through in Phase I, but not in Phase II. In Phase I, each spurious feature would have gradient like $$ an extended version of Lemma B.2 which leads to a similar Phase I result. But, rather than fixing the network prediction to the spurious feature by , the sign would vary by a weighted vote over the spurious coordinates. This breaks our Phase II analysis because the margin no longer takes only two values (our “equal and opposite” framing), but now generally up to possible values.
-
A spurious feature which is nonlinear in the inputs. Our results do not extend to this case; for example, if the spurious feature were quadratic (the same as the signal feature), both features would receive gradients of the same order and the signal/spurious separation would be lost. Studying the interaction between signal and spurious features of varying complexities is an important direction which was investigated empirically by [2]; nevertheless, their theory is minimal. Our results are technically involved even for one quadratic signal feature with one linear spurious feature, suggesting that varying the relative complexities further may require simplifying assumptions in other parts of the theory.
References
[1] Chizat and Bach. "Implicit bias of gradient descent for wide two-layer neural networks trained with the logistic loss." COLT 2020.
[2] Qiu et al. “Complexity Matters: Dynamics of Feature Learning in the Presence of Spurious Correlations.” ICML 2024.
Thank you for the detailed rebuttal and additional analysis. I found the discussion of the constant- regime quite useful. However, my main concern regarding the scope of the theoretical result remains. The strongest theorem still applies to the regime where the minority-group mass vanishes asymptotically, while the constant- regime seems both more practically relevant and qualitatively different, i.e. the experiments suggest that the spurious feature may stop dominating the XOR signal and can eventually be learned.
The new idealized analysis you showed provides some useful intuition for this behavior, but it does not yet characterize the actual finite-width SGD dynamics in this regime, which is the hard part. I therefore still see the absence of a constant result the main limitation of the paper. I want to emphasize that this is not a concern about the technical quality of the work, but about the scope of the theoretical result. I will maintain my current score.
Thank you very much for your engagement with our work, your thoughtful questions and your response. We are also extremely interested in characterizing the constant- regime, and we have already begun some follow-up work into this. We do want to reiterate the following:
-
We expect the the analysis of the constant- regime, particularly for finite-width SGD dynamics, to be highly non-trivial and consist of a second paper of its own, not a simple follow-up of this work. Our experiments already show very nuanced behavior such as separation of the network in spurious and signal sub-networks. We expect that an entirely different set of mathematical tools - involving mean-field theory (and this will in fact require the width to grow to infinity and a careful mean-field scaling initialization) will be needed to capture this complex behavior.
-
At the same time, our analysis contains necessary technical ingredients to characterizing the constant- regime. Any subsequent analysis of this regime will require building on the fundamental technical results established in our paper. In particular, we will need to establish equivalents of our gradient lemmas in Appendices A-C to objects like the Wasserstein gradient.
-
Finally, the extreme correlation analysis is already highly non-trivial in its own right, as you noted about the technical quality of our work. Previous papers did not even analyze this regime and either only provided partial characterizations of gradients, or operated in effectively linear regimes.
We are more than happy to provide any additional clarifications or elaborate further during the remainder of the discussion period.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies how neural networks learn spurious correlations during training. The authors focus on two-layer ReLU networks trained with online minibatch SGD on logistic loss, in a setting where the data contains both a true quadratic signal, modeled as an XOR function, and a linear spurious feature. The main contribution is a theoretical characterization of the learning dynamics in this setting.
The paper shows that SGD learns the spurious feature first and does so very quickly. It further shows that the learning of spurious and signal features is coupled: when the spurious correlation is strong, it can inhibit or delay the learning of the true signal. The authors identify different phases in the dynamics, including an early phase where the spurious feature grows rapidly and a later phase where the signal remains suppressed because the model has already achieved a large margin on the majority group. Overall, the work aims to provide a mechanistic explanation of why neural networks may over-rely on shortcut features.
Strengths and weaknesses
The paper addresses an important and timely problem. Understanding why neural networks rely on spurious correlations is central to research on robustness, shortcut learning, and generalization under distribution shift. The theoretical findings are relevant and could be useful for future work studying how spurious features are learned, amplified, or suppressed during training.
A clear strength of the paper is its presentation. Even though the analysis is mathematically involved, the paper is well written and generally easy to follow. The authors provide useful intuition for the main results, which helps make the technical content accessible. The phase-based view of the learning dynamics is also interesting, as it gives a more precise account of when the spurious feature dominates and how this affects the learning of the true signal. However, the contribution feels somewhat incremental. The work appears to rely heavily on the mathematical formulation of prior work, especially [13], and extends that framework to the presence of spurious features.
The main weakness is the limited empirical validation. The theory is developed for two-layer networks and a stylized synthetic data distribution. This is reasonable for obtaining clean theoretical results, but it leaves open the question of whether the same dynamics appear in more realistic settings. In particular, the paper does not show how the results translate to deep neural networks trained on complex datasets with known spurious correlations, such as Waterbirds or similar benchmarks.
Finally, the practical implications of the theory are somewhat underdeveloped. The authors mention that their results could inform robustness-enhancing interventions, but they do not implement or evaluate any method based on their findings. Including even a simple theory-inspired intervention would make the paper stronger and would better support the claim that the analysis can guide future robustness methods.
Questions
- Do the same learning dynamics appear in more realistic settings? The current analysis focuses on two-layer ReLU networks and synthetic Boolean hypercube data. This is appropriate for theory, but the practical significance would be stronger if the authors could show that similar dynamics occur in deeper networks or on datasets with natural spurious correlations. For instance, experiments on Waterbirds, CelebA, or a comparable benchmark would help evaluate whether spurious features are also learned early in realistic settings.
- Can the empirical evaluation be expanded, even modestly? If large-scale experiments are not feasible, smaller experiments could still be informative. For example, varying the strength of the spurious correlation, the network depth, the model width, or the training time could help test whether the predicted phases are robust beyond the exact theoretical setup. Such experiments would clarify how sensitive the conclusions are to the assumptions of the analysis.
- Can the theory motivate a concrete intervention? The authors suggest that their findings could inform robustness-advancing interventions. This would be more convincing if the paper implemented a simple method inspired by the theory. For example, if early spurious-feature growth suppresses signal learning, one could test a training modification that delays, penalizes, or counteracts early spurious-feature learning. Even a preliminary experiment would help demonstrate the practical value of the theoretical analysis.
- Under what conditions is the true signal eventually learned? The paper suggests that, for constant-strength spurious correlations, the model can eventually learn the XOR signal, although the spurious feature is not forgotten. It would be useful to clarify which factors control this behavior: correlation strength, sample complexity, optimization time, initialization, width, or other parameters. A clearer discussion of these dependencies would make the theoretical conclusions easier to interpret.
Limitations
The paper should more explicitly acknowledge the gap between the theoretical setting and practical deep learning scenarios. The analysis is restricted to two-layer ReLU networks, a synthetic Boolean data model, logistic loss, and a specific form of linear spurious correlation. These assumptions are reasonable for theory, but they limit the direct applicability of the results. The paper should also discuss whether the proposed dynamics are expected to hold for deeper architectures, different losses or optimizers, and real-world datasets where spurious correlations are more complex.
Final justification
The authors provided additional experiments and detailed discussion of the constant- case in their rebuttal. Together, these aspects provide additional motivation to accept the paper, as it provides an interesting analysis of spurious feature learning while being experimentally sound and well-presented.
Formatting concerns
None
3 comments
Rebuttal
We graciously thank Reviewer t2Pa for their insightful comments and detailed questions. Below, we provide responses to each of the reviewer’s points.
W1: Comparison to [1]
We agree with the reviewer that we share the basic setting and some technical tools of [1], and we are explicit about this. Overall, we believe their XOR feature learning analysis is the strongest available foundation for our purposes.
Nevertheless, we argue that our analysis diverges from [1] almost immediately due to nonlinear interactions between the signal and spurious features that fundamentally alter the learning dynamics. We provide details in our “Novelty of techniques” paragraph in Section 1. To summarize, our work differs from [1] in three major ways. First, and most importantly, our Phase II has no analogue in [1]: the exponential suppression of the signal by a large majority-group margin is a phenomenon that cannot arise without a spurious correlation, and it requires an entirely margin-based approach. Second, the leave-one-out symmetrization used in [1] is unavailable to us: the spurious correlation means flipping a single bit changes the marginal, so we must develop a leave-two-out argument (Lemma C.3). Last but not least, the spurious feature grows so rapidly that the Taylor approximation -- which [1] uses for iterations, essentially their entire training run -- becomes vacuous for us after only iterations, forcing a substantially different Phase I analysis and a delicate treatment of the orthogonal component .
Q1 / Q2: Empirical validation
We appreciate the suggestions for further empirical validations; we include the results below.
Waterbirds
To evaluate whether spurious features are learned early in more realistic settings, we conduct an experiment where we finetune an ImageNet-pretrained ResNet-50 on the Waterbirds dataset. We optimize with SGD using learning rate 1e-3 for 100 epochs, and we average over three random seeds.
Our first Waterbirds experiment shows that the spurious feature is indeed learned much earlier in training than the signal feature. We see that after only one epoch, the majority group accuracy is about 0.95 while the minority group accuracy is about 0.32, suggesting that the model primarily utilizes the spurious feature for prediction. Over the remaining 99 epochs, the model slowly picks up the signal feature, which aligns with our theory as we expect to be in the constant- case. We do not see majority group accuracy decrease, matching our claim that the spurious feature is still retained even after the signal feature is learned.
| epoch | majority acc | minority acc |
|---|---|---|
| 0.25 | 0.509 ± 0.015 | 0.500 ± 0.000 |
| 1 | 0.949 ± 0.003 | 0.319 ± 0.036 |
| 20 | 0.975 ± 0.001 | 0.687 ± 0.011 |
| 100 | 0.975 ± 0.002 | 0.697 ± 0.006 |
Our second Waterbirds experiment elucidates whether the spurious feature has a priori lower complexity than the signal feature. For both an ImageNet-pretrained initialization and random initialization, we freeze the embeddings and train a logistic regression on them to predict (a) the background (spurious feature) and (b) the bird type (signal feature). We find that if the ResNet is pretrained, both probes score highly -- suggesting ImageNet features already encode both attributes -- but the signal probe is still slightly lower. On the other hand, if the ResNet is randomly initialized, the spurious feature is still decodable, whereas the signal feature is predicted in a manner that is barely better than random. We believe this result justifies the complexity gap our theory posits in a real-world setting.
| pretrained | spurious probe acc | signal probe acc |
|---|---|---|
| True | 0.948 ± 0.000 | 0.891 ± 0.005 |
| False | 0.849 ± 0.005 | 0.548 ± 0.002 |
Ablation study
We follow the reviewer’s suggestions and evaluate whether our results are robust to the strength of the spurious correlation, the network depth, the model width, and the training time. We start from the same experimental configuration as in the paper, and we average over ten random seeds.
Our first ablation varies the correlation strength at and , as well as multiplying the training time by 10. The results essentially match Figure 2 of our paper, except more rigorous empirically: for small matching our theoretical assumptions the spurious feature dominates, whereas for large (roughly corresponding to ) we find that the XOR signal can eventually overtake the spurious feature.
| majority acc | minority acc | |
|---|---|---|
| 0.02 | 1.000 ± 0.000 | 0.000 ± 0.000 |
| 0.05 | 1.000 ± 0.000 | 0.000 ± 0.000 |
| 0.08 | 1.000 ± 0.000 | 0.000 ± 0.000 |
| 0.1 | 1.000 ± 0.000 | 0.085 ± 0.268 |
| 0.125 | 1.000 ± 0.000 | 0.375 ± 0.353 |
| 0.15 | 1.000 ± 0.000 | 0.535 ± 0.351 |
| 0.175 | 1.000 ± 0.000 | 0.792 ± 0.346 |
| 0.2 | 1.000 ± 0.000 | 0.950 ± 0.158 |
| 0.25 | 1.000 ± 0.000 | 1.000 ± 0.000 |
Our second ablation varies the network depth and width; we observe that they do not prevent the shortcut phase, but sometimes affect whether the signal feature is learned. For these tables, we detail the first step at which the spurious feature is learned (quantified as majority group acc ) and the first step at which the signal feature is learned (quantified as minority group acc ). We fix and train for 5000 steps.
For the width experiment, we find that increasing makes the shortcut get learned faster, while also picking up the XOR signal more reliably. Small models learn only the spurious feature, whereas larger models learn the spurious feature quickly and the signal feature much later.
| width | step where maj acc | step where min acc |
|---|---|---|
| 10 | 29 | never |
| 50 | 12 | never |
| 200 | 6 | 2713 |
| 1000 | 4 | 729 |
For the depth experiment, we find that the spurious feature is learned first in each of our parameterizations, i.e., the shortcut learning phase is invariant to depth. We introduce a parameter which is the initialization scale of the middle layer; is norm-preserving, whereas matches the two-layer initialization scale (but essentially slows everything by in the three-layer case). We fix for this experiment.
| depth | step where maj acc | step where min acc | |
|---|---|---|---|
| 2 | n/a | 12 | never |
| 3 | 1.0 | 33 | 495 |
| 3 | 0.01 | 1521 | 4197 |
W2 / Q3: Concrete interventions
We thank the reviewer for this suggestion. Our aim is deliberately to explain interventions already in wide use by the community rather than to propose a new one, and we think our theory and experiments do make falsifiable predictions about them.
The clearest case is group balancing [2, 3]. The spurious gradient coefficient in Phase I is ; our theory therefore predicts that discarding majority group data works by reducing this coefficient, with a monotone effect in and a phase transition at . Figure 2 is effectively this experiment: XOR is learned at larger and suppressed at smaller , with the transition where our theory places it.
Second, our Phase I length gives a concrete prediction for Just Train Twice [4]: before iterations, the model's errors should not correlate with minority-group membership, so an early-stopped checkpoint saved before this point cannot identify the minority group.
Third, DFR [5, 6] retrains only the last layer, so it presupposes that the signal feature is present in the learned representation. Our results speak directly to when this holds: at constant we observe the network decomposing into disjoint signal and spurious subnetworks, so there exist signal features available to upweight, whereas Theorem 3.2 shows that for the signal remains at initialization scale and no reweighting can recover it.
Q4: Learning the XOR signal
We agree with the reviewer that understanding the conditions under which the XOR signal is eventually learned in the constant- case is an important direction. Towards this end, we explicitly derive the time it takes for the XOR signal to be learned in an idealized system reflective of our Phase II dynamics. Due to space limitations, we kindly refer the reviewer to item (W1 / Q1) in our response to Reviewer s1gX.
L1: Limitations
We thank the reviewer for this comment. We agree, and we do discuss several of these points in our Limitations section (Appendix H): the restriction to two-layer networks, the Boolean rather than Gaussian data model, online minibatch SGD, and the single signal/spurious feature setting. We will expand this section as requested by the reviewer; briefly, we expect Phase I to be fairly robust, while Phase II is more specific to the learning dynamics under the logistic loss. For discussion regarding more complex spurious correlations, please refer to item (Q2) in our response to Reviewer Ew2J -- we believe this is an interesting direction for future work.
References
[1] Margalit Glasgow. “SGD finds then tunes features in two-layer neural networks with near-optimal sample complexity: A case study in the XOR problem.” ICLR 2024.
[2] Idrissi et al. “Simple data balancing achieves competitive worst-group-accuracy.” CLeaR 2022.
[3] Chaudhuri et al. “Why Does Throwing Away Data Improve Worst-Group Error?” ICML 2023.
[4] Liu et al. “Just Train Twice: Improving Group Robustness without Training Group Information.” ICML 2021.
[5] Kirichenko et al. “Last Layer Re-Training is Sufficient for Robustness to Spurious Correlations.” ICLR 2023.
[6] Izmailov et al. “On Feature Learning in the Presence of Spurious Correlations.” NeurIPS 2022.
I would like to thank the authors for their detailed rebuttal. They addressed most of my concerns and I particularly appreciated the additional experiments that they provided. After reading their rebuttal, I believe that the paper should be accepted as it provides an interesting analysis of the spurious features learning phenomenon. Therefore, I will raise my score to Accept and suggest acceptance.
Thank you!
Dear Reviewer t2Pa,
Thank you very much for your engagement and for updating your assessment positively!
Best, Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Dear AC: thank you very much for handling our paper. We agree that all the reviews have been very valuable for improving our submission. Regarding adapting the theory to the constant-λ case, we were able to explicitly derive the time it takes for the XOR signal to be learned in an idealized system reflective of our Phase II dynamics --- particularly in the case of 1 or 2 neurons, and included this in item (W1 / Q1) in our response to Reviewer s1gX. For the case of a very large number of neurons (i.e., a wide neural network), we also outline how our theory has significant promise to be adapted to a mean-field infinite-width limit by adapting our lemmas on the population gradient (Appendices A-C) to the population Wasserstein gradient (see, e.g., Chizat & Bach 2018 and 2020). The ultimate outcome of such an adaptation would be an explicit dynamical system reflecting the growth of the signal and spurious feature in Phase II and accompanying derivations for the time taken for the XOR signal to be learned. In our view this would be significant enough mathematical development to merit a paper of its own, but the technical ingredients in this paper already outline a very plausible path to doing so.
Additionally, for additional empirical validation and implications for practical settings, we have run 11 new experiments total, including on the real-world Waterbirds dataset, and included further discussion in our response to Reviewer t2Pa and others.