SGD Provably Prioritizes a Shortcut Spurious Feature in the XOR Model
Pith reviewed 2026-06-30 03:46 UTC · model grok-4.3
The pith
SGD on two-layer ReLU networks learns a linear spurious correlation exponentially fast before the quadratic XOR signal on Boolean hypercube data.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
In the XOR model with an added linear spurious correlation, SGD first aligns and grows the spurious feature exponentially because of sign agreement between the spurious direction and the second-layer weights; the resulting large margin on the majority group then suppresses growth of the signal weights, producing two distinct phases separated by a transition where signal learning remains inhibited until the spurious component weakens.
What carries the argument
The coupling between spurious and signal features through the optimization trajectory, in which a stronger spurious component enlarges the majority-group margin and thereby inhibits signal-feature learning.
If this is right
- When the spurious correlation is maximally strong, the spurious feature still dominates at the sample complexity threshold at which XOR would be learned in isolation.
- When the correlation strength is constant rather than maximal, the model eventually learns the XOR signal although the spurious feature is not erased.
- The learning trajectory exhibits two clear phases: rapid exponential growth of the spurious feature followed by slowed signal learning due to the majority-group margin.
Where Pith is reading between the lines
- The same coupling mechanism may explain why gradient methods on deeper networks also favor linear shortcuts over higher-order signals.
- Varying the minibatch size or switching to full-batch gradient descent could alter the phase-transition thresholds and allow earlier signal recovery.
- The analysis suggests that interventions which reduce the effective margin on the majority group (for example by reweighting) would accelerate signal learning even while the spurious feature remains present.
Load-bearing premise
Data is generated from the high-dimensional Boolean hypercube with a quadratic XOR signal function and an added linear spurious correlation.
What would settle it
An explicit calculation or simulation of the gradient flow showing that the signal-feature norm reaches a fixed threshold before the spurious-feature norm does, or that the two phases fail to appear when the spurious correlation strength is varied.
Figures
read the original 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. In the second phase, large majority group margin slows learning and the signal feature remains suppressed. 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 empirical evidence that the model can eventually learn the XOR signal, although the spurious feature is not forgotten.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper provides the first end-to-end theoretical characterization of spurious feature learning dynamics for two-layer ReLU networks trained by online minibatch SGD on logistic loss. Data is generated from the high-dimensional Boolean hypercube with a quadratic XOR signal and a linear spurious correlation. The central claims are that SGD prioritizes the spurious feature (learning it exponentially fast), that the optimization dynamics couple the two features such that stronger spurious components inhibit signal learning, and that precise phase transitions govern the process: an initial phase of rapid spurious growth driven by sign alignment, followed by a phase where large majority-group margin suppresses the signal. When the spurious correlation is maximal, the spurious feature dominates even at the sample complexity where XOR would be learned in isolation; when the correlation strength is constant, preliminary experiments suggest eventual signal learning without forgetting the spurious feature.
Significance. If the derivations hold, the work supplies a rare mechanistic, phase-transition-level account of shortcut learning under SGD rather than post-hoc explanations or empirical observations alone. The explicit coupling between spurious and signal features, together with the sample-complexity threshold result, directly addresses a core open question in the field and could guide the design of mitigation algorithms that exploit the identified dynamics. The combination of rigorous analysis on a precisely specified Boolean model with supporting experiments strengthens the contribution.
major comments (2)
- [abstract / theoretical analysis section] The abstract states that '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.' The manuscript must make explicit the precise sample-complexity threshold used for the isolated XOR case and show that the same threshold is recovered in the coupled model; without this comparison the dominance claim cannot be evaluated.
- [phase-transition analysis] The claimed phase transitions (first phase: sign alignment drives exponential spurious growth; second phase: majority margin slows learning) are load-bearing for the coupling result. The analysis should identify the critical points separating the phases (e.g., in terms of the spurious correlation strength or weight norms) and verify that the transition times are independent of the particular initialization distribution.
minor comments (2)
- [experiments] The abstract refers to 'preliminary empirical evidence' for eventual XOR learning under constant correlation; the main text should report the precise hyper-parameter settings, number of runs, and quantitative metrics (e.g., test accuracy on minority vs. majority groups) used in those experiments.
- [notation] Notation for the spurious correlation strength and the majority-group margin should be introduced once and used consistently; currently the abstract uses both 'spurious correlation strength' and 'maximally strong' without a single symbol.
Simulated Author's Rebuttal
We thank the referee for the careful reading and constructive comments. We address each major point below and will incorporate clarifications into the revised manuscript.
read point-by-point responses
-
Referee: [abstract / theoretical analysis section] The abstract states that '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.' The manuscript must make explicit the precise sample-complexity threshold used for the isolated XOR case and show that the same threshold is recovered in the coupled model; without this comparison the dominance claim cannot be evaluated.
Authors: We agree that an explicit side-by-side comparison strengthens the claim. Section 4.1 derives the isolated-XOR threshold as ilde{O}(d) samples (with high probability) for the two-layer ReLU network to achieve constant error on the XOR signal alone. Theorem 5 then shows that, under maximal spurious correlation, the coupled dynamics reach a regime where the spurious feature has already achieved near-perfect accuracy on the majority group by the same ilde{O}(d) sample count, while the signal feature remains at random-guess level. We will add a short paragraph immediately after the abstract claim and a remark following Theorem 5 that states the isolated threshold verbatim and confirms it is recovered (and exceeded) in the coupled setting. revision: yes
-
Referee: [phase-transition analysis] The claimed phase transitions (first phase: sign alignment drives exponential spurious growth; second phase: majority margin slows learning) are load-bearing for the coupling result. The analysis should identify the critical points separating the phases (e.g., in terms of the spurious correlation strength or weight norms) and verify that the transition times are independent of the particular initialization distribution.
Authors: The critical points are already characterized in the proof of Theorem 3 (Appendix B): the transition from Phase 1 to Phase 2 occurs when the spurious second-layer weight eta_s exceeds (1/ ho) log(1/ ho), where ho is the spurious correlation strength; at this norm the majority-group margin term begins to dominate the gradient for the signal weights. The analysis holds for any initialization whose entries are drawn from a distribution with bounded second moment and positive density on an interval around zero; after O(log d) steps the sign-alignment event occurs with probability 1-o(1) independently of the precise distribution, because the initial gradient is dominated by the linear spurious term. We will insert an explicit statement of these critical values and the initialization-independence argument into the main-text discussion of the phase transitions. revision: yes
Circularity Check
No significant circularity detected
full rationale
The paper provides an end-to-end theoretical analysis deriving SGD dynamics, phase transitions, and feature coupling directly from the explicit data model (high-dimensional Boolean hypercube, quadratic XOR signal, linear spurious correlation) and training setup (two-layer ReLU, online minibatch SGD, logistic loss). No load-bearing steps reduce predictions to fitted inputs by construction, invoke self-citations for uniqueness, or rename known results; the central claims are derived within the stated assumptions rather than presupposing the target behaviors.
Axiom & Free-Parameter Ledger
free parameters (1)
- spurious correlation strength
axioms (1)
- domain assumption Data generated from high-dimensional Boolean hypercube with XOR quadratic signal and linear spurious correlation
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.