Pruning Neural Networks via Coresets and Convex Geometry: Towards No Assumptions

Murad Tukan, Loay Mualem, Alaa Maalouf · OpenReview

Abstract

Pruning is one of the predominant approaches for compressing deep neural networks (DNNs). Lately, coresets (provable data summarizations) were leveraged for pruning DNNs, adding the advantage of theoretical guarantees on the trade-off between the compression rate and the approximation error. However, coresets in this domain were either data-dependent or generated under restrictive assumptions on both the model's weights and inputs. In real-world scenarios, such assumptions are rarely satisfied, limiting the applicability of coresets. To this end, we suggest a novel and robust framework for computing such coresets under mild assumptions on the model's weights and without any assumption on the training data. The idea is to compute the importance of each neuron in each layer with respect to the output of the following layer. This is achieved by a combination of Löwner ellipsoid and Caratheodory theorem. Our method is simultaneously data-independent, applicable to various networks and datasets (due to the simplified assumptions), and theoretically supported. Experimental results show that our method outperforms existing coreset based neural pruning approaches across a wide range of networks and datasets. For example, our method achieved a $62\%$ compression rate on ResNet50 on ImageNet with $1.09\%$ drop in accuracy.

Introduction

Deep Neural Networks (DNNs) have revolutionized machine learning but are notoriously over-parameterized. This redundancy leads to massive storage requirements and high computational costs during inference. Pruning—the process of identifying and removing redundant weights or neurons—has emerged as a standard solution to compress these models.

Despite its success, most pruning methods rely on heuristics that lack rigorous theoretical guarantees. While coresets (small, weighted subsets of data that approximate the full set) offer a more principled approach, previous coreset-based pruning methods suffered from two major limitations: they were often data-dependent, requiring access to training data to determine neuron importance, and they relied on restrictive assumptions about weight distributions that rarely hold in real-world "wild" networks. This paper introduces a novel, data-independent framework that leverages convex geometry to prune networks with provable guarantees and minimal assumptions.

The Geometric Pruning Framework

The authors frame the pruning problem as a geometric challenge. By treating the weights of neurons in a given layer as a set of points $P$ in high-dimensional space, the goal becomes finding a small subset of these points that can accurately represent the output of the entire layer for any possible input.

Key Geometric Techniques

To achieve this, the framework utilizes two powerful tools from convex geometry:

  1. Löwner Ellipsoid (Minimum Volume Enclosing Ellipsoid): The algorithm identifies the smallest ellipsoid that contains the convex hull of the neuron weights. This ellipsoid serves as a geometric boundary for the layer's potential behavior.
  2. Carathéodory’s Theorem: This theorem states that any point within the convex hull of a set in $d$ dimensions can be represented as a convex combination of at most $d+1$ points. The authors use this to map the vertices of the bounding ellipsoid back to a small subset of actual neurons, ensuring that the "shape" of the weight space is preserved with fewer parameters.

Sensitivity Sampling

The method calculates an "importance score" (sensitivity) for each neuron based on its geometric position. Neurons that are "extreme" or define the outer boundary of the weight space are prioritized, while those in the interior—which are effectively redundant—are sampled less frequently or removed entirely. This "onion" sampling approach iteratively peels away layers of neurons to find the most representative core.

Theoretical and Practical Advantages

Unlike previous methods that require input data $x$ to calculate importance, this framework uses the geometry of the weights themselves to bound the potential output for any possible input. This makes the method truly data-independent.

Furthermore, while most pruning methods provide additive error bounds (Error + $\epsilon$), this approach provides multiplicative guarantees ($1 \pm \epsilon$). Multiplicative bounds are significantly stronger because the error scales relative to the output size, ensuring more stable performance across different layers and architectures.

Experimental Results

The researchers evaluated the framework on standard computer vision benchmarks, including MNIST (LeNet300-100), CIFAR-10 (VGG16, VGG19, ResNet56), and ImageNet (ResNet50).

  • ResNet50 on ImageNet: The method achieved a 62% compression rate with only a 1.09% drop in accuracy. This significantly outperformed previous state-of-the-art coreset methods like PFP, which reached only 44% compression at a similar error level.
  • VGG16 on CIFAR-10: The framework pruned 90% of the parameters in the dense layers while maintaining the baseline accuracy (5.9% error).
  • LeNet300-100 on MNIST: Interestingly, pruning 90% of the parameters actually improved accuracy, reducing the error from 2.07% to 1.98%. This suggests that the coreset approach acts as a form of regularization, helping the model ignore noise and generalize better.

Conclusion and Future Work

This work demonstrates that convex geometry provides a robust foundation for neural network pruning. By moving away from data-dependent heuristics and toward provable geometric importance, the authors achieve high compression rates without sacrificing accuracy or requiring access to training data.

Future research directions include developing an automated "global budget" to optimize pruning across the entire network simultaneously rather than layer-by-layer. Additionally, extending these coreset techniques to the attention layers of Transformers represents a promising frontier for compressing the next generation of large-scale models.

Summary updated

Abstract

Pruning is one of the predominant approaches for compressing deep neural networks (DNNs). Lately, coresets (provable data summarizations) were leveraged for pruning DNNs, adding the advantage of theoretical guarantees on the trade-off between the compression rate and the approximation error. However, coresets in this domain were either data-dependent or generated under restrictive assumptions on both the model's weights and inputs. In real-world scenarios, such assumptions are rarely satisfied, limiting the applicability of coresets. To this end, we suggest a novel and robust framework for computing such coresets under mild assumptions on the model's weights and without any assumption on the training data. The idea is to compute the importance of each neuron in each layer with respect to the output of the following layer. This is achieved by a combination of Löwner ellipsoid and Caratheodory theorem. Our method is simultaneously data-independent, applicable to various networks and datasets (due to the simplified assumptions), and theoretically supported. Experimental results show that our method outperforms existing coreset based neural pruning approaches across a wide range of networks and datasets. For example, our method achieved a $62\%$ compression rate on ResNet50 on ImageNet with $1.09\%$ drop in accuracy.
BibTeX
@inproceedings{tukan2022pruning,
  author = {Murad Tukan and Loay Mualem and Alaa Maalouf},
  title = {{Pruning Neural Networks via Coresets and Convex Geometry: Towards No Assumptions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=u9JipE7Xjq},
}
Figure