Speeding up convolutional networks pruning with coarse ranking

Zi Wang, Chengcheng Li, Dali Wang, Xiangyang Wang, Hairong QiarXiv 2019

Introduction

Deep Convolutional Neural Networks (DCNNs) have revolutionized computer vision but often come with a high computational cost due to over-parameterization. This makes them difficult to deploy on resource-constrained edge devices. Channel pruning—removing entire filters and their feature maps—is a popular solution to reduce model size and latency. However, the standard iterative process of ranking, pruning, and fine-tuning is computationally expensive, primarily due to the data-driven ranking step.

The Bottleneck: Precise Ranking

The traditional pruning pipeline follows a three-step loop:

  1. Ranking: Calculate filter importance by performing forward and backward passes over a large dataset.
  2. Pruning: Remove the least important filters.
  3. Fine-tuning: Retrain the network to recover accuracy.

The ranking step is the bottleneck. State-of-the-art criteria, such as Taylor expansion or Mean Activation, require dedicated computation to observe activations and gradients. Repeating this for every pruning iteration significantly slows down the overall process.

Proposed Method: Coarse Ranking

The authors introduce a "coarse ranking" framework that eliminates the dedicated ranking phase. Instead of running separate forward and backward passes, the framework reuses the intermediate data generated during the fine-tuning phase.

The standard pruning pipeline (top) vs. the proposed coarse ranking pipeline (bottom).

As shown in the figure above, the proposed approach merges ranking into the fine-tuning step. While the network weights are updating, the importance scores are calculated "on the fly." Although these scores are slightly less precise than those from a dedicated pass, the authors demonstrate that this "coarse" information is sufficient for effective pruning. To handle the first iteration where no fine-tuning data exists yet, the method starts with a random pruning step.

Key Insight: Precise Ranking is Overkill

A core finding of this research is that pruning the absolute least important filters is not strictly necessary. Empirical tests showed that pruning filters ranked slightly higher (e.g., the 21st-30th least important) resulted in nearly identical performance to pruning the bottom 10. This flexibility allows the system to tolerate the slight imprecision of coarse ranking without impacting the final model quality.

Experimental Results

The framework was evaluated on standard benchmarks including CIFAR-10, Birds-200, Flowers-102, and ImageNet using AlexNet and VGG-16 architectures.

Accuracy vs. number of filters pruned for the Taylor Expansion baseline and the proposed Rank in Finetune method.

As illustrated in the results above, the accuracy of networks pruned with coarse ranking ("Rank in Finetune") perfectly matches the performance of the expensive "Taylor Expansion Baseline" across all datasets.

Key performance metrics include:

  • Massive Speedups: The total pruning time was reduced by up to 75% for AlexNet on CIFAR-10 and approximately 60% for VGG-16 on ImageNet.
  • Negligible Ranking Time: The time spent specifically on ranking filters dropped from minutes to less than 0.01 seconds.
  • Identical Accuracy: There was no degradation in final classification accuracy compared to precise ranking methods.

Conclusion and Limitations

Coarse ranking transforms filter importance estimation from a major computational burden into a nearly zero-cost operation by piggybacking on the fine-tuning process. While the correlation between coarse and precise rankings is slightly lower on massive datasets like ImageNet due to mini-batch variance, the final accuracy remains robust. This framework provides a practical path for significantly faster neural network optimization, making it easier to deploy high-performance models on mobile and edge hardware.

Summary updated

BibTeX
@misc{wang2019speeding,
  author = {Zi Wang and Chengcheng Li and Dali Wang and Xiangyang Wang and Hairong Qi},
  title = {{Speeding up convolutional networks pruning with coarse ranking}},
  year = {2019},
  eprint = {1902.06385},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.06385},
}
Figure