NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning effective pruning at initialization from iterative pruning

Shengkai Liu, Yaofeng Cheng, Fusheng Zha, Wei Guo, Lining Sun, Zhenshan Bing, Chenguang YangarXiv 2024

TL;DR

AutoSparse (AutoS) is the first data-driven, neural network-based approach for pruning deep learning models at initialization. By training a meta-network to predict which parameters will survive expensive iterative pruning based solely on initial weights and gradients, AutoS significantly outperforms traditional handcrafted pruning heuristics at high sparsity levels. Remarkably, this meta-network only needs to be trained once on a single architecture to effectively prune entirely different models and datasets.

What Problem Does This Paper Address?

As neural networks grow exponentially, so do the computational resources required to train them. Traditional network pruning removes non-essential weights after training to speed up inference. However, this doesn't alleviate the massive cost of the training phase itself.

To solve this, researchers developed Pruning at Initialization (PaI), which drops weights before training even begins. While highly efficient, current PaI methods suffer from a severe accuracy gap compared to iterative pruning techniques (like those inspired by the Lottery Ticket Hypothesis), especially at high sparsity levels (e.g., removing 95-99% of weights).

Existing PaI methods rely on human-designed, handcrafted mathematical heuristics (such as weight magnitude, connection sensitivity, or gradient flow) to guess which weights are important. The authors of this paper ask a fundamental question: Instead of guessing with handcrafted rules, can we use a neural network to learn the hidden patterns of what makes a parameter survive iterative pruning?

Methods

The authors introduce AutoSparse (AutoS), a data-driven framework that treats pruning criteria design as a machine learning problem.

The pipeline consists of two main phases:

  1. Dataset Generation ($D_A$): The authors run Iterative Rewind Pruning (IRP) exactly once on a base model (e.g., ResNet-18 on CIFAR-10). They track how many pruning iterations each parameter survives, assigning it a ground-truth "surviving score."
  2. Score Prediction: They train an end-to-end neural network (AutoS) using a ResNet backbone. This network takes a parameter's initial features—its initial weight ($\theta_0$) and its initial gradient ($g_0$) on the dataset—and learns to predict its final surviving score.

Once trained, AutoS acts as a universal pruning judge. For any new, untrained network, you simply feed its initial weights and gradients into AutoS, obtain the predicted scores, and immediately prune the lowest-scoring parameters before starting training.

Figure 2: (a) illustrates the process of obtaining the surviving score, which also serves as the generation process for the AutoS dataset DA. DA consists of parameters after initialization and gradients obtained based on the pruning dataset. (b) demonstrates how AutoS predicts these scores. Specifically, features from the initial network are concatenated and input into AutoS, which then predicts the parameter scores.

Datasets

The approach was evaluated across several standard computer vision benchmarks:

  • MNIST: Used for initial analysis on LeNet-300-100.
  • CIFAR-10 & CIFAR-100: Used to evaluate generalization across VGG-16, VGG-19, and ResNet-18 architectures.
  • TinyImageNet: Used to test the robustness of the method on a larger-scale dataset.

Key Insights and Ideas

  • Human Heuristics are Suboptimal: When visualizing the actual survival scores of parameters against traditional metrics like weight magnitude, SNIP, or GraSP, the correlations are incredibly messy and unintuitive. Humans cannot easily design a perfect mathematical rule for PaI because the underlying dynamics are too complex.
Figure 1: Visualization of Surviving Score. The score is obtained from IRP on LeNet-300-100 of MNIST. (a) The correlation between surviving score and initial parameter. (b) Comparing of surviving score and SNIP [9] and GraSP [10].
  • Neural Networks Discover Clean Pruning Laws: In ablation studies where AutoS was fed only gradients or only parameters, the network autonomously learned nearly perfect, smooth functional curves (resembling logarithmic relationships). This proves that neural networks can inherently discover elegant, underlying pruning principles that evade human intuition.
  • Cross-Architecture Generalization: Pruning logic is fundamentally consistent across deep learning. A single dataset generated from a ResNet-18 model on CIFAR-10 successfully taught AutoS how to prune a VGG-16 network on CIFAR-10 or a ResNet-18 on TinyImageNet without any retraining.

Key Results

AutoS consistently outperformed state-of-the-art handcrafted PaI baselines (SNIP, GraSP, NPB), particularly in ultra-high sparsity settings:

  • VGG-16 on CIFAR-10 & VGG-19 on CIFAR-100: AutoS outperformed the popular SNIP method by roughly 2% absolute accuracy across various sparsities.
  • ResNet-18 on CIFAR-10: At extreme sparsities, AutoS maintained superior performance, beating SNIP by 0.8% at 95% sparsity (only 5% of weights remaining) and by 0.5% at 99% sparsity.
  • TinyImageNet: AutoS demonstrated strong robustness on larger datasets, consistently beating SNIP and GraSP across all tested pruning ratios.

Limitations and Future Work

Despite its success, the authors point out a few areas for improvement:

  • The Iterative Pruning Gap: While AutoS beats other initialization pruning methods, a performance gap still remains between it and full, computationally expensive iterative pruning.
  • Dependence on Base Dataset Quality: If the initial model used to generate the training dataset performs poorly, AutoS struggles to learn an ideal data mapping.
  • Modality and Feature Expansion: The current work focuses exclusively on computer vision. Future work could explore expanding AutoS to NLP architectures (like Transformers) and incorporating structural network topology features into the input space to further boost accuracy.

Summary updated

BibTeX
@misc{liu2024learning,
  author = {Shengkai Liu and Yaofeng Cheng and Fusheng Zha and Wei Guo and Lining Sun and Zhenshan Bing and Chenguang Yang},
  title = {{Learning effective pruning at initialization from iterative pruning}},
  year = {2024},
  eprint = {2408.14757},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.14757},
}
Figure