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

Learning Efficient Convolutional Networks through Network Slimming

Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, Changshui Zhang

Introduction

Deep convolutional neural networks (CNNs) have achieved state-of-the-art performance in various computer vision tasks. However, their deployment on resource-constrained platforms is often hindered by high model size, run-time memory requirements, and computational costs (FLOPs). While weight pruning can reduce model size, it often results in "unstructured" sparsity that requires specialized hardware or software to achieve actual speedups. This paper introduces "Network Slimming," a structured pruning method that produces compact, standard networks by leveraging Batch Normalization (BN) layers.

Methodology

The core of Network Slimming is the use of scaling factors in BN layers as indicators of channel importance. In a typical BN layer, activations are normalized and then scaled by a learnable parameter $\gamma$ and shifted by $\beta$. The authors realized that $\gamma$ acts as a direct indicator of a channel's importance; if $\gamma$ is near zero, that channel contributes almost nothing to the final output.

Network Slimming process: identifying and pruning channels with small scaling factors to create a compact network.

The process follows a three-step pipeline:

  1. Sparsity-induced Training: The network is trained with an added L1 regularization penalty on the $\gamma$ parameters, pushing unimportant channels toward zero.
  2. Channel Pruning: Channels with $\gamma$ values below a global threshold are removed, along with their corresponding incoming and outgoing weights.
  3. Fine-tuning: The resulting "slimmed" network is fine-tuned to recover any temporary loss in accuracy.

This approach is highly efficient as it introduces no architectural overhead and results in a standard network structure that is inherently hardware-friendly.

Experimental Results

The authors evaluated Network Slimming across several architectures, including VGGNet, ResNet, and DenseNet, using datasets such as CIFAR-10/100, SVHN, and ImageNet.

Model parameter and FLOP savings across VGGNet, DenseNet-40, and ResNet-164.

On CIFAR-10, VGGNet achieved a 20x reduction in parameters and a 5x reduction in FLOPs while slightly increasing accuracy. For DenseNet-40, pruning 40% of the channels resulted in a lower test error (5.19% vs. 6.11% baseline) while reducing the model size by a third. On the large-scale ImageNet dataset, pruning 50% of the channels in a VGG-A model led to an 82.5% reduction in parameters and a 30.4% reduction in FLOPs with no loss in validation accuracy.

Discussion and Conclusion

Network Slimming demonstrates that BN scaling factors are effective proxies for channel importance. The method not only compresses models but also acts as a form of feature selection, often leading to better generalization. While the method requires careful tuning of the regularization hyperparameter $\lambda$ and specific handling for cross-layer connections in architectures like ResNet, it remains a practical and powerful tool for creating efficient CNNs. Future work may explore its application to tasks beyond classification, such as object detection and semantic segmentation.

Summary updated

BibTeX
@inproceedings{liu2017learning,
  author = {Zhuang Liu and Jianguo Li and Zhiqiang Shen and Gao Huang and Shoumeng Yan and Changshui Zhang},
  title = {{Learning Efficient Convolutional Networks through Network Slimming}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.298},
}
Figure