Sparsest Models Elude Pruning: An Exposé of Pruning's Current Capabilities

Stephen Zhang, Vardan Papyan

TL;DR

Current neural network pruning algorithms are surprisingly far from finding the truly "sparsest" possible models. By benchmarking state-of-the-art techniques against a novel combinatorial search on a simple synthetic dataset, researchers found a massive performance gap, revealing that our best pruning tools often get stuck in suboptimal solutions and struggle even more as models get larger.

What Problem Does This Paper Address?

Pruning—the process of removing unnecessary parameters from a neural network—is a cornerstone of model compression. However, evaluating how well these algorithms actually work is difficult. On complex real-world datasets like ImageNet, we don't know what the "ideal" sparsest model looks like, so we can't measure the efficiency gap.

The authors argue that if pruning can't find the most efficient version of a tiny model on a simple task, it likely struggles even more on massive ones. They set out to expose the hidden shortcomings of current pruning capabilities by creating a "ground truth" for sparsity that they could compare against standard algorithms.

Methods

The researchers developed three primary tools for their "exposé":

  1. Combinatorial Search: Since finding the absolute sparsest model is an NP-hard problem, they designed a two-phase search algorithm for small networks.
  2. Phase 1 (Structured): A grid search to find the minimum number of neurons needed in each layer.
  3. Phase 2 (Unstructured): An exhaustive search through possible connection masks within that minimal structure to find the fewest weights required to hit a target accuracy.
  4. Sparse Model Visualization: A tool (similar to TensorFlow Playground) that allows researchers to "see" the internal logic of a sparse network, including post-activation states and weight connections.
  5. Benchmarking Suite: They tested nine popular pruning algorithms, including Lottery Ticket Hypothesis (LTH), Gradual Magnitude Pruning (GMP), and RigL, across nearly 500,000 experiments.

Datasets

The paper introduces the Cubist Spiral dataset. Comparative view of spiral datasets While the classic spiral is a standard non-linear benchmark, its curved edges are hard for sparse models to represent efficiently. The "Cubist" version straightens these edges, making the underlying logic more "interpretable" for a sparse network while maintaining the challenge of non-linear separability.

Figure 2. Comparative view of spiral datasets.

Key Insights and Ideas

  • The Overparameterization Paradox: In deep learning, bigger is usually better for training. However, this paper found that overparameterization hinders pruning. As the initial width of the network increased, the performance of pruning algorithms actually deteriorated. At a width of 256, almost all algorithms failed to solve the simple Cubist Spiral task when pruned to high sparsity.
  • Disconnected Paths: Visualization revealed that pruning algorithms often leave "dead-end" connections—weights that are active but don't actually connect the input to the output. These "zombie" parameters inflate the model size without adding any predictive power.
  • Initialization Isn't Everything: Even when the researchers gave pruning algorithms the "perfect" starting weights and the "perfect" network width (identified by their search), the algorithms still failed to find the optimal sparsity masks. This suggests the issue lies in the pruning logic itself, not just the starting conditions.
  • Magnitude Pruning is a Local Minimum: The common practice of pruning weights based on their size (magnitude) after training is insufficient. The combinatorial search found much sparser models that magnitude pruning simply couldn't reach.

Key Results

The gap between "ideal" sparsity and "algorithmic" pruning is stark:

  • Efficiency Gap: To reach 95% accuracy, the combinatorial search found a model with only 30 nonzero parameters. The best standard method (LTH) required 44—nearly 50% more parameters.
  • High Accuracy Regime: To hit >99.5% accuracy, the search found a model with 45 parameters, while the best pruning method (GMP) needed 61.
  • Failure at Scale: As shown in their overparameterization experiments, standard pruning methods that worked reasonably well on a width-7 model failed completely when starting from a width-256 model, despite the task remaining exactly the same.
Figure 1. Sparse Model Visualization. Visualization of a sparse model, discovered through our combinatorial search algorithm, trained on the Cubist Spiral dataset. The first two squares on the left denote the input variables, while the final, larger square depicts the output from the classifier. The intermediate squares reveal post- activation states which are connected by edges, corresponding to entries in weight matrices. At the top of each square, there is a tiny square that is colored according to the bias of the corresponding neuron. Blue is used to represent a positive value, orange a negative value, and white – a value of zero.

Limitations and Future Work

The primary limitation is computational cost. Combinatorial search is exponentially expensive, restricting this study to small Multi-Layer Perceptrons (MLPs) and synthetic data. We still don't know if these specific "disconnected path" issues manifest the same way in massive Transformers or ResNets, though the authors suspect the problems are only exacerbated at scale.

The authors hope this work serves as a "call to arms" for the research community to move beyond simple magnitude-based heuristics and develop new pruning techniques that can truly navigate the complex landscape of network sparsity.

Summary updated

BibTeX
@inproceedings{zhang2024sparsest,
  author = {Stephen Zhang and Vardan Papyan},
  title = {{Sparsest Models Elude Pruning: An Exposé of Pruning's Current Capabilities}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=DRGgT7SyC7},
}
Figure