[Paper Review] Pruning's Effect on Generalization Through the Lens of Training and Regularization
This paper challenges the long-standing hypothesis that pruning improves generalization solely by reducing model size. Through empirical analysis, it demonstrates that pruning's generalization gains stem primarily from extended training time and additional regularization effects, not size reduction—especially in over-parameterized models where larger models typically generalize better.
Practitioners frequently observe that pruning improves model generalization. A long-standing hypothesis based on bias-variance trade-off attributes this generalization improvement to model size reduction. However, recent studies on over-parameterization characterize a new model size regime, in which larger models achieve better generalization. Pruning models in this over-parameterized regime leads to a contradiction -- while theory predicts that reducing model size harms generalization, pruning to a range of sparsities nonetheless improves it. Motivated by this contradiction, we re-examine pruning's effect on generalization empirically. We show that size reduction cannot fully account for the generalization-improving effect of standard pruning algorithms. Instead, we find that pruning leads to better training at specific sparsities, improving the training loss over the dense model. We find that pruning also leads to additional regularization at other sparsities, reducing the accuracy degradation due to noisy examples over the dense model. Pruning extends model training time and reduces model size. These two factors improve training and add regularization respectively. We empirically demonstrate that both factors are essential to fully explaining pruning's impact on generalization.
Motivation & Objective
- To investigate why pruning improves generalization despite contradicting classical bias-variance theory in over-parameterized regimes.
- To test whether model size reduction alone explains pruning's generalization gains in modern deep learning models.
- To isolate the contributions of training duration and regularization in pruning-induced generalization improvements.
- To evaluate the role of retraining and weight removal in shaping model generalization beyond architectural changes.
- To provide empirical evidence that pruning's benefits are not due to capacity reduction but to training dynamics and regularization effects.
Proposed method
- Compared pruned models with 'augmented training' models that replicate pruning's training schedule and epochs but retain all weights.
- Used cyclic learning rate schedules and extended training durations to isolate the impact of training time on generalization.
- Measured training loss differences on noisy examples using EL2N scores to assess regularization effects.
- Evaluated pruning with different weight removal heuristics (magnitude, SynFlow, random) to assess their impact on generalization.
- Trained models on subsets of data predicted correctly by sparse models to compare generalization performance with dense counterparts.
- Analyzed loss differences between sparse and dense models across varying noise levels to quantify regularization benefits.
Experimental results
Research questions
- RQ1Does model size reduction fully explain pruning's improvement in generalization for over-parameterized models?
- RQ2To what extent does extended training time contribute to pruning's generalization gains compared to weight removal?
- RQ3How does pruning affect training loss on noisy examples, and does this indicate additional regularization?
- RQ4Can generalization improvements from pruning be replicated by training dense models with the same schedule and duration?
- RQ5What role do different weight selection heuristics (e.g., magnitude, SynFlow) play in pruning-induced regularization and generalization?
Key findings
- Pruning's generalization improvement is not due to model size reduction, as models trained with the same schedule and duration but no weight removal achieve comparable test accuracy.
- For low sparsity levels (e.g., 15% remaining weights), pruning reduces training loss more than dense models, indicating improved optimization during training.
- For high sparsity levels (e.g., 60% remaining weights), pruning increases training loss but reduces degradation on influential examples, indicating enhanced regularization.
- The combination of extended training time and regularization effects—particularly on noisy examples—explains the majority of pruning’s generalization gains.
- Even when weight removal is disabled, models trained with the same cyclic learning rate and epoch count as pruning achieve similar generalization, proving that training dynamics are central to the effect.
- Weight selection heuristics (e.g., magnitude, SynFlow) have minimal impact on generalization gains when training duration and schedule are held constant, further decoupling the effect from architecture size.
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.