How Neural Networks Learn the Support is an Implicit Regularization Effect of SGD
Pierfrancesco Beneventano, Andrea Pinto, Tomaso Poggio
TL;DR
This work investigates how optimization dynamics influence the identification of the target function's support in neural networks. Through theoretical analysis of linear and diagonal networks under gradient descent and mini-batch SGD, the authors show that SGD induces a second-order implicit regularization that scales with $\eta/b$, causing the first-layer weights associated with irrelevant inputs to shrink and enabling early identification of the target support; GD without explicit regularization, in contrast, often fails to localize the first-layer support. The authors decompose inputs into relevant and irrelevant directions and demonstrate a two-phase training dynamics: Phase 1 minimizes the loss and learns the target, and Phase 2, driven by implicit SGD regularization, aligns the first layer with the support, especially under oscillatory training conditions. Empirical results on synthetic targets and standard datasets (e.g., MNIST, CIFAR-10) corroborate the theory and reveal that smaller batch sizes can enhance feature interpretability and reduce initialization sensitivity. Extensions to nonlinear activations, notably ReLU, are discussed, with weight decay shown to benignly accelerate the suppression of irrelevant weights.
Abstract
We investigate the ability of deep neural networks to identify the support of the target function. Our findings reveal that mini-batch SGD effectively learns the support in the first layer of the network by shrinking to zero the weights associated with irrelevant components of input. In contrast, we demonstrate that while vanilla GD also approximates the target function, it requires an explicit regularization term to learn the support in the first layer. We prove that this property of mini-batch SGD is due to a second-order implicit regularization effect which is proportional to $η/ b$ (step size / batch size). Our results are not only another proof that implicit regularization has a significant impact on training optimization dynamics but they also shed light on the structure of the features that are learned by the network. Additionally, they suggest that smaller batches enhance feature interpretability and reduce dependency on initialization.
