A Probabilistic Approach to Neural Network Pruning

Xin Qian, Diego Klabjan · OpenReview

TL;DR

This paper provides a theoretical framework for understanding neural network pruning, specifically focusing on how much we can prune a network while maintaining its expressive power. The authors offer probabilistic guarantees for both magnitude-based and random pruning techniques on fully-connected networks (FCNs) and convolutional neural networks (CNNs), showing that significant pruning is possible without sacrificing performance.

What Problem Does This Paper Address?

Modern neural networks, especially those achieving state-of-the-art results, are notoriously large, often containing billions of parameters. This leads to high computational costs for training and inference, as well as substantial memory requirements. Neural network pruning aims to reduce the number of parameters by removing redundant weights or neurons, thereby creating smaller, more efficient models without compromising their predictive accuracy. While many empirical pruning methods exist, there's a notable lack of theoretical analysis that rigorously studies the capabilities and compression ratios achievable by these techniques. This paper aims to fill this gap by providing a probabilistic understanding of how much pruning can be done while guaranteeing a certain level of performance.

Methods

The authors theoretically analyze two primary pruning techniques:

  • Magnitude-based pruning: This method involves identifying and removing weights with the smallest absolute values.
  • Random pruning: This approach randomly selects weights to remove.

They develop a universal probabilistic framework to bound the gap between a pruned network and the original target network. This framework is applied layer-by-layer, using mathematical tools from probability theory and theoretical computer science. For FCNs, they derive conditions under which random and magnitude-based pruning can approximate the target network with a bounded error with high probability. For CNNs, they adapt these methods by leveraging matrix representations of convolutional layers and their properties, particularly focusing on random pruning. The proofs rely heavily on lemmas concerning order statistics of uniform distributions, sub-Gaussian random matrices, and the "balls-into-bins" problem.

Datasets

The paper does not explicitly train or evaluate models on specific datasets for empirical validation. Instead, it uses theoretical analysis and refers to common practices and existing work that might involve datasets like Covertype and image datasets (e.g., MNIST, CIFAR-10) for illustrating weight distributions.

Key Insights and Ideas

  • Pruning is theoretically sound: The paper provides strong theoretical backing for the idea that significant pruning is possible without losing a network's expressive power.
  • Random pruning can be as effective as magnitude-based: While magnitude-based pruning is intuitive, the theoretical results suggest that random pruning can also achieve comparable performance under certain conditions, especially in over-parameterized networks.
  • Universal framework for FCNs and CNNs: The authors present a unified approach that can be extended to different network architectures, demonstrating the generality of their probabilistic framework.
  • Bridging theory and practice: The work offers guidance for practitioners by providing probabilities of finding good subnetworks and estimating how many weights can be pruned.

Key Results

The paper establishes theoretical guarantees for pruning:

  • For FCNs: Under specific assumptions about weight distributions and network width, the authors prove that both magnitude-based and random pruning can yield subnetworks that are $\epsilon$-close to the original network with high probability. The required network width is shown to be polynomially related to the desired accuracy and inversely related to the pruning ratio.
  • For CNNs: Similar probabilistic guarantees are provided for random pruning of CNNs, adapted to the specific structure of convolutional layers. The results highlight the importance of the number of channels and kernel dimensions.

The theoretical results establish that there exist pruned networks with expressive power within any specified bound from the target network.

Limitations and Future Work

  • Assumptions: The theoretical results rely on certain assumptions, such as the independence of weights in the target network and specific distributions (e.g., uniform, sub-Gaussian). The paper acknowledges that real-world trained weights might not perfectly adhere to these assumptions and suggests exploring more general distributions and relaxing the independence assumption.
  • Practicality of over-parameterization: The theoretical analysis often assumes an over-parameterized target network, which might not always be the case in practice.
  • Activation functions: While ReLU and tanh are mentioned as satisfying certain conditions, the analysis might need to be extended for other activation functions.
  • Future Work: The authors suggest extending the work to magnitude-based pruning for sub-Gaussian distributions, exploring the impact of pooling layers and residual connections, and leveraging additional information like gradients for pruning. They also aim to provide more precise theoretical guarantees and improve the constants in their bounds.

Summary updated

BibTeX
@inproceedings{qian2021probabilistic,
  author = {Xin Qian and Diego Klabjan},
  title = {{A Probabilistic Approach to Neural Network Pruning}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure