Data-Independent Neural Pruning via Coresets

Ben Mussay, Margarita Osadchy, Vladimir Braverman, Samson Zhou, Dan Feldman

Deep neural networks are notoriously overparameterized, making them difficult to deploy on edge devices like smartphones or IoT sensors that have limited memory and compute power. While many "pruning" methods exist to shrink these models, they typically suffer from two main drawbacks. First, most methods rely on empirical heuristics and lack theoretical guarantees regarding how much error the pruning introduces for a random new sample. Second, existing methods usually prune based on a specific validation dataset. This makes the compressed model "data-dependent" and potentially vulnerable to adversarial attacks or performance drops when faced with out-of-distribution inputs.

To address these limitations, researchers have introduced the first efficient, data-independent neural pruning algorithm that offers provable worst-case guarantees on the trade-off between compression and approximation error. By applying the mathematical framework of coresets, this approach can prune up to 90% of a network's neurons while maintaining—or even slightly improving—classification accuracy.

Methodology: Pruning as Coreset Construction

The core innovation of this work is treating neural pruning as a coreset construction problem. In computational geometry, a coreset is a small, weighted subset of a large point set that maintains the mathematical properties of the original set.

  • Neuron-as-Point: The authors treat the neurons in layer $i$ as "points" and the weights connecting them to layer $i+1$ as "functions."
  • Layer-by-Layer Pruning: They approximate the output of a layer by selecting a small "representative committee" (the coreset) of neurons from the previous layer and discarding the rest.
Original and pruned neural network layers
  • Additive vs. Multiplicative Error: The authors mathematically prove that for common activation functions like ReLU, it is impossible to achieve a small coreset with multiplicative error guarantees. Consequently, they develop a framework based on additive $\varepsilon$-error, which allows for significant compression with a bounded impact on the output.
  • Algorithm: They provide an efficient sampling-based algorithm that selects neurons based on their "sensitivity"—a measure of how much a specific neuron contributes to the next layer's output across all possible inputs.

Key Insights and Advantages

This coreset-based approach offers several distinct advantages over traditional pruning techniques:

  1. Dense vs. Sparse: Unlike "weight pruning," which results in sparse matrices that are often slow to process on standard hardware, this method performs neuron pruning. This reduces the actual dimensions of the weight tensors, keeping them dense and hardware-friendly.
  2. The "Adversarial" Shield: Because the coreset guarantee is data-independent, the approximation holds for any input $x \in \mathbb{R}^d$. This theoretically makes the pruned network more robust against adversarial inputs compared to data-dependent pruning.
  3. Regularization Effect: Interestingly, the authors found that pruning often improved accuracy. This suggests that the coreset-based pruning acts as a form of regularization, removing "noise" neurons that contribute to overfitting.
  4. Speed: The construction is extremely fast. Compressing a dense layer in a VGG-16 network took only about 56 seconds on standard hardware.

Key Results

The researchers evaluated their approach on two standard benchmarks: MNIST (using the LeNet-300-100 architecture) and CIFAR-10 (using the dense layers of the VGG-16 architecture).

Compression and error rates for LeNet and VGG-16

As shown in the results, the method achieved massive reductions in parameter counts without sacrificing performance:

  • LeNet-300-100 (MNIST): Achieved 90% compression (reducing parameters from 267K to 26K) while actually reducing the error rate from 2.16% to 2.03%.
  • VGG-16 (CIFAR-10): Achieved 75% compression in the dense layers (reducing parameters from 1.4M to 350K) while improving accuracy (error dropped from 8.95% to 8.16%).

The coreset method consistently outperformed uniform sampling and other matrix sparsification techniques, especially at high compression rates. It also required significantly less fine-tuning time (about half the epochs) compared to uniform sampling.

Limitations and Future Work

While highly effective, the current experimental results focus primarily on fully connected (dense) layers. Modern architectures like ResNets are dominated by convolutional layers, which present a different structural challenge. Additionally, the current theory provides guarantees for a single layer. While the authors apply it iteratively, the "error accumulation" across many deep layers is a complex theoretical area that requires further exploration.

Moving forward, the authors plan to extend this framework to prune convolutional filters directly and to develop a more holistic theory for the composition of multiple pruned layers, paving the way for even more robust and efficient edge AI deployments.

Summary updated

BibTeX
@inproceedings{mussay2020data,
  author = {Ben Mussay and Margarita Osadchy and Vladimir Braverman and Samson Zhou and Dan Feldman},
  title = {{Data-Independent Neural Pruning via Coresets}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=qVXfjjnWRCTu},
}
Figure