[Paper Review] Learning sparse features can lead to overfitting in neural networks
This paper demonstrates that feature learning in overparameterized neural networks can lead to overfitting due to the emergence of sparse representations, which reduce predictor smoothness and degrade generalization. In contrast, lazy training (via NTK) yields smoother, more robust predictors, especially for tasks requiring invariance to smooth input transformations like image deformations.
It is widely believed that the success of deep networks lies in their ability to learn a meaningful representation of the features of the data. Yet, understanding when and how this feature learning improves performance remains a challenge: for example, it is beneficial for modern architectures trained to classify images, whereas it is detrimental for fully-connected networks trained for the same task on the same data. Here we propose an explanation for this puzzle, by showing that feature learning can perform worse than lazy training (via random feature kernel or the NTK) as the former can lead to a sparser neural representation. Although sparsity is known to be essential for learning anisotropic data, it is detrimental when the target function is constant or smooth along certain directions of input space. We illustrate this phenomenon in two settings: (i) regression of Gaussian random functions on the d-dimensional unit sphere and (ii) classification of benchmark datasets of images. For (i), we compute the scaling of the generalization error with number of training points, and show that methods that do not learn features generalize better, even when the dimension of the input space is large. For (ii), we show empirically that learning features can indeed lead to sparse and thereby less smooth representations of the image predictors. This fact is plausibly responsible for deteriorating the performance, which is known to be correlated with smoothness along diffeomorphisms.
Motivation & Objective
- Understand why feature learning sometimes harms performance in image classification, despite being beneficial in other tasks.
- Investigate the role of representation sparsity in generalization error, particularly in high-dimensional input spaces.
- Explain the paradox that feature learning fails on image datasets despite its success in simpler regression tasks.
- Clarify the implicit bias of feature learning versus lazy training in terms of smoothness and invariance to input transformations.
- Demonstrate that sparsity in neural representations can reduce robustness to diffeomorphisms and smooth deformations, leading to worse generalization.
Proposed method
- Study regression of random smooth functions on the d-dimensional unit sphere using infinite-width fully-connected networks in both lazy (NTK) and feature learning (mean-field) regimes.
- Use the NTK limit to model lazy training and the mean-field limit to model feature learning, both analytically and numerically.
- Analyze the support structure of solutions, showing that feature learning leads to atomic (sparse) representations with few active neurons.
- Employ the α-trick to simulate the mean-field limit and empirically verify sparsity in trained networks without explicit regularization.
- Quantify predictor smoothness via sensitivity to diffeomorphisms and translations, comparing lazy and feature regimes.
- Use maximum-entropy models of diffeomorphisms to simulate realistic image deformations and assess robustness of predictors.
Experimental results
Research questions
- RQ1Why does feature learning degrade performance in image classification despite improving it in simpler regression tasks?
- RQ2How does sparsity in neural representations affect the smoothness and generalization of predictors?
- RQ3To what extent does the lazy training regime (NTK) yield smoother predictors than feature learning in high-dimensional input spaces?
- RQ4How do different training regimes compare in their sensitivity to smooth input transformations like image deformations or translations?
- RQ5Can the performance gap between feature learning and lazy training be explained by differences in invariance to irrelevant input perturbations?
Key findings
- Feature learning leads to sparser representations, where only a small number of neurons are active after training, even without explicit regularization.
- The NTK (lazy training) regime generalizes better than feature learning in regression tasks on the sphere, especially for smooth target functions.
- Generalization error scales more favorably under NTK than under feature learning, with the latter showing worse scaling as input dimension increases.
- Feature learning produces less smooth predictors, making them more sensitive to diffeomorphisms and smooth deformations, which correlates with performance degradation.
- Empirically, feature learning leads to representations that are less invariant to irrelevant input changes (e.g., boundary pixel corruption), while lazy training maintains better invariance.
- The performance gap between feature and lazy training is not explained by sensitivity to boundary noise, but rather by sensitivity to diffeomorphisms, which are more relevant to image classification tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.