Over-Alignment vs Over-Fitting: The Role of Feature Learning Strength in Generalization
Taesun Yeom, Taehyeok Ha, Jaeho Lee
TL;DR
This work studies how feature learning strength (FLS) influences generalization in overparameterized neural networks under practical training stops. It combines empirical evidence from CNNs on CIFAR datasets with a theoretical gradient-flow analysis of a two-layer ReLU network, controlling FLS via initialization scale. The key contribution is a decomposition of generalization error into over-alignment and over-fitting terms, revealing a data-dependent optimal FLS that minimizes excess error; too large FLS leads to over-alignment and poorer generalization, while too small FLS causes over-fitting. The findings have practical impact for hyperparameter tuning, suggesting that moderate FLS can yield substantial gains, especially on harder tasks, and provide a framework for understanding implicit bias in finite-time training.
Abstract
Feature learning strength (FLS), i.e., the inverse of the effective output scaling of a model, plays a critical role in shaping the optimization dynamics of neural nets. While its impact has been extensively studied under the asymptotic regimes -- both in training time and FLS -- existing theory offers limited insight into how FLS affects generalization in practical settings, such as when training is stopped upon reaching a target training risk. In this work, we investigate the impact of FLS on generalization in deep networks under such practical conditions. Through empirical studies, we first uncover the emergence of an $\textit{optimal FLS}$ -- neither too small nor too large -- that yields substantial generalization gains. This finding runs counter to the prevailing intuition that stronger feature learning universally improves generalization. To explain this phenomenon, we develop a theoretical analysis of gradient flow dynamics in two-layer ReLU nets trained with logistic loss, where FLS is controlled via initialization scale. Our main theoretical result establishes the existence of an optimal FLS arising from a trade-off between two competing effects: An excessively large FLS induces an $\textit{over-alignment}$ phenomenon that degrades generalization, while an overly small FLS leads to $\textit{over-fitting}$.
