How Sparse Can We Prune A Deep Network: A Fundamental Limit Perspective

Qiaozhe Zhang, Ruijie Zhang, Jun Sun, Yingzhuang Liu

Introduction

Deep Neural Networks (DNNs) are notoriously overparameterized, often containing millions more parameters than there are data samples. While network pruning—removing redundant weights—is a standard technique to reduce this computational burden, the field has lacked a rigorous answer to a fundamental question: Exactly how sparse can we make a network before its performance inevitably collapses?

Previous attempts to find this fundamental limit often resulted in loose theoretical bounds that failed to match experimental reality. This paper closes that gap by taking a first-principles approach. Moving beyond empirical heuristics, the authors leverage high-dimensional convex geometry to identify the sharp phase transition point where a network can no longer maintain its performance. They reveal that a network's maximum prunability is dictated primarily by two factors: weight magnitude and network sharpness.

A Geometric Approach to Pruning

To establish this limit, the authors reformulate pruning as a geometric set-intersection problem. They define two key geometric sets:

  1. The Loss Sublevel Set: The region in the parameter space where the loss remains "good enough" (i.e., close to the original dense model's loss).
  2. The $k$-Sparse Set: The set of all possible models with exactly $k$ non-zero weights.
Geometric formulation of pruning as a set-intersection problem between the loss sublevel set and sparsity cones.

To determine if these two sets intersect, the researchers apply the Approximate Kinematics Formula from convex geometry. They use a Taylor expansion of the loss function to model the "good" region as a high-dimensional ellipsoid defined by the network's Hessian matrix. Tools from high-dimensional probability, such as Statistical Dimension and Gaussian Width, are then used to measure the complexity of these geometric shapes.

Because calculating the eigenvalues of a massive Hessian matrix is computationally prohibitive, the authors developed an improved Stochastic Lanczos Quadrature (SLQ) algorithm to accurately estimate the spectrum of non-positive definite matrices.

Key Determinants of Prunability

Through this geometric lens, the paper identifies two fundamental rules that govern how much a network can be pruned:

  • The "Sharpness" Rule: Flatter loss landscapes allow for more aggressive pruning. If the "valley" of the loss function is wide (indicated by low sharpness or a low Hessian trace), there is more room to remove or adjust weights without escaping the optimal region.
  • The "Magnitude" Rule: Smaller overall weight magnitudes lead to a smaller pruning ratio limit. This provides a rigorous theoretical justification for why magnitude-based pruning (removing the smallest weights) is highly effective in practice.
Visualizing the phase transition in pruning and the distribution of parameter magnitudes.

The theory also explains the success of common heuristics. For instance, Iterative Magnitude Pruning (IMP) is effective because as the network is pruned and retrained, the theoretical threshold for the next round of pruning increases, allowing for deeper sparsity than a single-shot approach. Crucially, pruning does not cause a slow, linear decay in accuracy; rather, there is a sharp phase transition. At a specific mathematical point, the statistical dimension of the sparse subspace becomes too small to intersect with the loss sublevel set, triggering a sudden collapse in performance.

Empirical Validation and LOMP

To align theoretical bounds with experimental results, the authors propose $l_1$-regularized One-shot Magnitude Pruning (LOMP). By using $l_1$ regularization during training, weights are pushed toward zero, making the theoretical assumptions hold more tightly in practice.

The researchers validated their theory across standard benchmarks (CIFAR-10, CIFAR-100, TinyImageNet) and architectures (VGG16, ResNet-18, ResNet-50). The results were striking:

  • Perfect Alignment: The theoretical pruning limits predicted by their formulas matched experimental results with near-perfect accuracy, often within a 0.1% to 0.5% margin.
  • State-of-the-Art Sparsity: The LOMP method frequently outperformed established baselines. For example, on CIFAR-100 using a ResNet-50, LOMP achieved 75.22% accuracy at 2.0% sparsity (removing 98% of weights), significantly outperforming the 69.02% achieved by standard IMP at the same level.

Limitations and Future Directions

While groundbreaking, the framework has limitations. The tight match between theoretical bounds and empirical results relies heavily on the removed weights being very small, a condition facilitated by $l_1$ regularization. Whether $l_1$ training is the absolute optimal way to reach the smallest possible sub-network remains an open question. Furthermore, the current theory provides a sharp limit for one-shot pruning based on local Taylor approximations; extending this to understand the global geometry of the loss landscape and the fundamental limits of multi-shot iterative pruning remains a compelling challenge for future work.

Summary updated

BibTeX
@inproceedings{zhang2024how,
  author = {Qiaozhe Zhang and Ruijie Zhang and Jun Sun and Yingzhuang Liu},
  title = {{How Sparse Can We Prune A Deep Network: A Fundamental Limit Perspective}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=IAAPhOLhcX},
}
Figure