Towards Compact ConvNets via Structure-Sparsity Regularized Filter Pruning

Shaohui Lin, Rongrong Ji, Yuchao Li, Cheng Deng, Xuelong LiarXiv 2019

Abstract

Deep convolutional neural networks (CNNs) achieve state-of-the-art performance but are computationally expensive and memory-intensive. This paper introduces Structured Sparsity Regularization (SSR), a filter pruning framework designed to produce compact models suitable for mobile and embedded deployment. Unlike weight-level pruning, SSR removes entire filters, enabling immediate hardware acceleration. We propose a fast Alternative Updating with Lagrange Multipliers (AULM) solver to optimize the sparsity-inducing objective. Our approach achieves significant speedups on architectures like ResNet and VGG with minimal accuracy impact, and even improves performance in some instances through effective regularization.

Introduction

Modern CNNs like ResNet-152 require billions of operations, making them difficult to deploy on edge devices. Traditional network pruning often results in "unstructured" sparsity—randomly distributed zero weights that standard hardware cannot efficiently skip. To address this, we focus on filter-level pruning. By removing entire filters and their corresponding feature maps, we reduce the network's width, leading to direct, hardware-agnostic acceleration without requiring specialized sparse-matrix libraries.

Methodology: Structured Sparsity Regularization

The core of our approach is the integration of structured sparsity directly into the training objective.

Structured Sparsity Norms

We utilize $\ell_{2,1}$ and $\ell_{2,0}$ norms to penalize entire filters rather than individual weights. This encourages the optimization process to zero out non-contributory filters globally across the network.

The AULM Solver

Optimizing these non-smooth sparsity functions is computationally demanding. We propose the Alternative Updating with Lagrange Multipliers (AULM) solver. Inspired by ADMM and enhanced with Nesterov’s acceleration, AULM is approximately 2.5x faster than previous state-of-the-art solvers.

The SSR pruning pipeline and matrix-based filter removal process.

Pruning Pipeline

The process follows a systematic loop:

  1. Filter Evaluation: Assess filter importance using SSR.
  2. Pruning: Remove unimportant filters and their associated output feature maps.
  3. Cross-Layer Update: Adjust the input channels of the subsequent layer to match the new dimensions.
  4. Fine-tuning: Retrain the pruned network to recover accuracy.

Experimental Evaluation

We evaluated SSR across multiple benchmarks, including MNIST, ImageNet, and PASCAL VOC.

Large-Scale Classification (ImageNet)

On VGG-16, SSR reduced parameters from 138M to 9.2M while improving Top-1 accuracy by 1.65%. This suggests that pruning acts as a powerful regularizer for over-parameterized models. For ResNet-50, we achieved a 1.9x CPU speedup.

Pruning a ResNet bottleneck block. Red numbers indicate the reduced channel counts after pruning.

Transfer Learning and Object Detection

Pruned models maintain high performance on downstream tasks. A VGG-16 backbone pruned via SSR for Faster R-CNN achieved a 2.45x GPU acceleration on a Titan X with only a 0.3% drop in mean Average Precision (mAP) on PASCAL VOC 2007.

Discussion and Future Work

While effective, pruning complex architectures like ResNet presents challenges due to residual "shortcut" connections, which require matching input/output dimensions. Currently, we preserve the final layer of residual blocks to maintain consistency. Future work will explore automated "filter selection layers" to handle these constraints more flexibly and extend pruning to batch normalization and pooling layers.

Conclusion

SSR provides a robust framework for creating compact, efficient CNNs. By focusing on structured sparsity and utilizing the high-speed AULM solver, we bridge the gap between theoretical model compression and practical hardware acceleration.

Summary updated

BibTeX
@misc{lin2019towards,
  author = {Shaohui Lin and Rongrong Ji and Yuchao Li and Cheng Deng and Xuelong Li},
  title = {{Towards Compact ConvNets via Structure-Sparsity Regularized Filter Pruning}},
  year = {2019},
  eprint = {1901.07827},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.07827},
}
Figure