Stochastic Collapse: How Gradient Noise Attracts SGD Dynamics Towards Simpler Subnetworks
Feng Chen, Daniel Kunin, Atsushi Yamamura, Surya Ganguli
TL;DR
Stochastic Collapse reveals that SGD with gradient noise is drawn toward invariant sets created by reflection symmetries in neural networks, biasing training toward simpler subnetworks. By formulating a stochastic gradient flow framework and a concrete attractivity criterion $\alpha = \mathcal{L}''(0) + \frac{1}{2} D''(0) > 0$, the authors show how noise and curvature compete to attract SGD toward sign and permutation invariant sets, including a quantitative mechanism for collapse in one and high dimensions. They provide both theoretical results and empirical evidence in deep nets that stochastic collapse leads to vanishing or identical neurons, acting as an implicit low-rank regularizer that can improve generalization, especially when coupled with large initial learning rates. Through a linear teacher-student model, they connect this stochastic collapse to generalization benefits and explain the practical value of early high learning-rate schedules. Overall, the work links gradient-noise geometry to architectural symmetries, offering a principled account of SGD’s implicit bias toward simpler subnetworks and guiding future optimization design.
Abstract
In this work, we reveal a strong implicit bias of stochastic gradient descent (SGD) that drives overly expressive networks to much simpler subnetworks, thereby dramatically reducing the number of independent parameters, and improving generalization. To reveal this bias, we identify invariant sets, or subsets of parameter space that remain unmodified by SGD. We focus on two classes of invariant sets that correspond to simpler (sparse or low-rank) subnetworks and commonly appear in modern architectures. Our analysis uncovers that SGD exhibits a property of stochastic attractivity towards these simpler invariant sets. We establish a sufficient condition for stochastic attractivity based on a competition between the loss landscape's curvature around the invariant set and the noise introduced by stochastic gradients. Remarkably, we find that an increased level of noise strengthens attractivity, leading to the emergence of attractive invariant sets associated with saddle-points or local maxima of the train loss. We observe empirically the existence of attractive invariant sets in trained deep neural networks, implying that SGD dynamics often collapses to simple subnetworks with either vanishing or redundant neurons. We further demonstrate how this simplifying process of stochastic collapse benefits generalization in a linear teacher-student framework. Finally, through this analysis, we mechanistically explain why early training with large learning rates for extended periods benefits subsequent generalization.
