NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neural Network Compression Via Sparse Optimization

Tianyi Chen, Bo Ji, Yixin Shi, Tianyu Ding, Biyi Fang, Sheng Yi, Xiao TuarXiv 2020

Abstract

The compression of deep neural networks (DNNs) to reduce inference cost becomes increasingly important to meet realistic deployment requirements of various applications. There have been a significant amount of work regarding network compression, while most of them are heuristic rule-based or typically not friendly to be incorporated into varying scenarios. On the other hand, sparse optimization yielding sparse solutions naturally fits the compression requirement, but due to the limited study of sparse optimization in stochastic learning, its extension and application onto model compression is rarely well explored. In this work, we propose a model compression framework based on the recent progress on sparse stochastic optimization. Compared to existing model compression techniques, our method is effective and requires fewer extra engineering efforts to incorporate with varying applications, and has been numerically demonstrated on benchmark compression tasks. Particularly, we achieve up to 7.2 and 2.9 times FLOPs reduction with the same level of evaluation accuracy on VGG16 for CIFAR10 and ResNet50 for ImageNet compared to the baseline heavy models, respectively.

Introduction

Deep Neural Networks (DNNs) are notoriously resource-hungry, posing significant challenges for deployment on mobile devices or latency-sensitive cloud environments. While weight pruning—the removal of unnecessary connections—is a common mitigation strategy, existing methods often rely on heuristics (e.g., magnitude-based ranking) that can degrade accuracy or require extensive manual tuning for specific architectures. Furthermore, standard sparse optimization techniques like $\ell_1$-regularization often struggle in deep learning contexts because the stochastic noise inherent in gradient descent prevents weights from reaching exact zero.

This research introduces Recursive Sparse Pruning (RSP), a mathematically principled framework that leverages advanced stochastic optimization to identify and remove redundancy based on actual sparsity signals generated during training.

The Recursive Sparse Pruning (RSP) Framework

The core of the RSP framework is an alternating three-step loop designed to drive redundant weights to zero and systematically shrink the network architecture.

The RSP alternating schema for exploring sparsity and compressing layers.
  1. Explore Sparsity via OBProx-SG: Instead of standard SGD, the framework employs the Orthant-Based Proximal Stochastic Gradient (OBProx-SG) optimizer. This optimizer is specifically designed to handle $\ell_1$-regularization in stochastic settings, effectively overcoming gradient noise to drive redundant weights to exactly zero.
  2. Compression Step: The algorithm calculates the empirical sparsity ratio for each layer—the percentage of zeroed-out weights—and subsequently reduces the number of filters in that layer proportionally.
  3. Update Regularization ($\lambda$): As the model's capacity decreases, the regularization coefficient $\lambda$ is updated to maintain appropriate pressure on the remaining weights.

Following this iterative process, a Global Fine-Tuning phase is conducted to retrain the resulting "slim" model, ensuring maximum recovery of performance.

Experimental Results

The RSP method was evaluated on two benchmark tasks: CIFAR-10 using the VGG16 architecture and ImageNet (ILSVRC2012) using ResNet50.

VGG16 on CIFAR-10

As shown in the comparative results, RSP achieves a massive 7.2× reduction in FLOPs while maintaining a Top-1 accuracy of 91.2% (a negligible 0.4% drop from the baseline). This significantly outperforms other state-of-the-art methods like Recursive Bayesian Pruning (RBP), which achieved only a 3.5× reduction for similar accuracy levels.

Comparison of RSP against other pruning methods on VGG16 (CIFAR-10).

ResNet50 on ImageNet

On the more complex ImageNet dataset, RSP achieved a 2.9× reduction in FLOPs with a Top-1 accuracy of 75.1%. This result is particularly noteworthy given the structural constraints of ResNet architectures, such as residual connections, which typically make aggressive pruning more difficult.

Conclusion and Future Work

RSP demonstrates that sparse optimization, when paired with the right stochastic optimizer, provides a superior alternative to heuristic pruning. By allowing the optimizer to "choose" redundant parameters based on the loss function, the method discovers more efficient, layer-specific sparsity patterns.

Future research may explore group-sparsity algorithms to enable the direct removal of entire structural components like channels or kernels. Additionally, while RSP delivers superior inference speed, the computational cost of the alternating training schema remains an area for further optimization.

Summary updated

BibTeX
@misc{chen2020neural,
  author = {Tianyi Chen and Bo Ji and Yixin Shi and Tianyu Ding and Biyi Fang and Sheng Yi and Xiao Tu},
  title = {{Neural Network Compression Via Sparse Optimization}},
  year = {2020},
  eprint = {2011.04868},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.04868},
}
Figure