- Rating
- 5
- Clarity
- 4
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
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
Paper formatting concerns
N/A
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.
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, ∣wsig∥≪∣w⊥∣). 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 wsp 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 ψ(γˉ)=1−λ, 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 λ≪log−1(d) is not a proof artifact but a prescriptive phase transition boundary, corroborated by simulations.
On Lu et al. [3]: our Assumption 3.1 requires η≪log−5(d), 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 λ∈(0,21), any predictor with positive margin on the support of Pd(λ) must classify all of ±1d correctly. Moreover, any nonzero weight on e3 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 λ≪log−1(d) 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 m=5000, p=50, and λ=0.1, 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 d. We find that the majority group is perfectly fit regardless of dimension (the spurious feature is always learned). On the other hand, d seems to control whether the model eventually learns the XOR signal; we think this makes intuitive sense since our λ≍log−1(d) threshold requires much smaller λ as d increases, but here we fix λ=0.1. We remark that this phenomenon matches the observation of the reviewer that XOR is learned at d=30.
In our second table, we detail the first step at which the spurious feature is learned (quantified as majority group acc >0.9) and the first step at which the signal feature is learned (quantified as minority group acc >0.6). 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.
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 j-th coordinate is approximately 2aE[y⋅xj] -- indeed, our spurious coefficient 21−λ is exactly 21E[y⋅x3]. But because E[y⋅x1]=E[y⋅x2]=0 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 sgn(x1+x2−1) 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 θ≪log−5C(d) is limited by Lemma D.14; the initialization scale acts as a free parameter which we can make sufficiently small so that the L0 dynamics dominate in Phase I. The lower bound on the initialization scale θ≫d−C/2 is loose and just helps to simplify the analysis. For the condition on the learning rate log(d)d−C≪η≪log−5(d), the lower bound is necessary to make the total number of iterations T≲dC, while the upper bound is limited by Lemma D.7(i) and helps with the balancedness condition ∣a∣≍∣w∣.
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.