Why is Pruning at Initialization Immune to Reinitializing and Shuffling?

Sahib Singh, Rosanne LiuarXiv 2021

TL;DR

Pruning-at-initialization methods (like SNIP and SynFlow) are surprisingly robust: you can shuffle their pruning masks or re-randomize their weights without hurting performance. This paper reveals the secret behind this "immunity"—these randomization operations barely change the underlying statistical distribution of the unpruned weights, effectively leaving the network's starting state unchanged from a distributional perspective.

What Problem Does This Paper Address?

Modern deep learning relies on massive models that are difficult to deploy on edge devices. Neural network pruning—removing unnecessary weights—is a standard solution. Recently, researchers have focused on "pruning at initialization," which identifies which weights to cut before training even begins.

However, recent studies (Frankle et al., 2020; Su et al., 2020) uncovered a "bewildering" finding: the specific weights chosen by state-of-the-art methods like SNIP, GraSP, or SynFlow don't seem to matter as much as we thought. If you take the pruning mask and shuffle it within a layer (Layerwise Shuffling) or keep the mask but give the weights new random values (Reinit), the model’s final accuracy remains largely unchanged. This paper asks the fundamental question: Why are these methods so immune to these randomization treatments?

Methods

The authors investigate this mystery through the lens of probability distributions. They analyze four popular pruning methods: Magnitude Pruning, SNIP, GraSP, and SynFlow.

To quantify how much the "randomization" treatments actually change the model, they use the Wasserstein Distance (Wd). Wd measures the "cost" or effort required to transform one probability distribution into another. A low Wd indicates that two sets of weights are statistically very similar, even if the individual values have moved around.

They compare the weight distributions of:

  1. Unmodified Pruning: The original method.
  2. Layerwise Shuffling: Shuffling the mask within each layer (preserving the number of weights per layer).
  3. Reinit: Sampling new initial weights for the existing mask.
  4. Random Pruning (Baseline): Pruning weights randomly across the whole network.

Datasets

The study evaluates these methods across two standard benchmarks:

  • LeNet-300-100 (a fully-connected architecture) trained on the MNIST dataset.
  • ResNet-20 trained on the CIFAR-10 dataset.

Key Insights and Ideas

  • The "Aha!" Moment: The reason shuffling and reinitializing don't hurt performance is that they don't actually change the weight distribution very much. The "clever" selection metrics of SNIP or SynFlow essentially pick a specific statistical distribution of weights; shuffling within a layer or re-sampling from the same initialization distribution preserves that statistical signature.
  • Layer-wise Proportions Matter: The authors note that Layerwise Shuffling is far less destructive than global random pruning because it maintains the specific "sparsity ratio" of each layer.
  • Distributional Stability: Under all four pruning methods, the distribution of unpruned weights changed minimally after randomization. In contrast, true random pruning caused a massive shift in the distribution, which explains its significantly worse performance.

Key Results

The core finding is that the Wasserstein Distance (Wd) for Reinit and Layerwise Shuffling is consistently tiny compared to the Wd of Random Pruning.

Figure 1: Layerwise Wd of LeNet trained on MNIST for all four pruning methods (a-d). Blue, green, red lines represent, respectively, Wd (Reinit, Unmodified), Wd (Layerwise Shuffling, Unmodified), and Wd (Random Pruning, Unmodified). Both Randomize and Reinit treatments modify weight distribution minimally, compared to random pruning.

As seen in the figures, the "randomization" lines (blue and green) are nearly flat and highly comparable to each other across all layers. This holds true for more complex models like ResNet-20 as well.

Figure 2: Layerwise distributional similarity of ResNet-20 on CIFAR. Again, Random Pruning (red) creates a much bigger shift in weight distribution than the other treatments.

Quantitatively, Table 1 in the paper shows that for LeNet-MNIST, the Wd for Random Pruning is often 4 to 5 times higher than the Wd for Reinit or Shuffling. This confirms that the "immunity" is a result of distributional preservation.

Limitations and Future Work

The authors acknowledge that while distributional similarity is a strong lead, it might not be the full explanation for why these models perform so well. They describe their findings as a "viable first step" toward uncovering the mysteries of pruning.

Future research could involve designing new pruning or initialization algorithms that specifically target these optimal distributions, rather than relying on computationally expensive per-weight scoring metrics that might ultimately be redundant.

Summary updated

BibTeX
@misc{singh2021why,
  author = {Sahib Singh and Rosanne Liu},
  title = {{Why is Pruning at Initialization Immune to Reinitializing and Shuffling?}},
  year = {2021},
  eprint = {2107.01808},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.01808},
}
Figure