Skip to main content
QUICK REVIEW

[Paper Review] Learning Efficient Convolutional Networks through Network Slimming

Zhuang Liu, Jianguo Li|arXiv (Cornell University)|Aug 22, 2017
Advanced Neural Network ApplicationsComputer Science32 references269 citations
TL;DR

This paper introduces Network Slimming, a training scheme that learns channel-level sparsity by applying L1 regularization to BN scaling factors, enabling automatic pruning of insignificant channels and resulting in compact CNNs with maintained or improved accuracy without special hardware. It demonstrates up to 20x model-size reduction and ~5x FLOPs reduction across VGGNet, ResNet, and DenseNet on CIFAR, SVHN, and ImageNet.

ABSTRACT

The deployment of deep convolutional neural networks (CNNs) in many real world applications is largely hindered by their high computational cost. In this paper, we propose a novel learning scheme for CNNs to simultaneously 1) reduce the model size; 2) decrease the run-time memory footprint; and 3) lower the number of computing operations, without compromising accuracy. This is achieved by enforcing channel-level sparsity in the network in a simple but effective way. Different from many existing approaches, the proposed method directly applies to modern CNN architectures, introduces minimum overhead to the training process, and requires no special software/hardware accelerators for the resulting models. We call our approach network slimming, which takes wide and large networks as input models, but during training insignificant channels are automatically identified and pruned afterwards, yielding thin and compact models with comparable accuracy. We empirically demonstrate the effectiveness of our approach with several state-of-the-art CNN models, including VGGNet, ResNet and DenseNet, on various image classification datasets. For VGGNet, a multi-pass version of network slimming gives a 20x reduction in model size and a 5x reduction in computing operations.

Motivation & Objective

  • Motivate the deployment challenges of large CNNs due to model size, run-time memory, and compute costs in resource-constrained environments.
  • Propose a simple, architecture-agnostic training scheme to automatically slim networks by channel-wise pruning.
  • Show that channel-level sparsity can significantly reduce parameters and FLOPs while preserving or improving accuracy across multiple architectures and datasets.

Proposed method

  • Attach a channel-wise scaling factor gamma to each BN layer's outputs and train W (weights) and Gamma with an L1 sparsity penalty on Gamma.
  • Use L1 regularization to push Gamma values towards zero, enabling automatic identification of insignificant channels.
  • Prune channels with near-zero Gamma values using a global percentile threshold across all layers, then fine-tune the resulting narrower model.
  • Leverage BN scaling factors directly as pruning signals without changing the network architecture or requiring sparse computation libraries.
  • Optionally repeat the process in a multi-pass scheme to obtain further compression.
  • Adapt pruning for networks with cross-layer connections and pre-activation structures by pruning incoming channels per layer and applying channel selection at inference.

Experimental results

Research questions

  • RQ1Can channel-level sparsity learned during training substantially reduce model size, memory footprint, and FLOPs without sacrificing accuracy?
  • RQ2How effective is network slimming across diverse CNN architectures (VGGNet, ResNet, DenseNet) and datasets (CIFAR-10/100, SVHN, ImageNet)?
  • RQ3What are the practical effects of the sparsity regularization strength and pruning percentage on final accuracy and resource savings?
  • RQ4How does multi-pass slimming compare to a single-pass approach in terms of compression and accuracy?

Key findings

  • Network slimming achieves substantial resource reductions with little or no accuracy loss across several architectures and datasets.
  • Pruning up to 60-70% of channels can maintain or even improve test accuracy in many cases after fine-tuning.
  • On CIFAR-10/SVHN, parameter reductions up to ~10x and FLOP reductions around ~50% are observed with maintained accuracy.
  • On ImageNet, pruning 50% of channels yields more than 5x parameter savings with up to ~30% FLOP reduction and no accuracy loss on VGG-A.
  • A regularization effect from L1 sparsity can improve generalization, sometimes lowering test error after pruning and fine-tuning.
  • A multi-pass slimming scheme can yield further compression and accuracy benefits for some models and datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.