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

Pruning at Initialization - A Sketching Perspective

Noga Bar, Raja Giryes

TL;DR

Researchers have discovered that pruning a neural network at initialization is mathematically equivalent to matrix sketching, a well-known technique for efficient matrix multiplication. This theoretical bridge allows for data-independent pruning with provable error bounds and introduces a simple "mask randomization" strategy that boosts the accuracy of sparse networks across various architectures and datasets.

What Problem Does This Paper Address?

The Lottery Ticket Hypothesis (LTH) suggests that dense neural networks contain sparse "winning tickets"—subnetworks that, when trained from their original initialization, can match the performance of the full model. Traditionally, finding these tickets requires expensive iterative training and pruning cycles using labeled data.

While newer methods attempt to prune networks at initialization (before any training happens), many still rely on specific training data. However, empirical evidence has shown that winning tickets can often be transferred between different datasets, hinting that the search for sparse networks might be data-independent. This paper seeks to provide a solid theoretical foundation for why data-free pruning works and how to make it better by viewing the problem through the lens of sketching.

Methods

The authors establish a formal link between pruning and sketching. In sketching, you approximate a large matrix multiplication by sampling a small subset of rows or columns. The authors show that choosing a sparse mask for weights is essentially the same process.

Key methodological contributions include:

  • Algorithm Adaptation: They adapt a standard Monte-Carlo sketching algorithm to generate pruning masks. Instead of hard-thresholding (keeping the top $N$ weights), they treat pruning scores as probabilities for random sampling.
  • Theoretical Analysis: They analyze the pruning error in linear models and the Neural Tangent Kernel (NTK) regime. This allows them to bound the approximation error of the pruned model at the end of training based on its state at initialization.
  • Mask Randomization: They propose replacing the strict "keep the highest scores" criterion with a randomized one. Weights are sampled based on their importance scores, which helps maintain signal flow and reduces approximation error.
  • Enhanced Data-Free Pruning: For methods like SynFlow, they suggest using $\chi$-distributed random input data instead of a simple vector of ones to better mimic the properties of real data distributions.

Datasets

The authors validated their findings using a variety of standard computer vision benchmarks:

  • Fashion-MNIST: Used for initial empirical validation of weight norms.
  • CIFAR-10 and CIFAR-100: Primary datasets for testing VGG-19 and ResNet-20 architectures.
  • Tiny-ImageNet: Used to demonstrate scalability and performance gains on more complex data.
  • ImageNet: The gold standard for large-scale image classification, used to test ResNet-50.

Key Insights and Ideas

  • The Magnitude Bias: Successful pruning methods (like IMP and SynFlow) naturally gravitate toward weights with large magnitudes at initialization. The sketching perspective explains why: optimal sketching probabilities are directly proportional to weight magnitudes.
Weight histograms showing that SynFlow and IMP favor large magnitude weights compared to uniform random masks.
  • Randomization is a Feature, Not a Bug: The paper argues that "hard" thresholding can be sub-optimal. By randomly sampling the mask based on scores (Algorithm 1), they achieve a better approximation of the original dense features.
Comparison of weight scores and masks with and without randomization.
  • Data-Independence Justified: In the NTK regime, the weights don't move very far from their initialization during training. Because the "learned" vector remains related to the initial vector, a mask found at initialization remains effective throughout the training process, even if it was found without seeing the actual training data.

Key Results

The proposed randomized masking strategy consistently improved performance for existing pruning algorithms:

  • SynFlow Improvement: Adding mask randomization and $\chi$-distributed input to SynFlow improved accuracy by approximately 1% on Tiny-ImageNet across various sparsities.
  • SNIP Enhancement: A data-free version of SNIP (using sparse random data and randomized masking) actually outperformed the original supervised SNIP in several scenarios.
  • Robustness: The benefits of mask randomization were consistent across different initialization schemes, including Kaiming, Normal, and Xavier initializations.
Norms of winning tickets vs random masks, showing that winning tickets maintain higher norms across different layers.

Limitations and Future Work

  • Linearity Constraints: Much of the theoretical heavy lifting is done in the linear and NTK regimes. While these are standard tools for analysis, they don't capture all the complexities of deep, non-linear feature learning.
  • Structured Pruning: The current work focuses on unstructured pruning (zeroing individual weights). Extending this sketching perspective to structured pruning (removing entire neurons or channels) remains an open challenge.
  • Sketching Complexity: The authors only explored one specific sketching approach. They suggest that more complex sketching methods could lead to even deeper insights and more efficient pruning algorithms in the future.

Summary updated

BibTeX
@article{bar2025pruning,
  author = {Noga Bar and Raja Giryes},
  title = {{Pruning at Initialization - A Sketching Perspective}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2025},
  doi = {10.1109/tpami.2025.3598343},
}
Figure