Complexity Matters: Dynamics of Feature Learning in the Presence of Spurious Correlations
GuanWen Qiu, Da Kuang, Surbhi Goel
TL;DR
The paper addresses why neural networks tend to learn spurious, easier-to-learn features and how this affects learning dynamics of core, invariant features. It introduces a Boolean-function–based framework with a core feature f_c and a spurious feature f_s, controlled by complexity and confounder strength λ, and analyzes gradient dynamics of a two-layer ReLU network under SGD across parity and staircase functions. Key contributions include (i) empirical R1–R5 observations detailing slowed core learning, two-subnetwork formation, memorization of spurious features, effectiveness of Last Layer Retraining, and limitations of common debiasing methods; (ii) a theoretical Fourier-gap-based explanation for spurious-first learning, slow core learning, and persistence of spurious features; and (iii) demonstrations that the framework aligns with semi-synthetic and real datasets while offering precise controls over feature complexity. The findings clarify when debiasing strategies like LLR help and reveal limitations of popular algorithms in more general settings, providing a rigorous benchmark and guidance for designing robust training procedures against spurious correlations.
Abstract
Existing research often posits spurious features as easier to learn than core features in neural network optimization, but the impact of their relative simplicity remains under-explored. Moreover, studies mainly focus on end performance rather than the learning dynamics of feature learning. In this paper, we propose a theoretical framework and an associated synthetic dataset grounded in boolean function analysis. This setup allows for fine-grained control over the relative complexity (compared to core features) and correlation strength (with respect to the label) of spurious features to study the dynamics of feature learning under spurious correlations. Our findings uncover several interesting phenomena: (1) stronger spurious correlations or simpler spurious features slow down the learning rate of the core features, (2) two distinct subnetworks are formed to learn core and spurious features separately, (3) learning phases of spurious and core features are not always separable, (4) spurious features are not forgotten even after core features are fully learned. We demonstrate that our findings justify the success of retraining the last layer to remove spurious correlation and also identifies limitations of popular debiasing algorithms that exploit early learning of spurious features. We support our empirical findings with theoretical analyses for the case of learning XOR features with a one-hidden-layer ReLU network.
