[Paper Review] The Generalization-Stability Tradeoff In Neural Network Pruning
This paper reveals a generalization-stability tradeoff in neural network pruning: lower pruning stability—measured by the drop in test accuracy right after pruning—leads to better generalization. The authors show that pruning acts like noise injection, increasing model flatness and improving generalization independently of permanent parameter removal, resolving the paradox of why pruning improves generalization in overparameterized networks.
Pruning neural network parameters is often viewed as a means to compress models, but pruning has also been motivated by the desire to prevent overfitting. This motivation is particularly relevant given the perhaps surprising observation that a wide variety of pruning approaches increase test accuracy despite sometimes massive reductions in parameter counts. To better understand this phenomenon, we analyze the behavior of pruning over the course of training, finding that pruning's benefit to generalization increases with pruning's instability (defined as the drop in test accuracy immediately following pruning). We demonstrate that this "generalization-stability tradeoff" is present across a wide variety of pruning settings and propose a mechanism for its cause: pruning regularizes similarly to noise injection. Supporting this, we find less pruning stability leads to more model flatness and the benefits of pruning do not depend on permanent parameter removal. These results explain the compatibility of pruning-based generalization improvements and the high generalization recently observed in overparameterized networks.
Motivation & Objective
- To resolve the apparent contradiction between overparameterized networks' high generalization and pruning's ability to further improve it.
- To investigate whether pruning's generalization benefits stem from parameter count reduction or from a regularization effect.
- To examine the role of pruning instability in influencing model flatness and generalization performance.
- To test whether generalization improvements from pruning persist even when pruned weights are restored, challenging the assumption that permanent removal is essential.
Proposed method
- The authors define pruning instability as the relative drop in test accuracy immediately after a pruning step: instability = (t_pre - t_post) / t_pre.
- They vary magnitude pruning hyperparameters (e.g., pruning fraction, timing, and magnitude threshold) to generate diverse levels of instability and generalization.
- They correlate pruning instability with model flatness using Hessian-based measures and perturbation analysis.
- They evaluate generalization using test accuracy on CIFAR-10 and CIFAR-100, comparing models trained with stable vs. unstable pruning.
- They conduct ablation experiments where pruned weights are reactivated after training to test the necessity of permanent parameter removal.
- They use a proxy for the Takeuchi Information Criterion (TIC) based on the trace of the Hessian and curvature matrix to estimate generalization gap.
Experimental results
Research questions
- RQ1Does pruning improve generalization through regularization rather than parameter count reduction?
- RQ2Is there a tradeoff between pruning stability and model generalization?
- RQ3Can generalization benefits from pruning persist even when pruned weights are restored post-training?
- RQ4To what extent does pruning increase model flatness, and is this linked to improved generalization?
- RQ5How does pruning instability correlate with flatness measures and generalization performance across different datasets and architectures?
Key findings
- Lower pruning stability is strongly correlated with better generalization, with Prune L achieving 73.41% test accuracy on CIFAR-100 compared to 73.22% for Prune S, despite lower stability.
- The generalization-stability tradeoff holds across multiple datasets, including CIFAR-100, indicating it is not an artifact of small datasets.
- Restoring pruned weights after training preserves the generalization benefit, proving that permanent parameter removal is not necessary for improved generalization.
- Pruning instability correlates negatively with model flatness, as measured by Hessian eigenvector perturbations and loss increase under weight perturbations.
- The TIC proxy based on Tr(C)/Tr(H) predicts generalization performance and confirms that lower stability leads to better generalization.
- The results support the hypothesis that pruning regularizes similarly to noise injection, with instability introducing representation-level noise that encourages flatter minima.
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.