C2S2: Cost-aware Channel Sparse Selection for Progressive Network Pruning

Chih-Yao Chiu, Hwann-Tzong Chen, Tyng-Luh LiuarXiv 2019

Abstract

Deep neural networks are often over-parameterized, hindering their deployment on resource-constrained devices. This paper introduces C2S2 (Cost-aware Channel Sparse Selection), a novel framework for progressive network pruning. By inserting a plug-and-play "pruning layer"—a $1 \times 1$ depth-wise convolutional module—the method identifies and removes redundant channels through learnable masks. A cost-aware feedback loop ensures the pruning process stops before accuracy significantly degrades, enabling massive compression (up to 95%) without the extensive manual tuning required by traditional methods.

Introduction

The deployment of deep learning models on mobile and embedded systems is limited by their high memory and computational requirements. While network pruning is a common solution, it faces two primary challenges: the combinatorial complexity of selecting optimal channel combinations and the "overshooting" problem, where excessive pruning leads to irreversible accuracy loss. C2S2 addresses these by automating channel selection and providing a "safety valve" mechanism to maintain performance.

The C2S2 Framework

The Pruning Layer

The core of C2S2 is the Pruning Layer, which is inserted between existing convolutional layers. This layer consists of a $1 \times 1$ depth-wise convolution that acts as a learnable mask for channel selection.

The C2S2 pruning layer acts as a binary mask between convolutional layers to select active channels.

During training, the pruning layer uses real-valued weights to facilitate gradient descent. However, these weights are binarized (0 or 1) during inference to act as a hard mask. To bridge the gap between continuous optimization and discrete selection, the authors introduce a bipolar loss term. This term pushes weights toward the extremes of 0 or 1, making a universal threshold of 0.5 an effective "on/off" switch across all layers.

Cost-Aware Mechanism and Progressive Pruning

Unlike static pruning methods that require a predefined pruning ratio, C2S2 employs a cost-aware feedback loop. The system monitors training loss; if a spike occurs—indicating that the model's performance is breaking due to over-pruning—a Restoring state is triggered. This mechanism "rewinds" the pruning for that layer, restoring just enough channels to stabilize accuracy.

The pruning proceeds progressively, typically in a forward order from input to output. This layer-by-layer approach allows the network to adapt to the reduced capacity of preceding layers. The authors also demonstrated that fine-tuning a pruned model performs better than training a model with the same "slim" architecture from scratch, suggesting that the pruning process preserves critical, pre-trained weight information.

Handling Complex Architectures

Pruning modern architectures like ResNets is challenging due to residual "shortcut" connections, which require consistent channel counts across blocks. C2S2 manages this by using shared pruning layers across residual groups, ensuring that the dimensions remain compatible while still allowing for significant intra-block sparsity.

Overview of the pruning pipeline: (a) augmenting the network with pruning layers, (b) within-block pruning, and (c) between-block pruning for residual structures.

Experimental Results

The authors evaluated C2S2 on standard benchmarks including CIFAR-10/100, ImageNet, and PASCAL VOC.

  • VGG-Net (CIFAR-10): C2S2 achieved a 92.1% reduction in parameters and a 61% reduction in FLOPs with no loss in accuracy.
  • FCN-8s (PASCAL VOC): The method slashed parameters by 95.6% and FLOPs by 63.7%, while maintaining segmentation quality and improving fine object boundary predictions.
  • MobileNet (CIFAR-100): Even on this already compact architecture, C2S2 reduced FLOPs by 38.1% with only a 1% accuracy drop.
  • Efficiency: On ImageNet, C2S2 proved to be up to 3x faster than competing methods by achieving comparable results using only a subset of the training data.

Conclusion and Future Work

C2S2 provides a robust, automated approach to network slimming. By treating pruning as a learnable task with a built-in performance safeguard, it removes the guesswork from model compression. Future research may explore global optimization strategies that move beyond layer-wise dependencies and investigate hardware-specific optimizations to translate FLOP reductions into real-world latency gains.

Summary updated

BibTeX
@misc{chiu2019c,
  author = {Chih-Yao Chiu and Hwann-Tzong Chen and Tyng-Luh Liu},
  title = {{C2S2: Cost-aware Channel Sparse Selection for Progressive Network Pruning}},
  year = {2019},
  eprint = {1904.03508},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.03508},
}
Figure