Group Fisher Pruning for Practical Network Compression

Liyang Liu, Shilong Zhang, Zhanghui Kuang, Aojun Zhou, Jing-Hao Xue, Xinjiang Wang, Yimin Chen, Wenming Yang, Qingmin Liao, Wayne Zhang

TL;DR

This paper introduces "Group Fisher Pruning," a novel channel pruning method that effectively compresses complex neural network architectures, including those with residual connections and group convolutions. By intelligently grouping coupled channels and using memory reduction as a key metric for importance, the method achieves significant inference speedups on GPUs without sacrificing accuracy.

What Problem Does This Paper Address?

Modern deep neural networks achieve impressive performance but come with a hefty price tag: large memory footprints and high computational demands, making them challenging to deploy on resource-constrained devices. While network pruning aims to alleviate this by removing less important parts of the network, existing methods often struggle with complex architectures like ResNets or MobileNets. These networks feature "coupled channels" – channels across different layers that are interdependent. Pruning these channels individually can lead to accuracy degradation or suboptimal speedups. The paper tackles this by proposing a unified approach that can handle these coupled channels effectively.

Methods

The core of this work lies in two main innovations:

  • Layer Grouping for Coupled Channels: The authors introduce a layer grouping algorithm that automatically identifies channels across different layers that are coupled. This is crucial because pruning one channel in a coupled set should ideally affect all others in that set simultaneously. They use a depth-first search on the network's computation graph to find these dependencies, particularly focusing on convolutional and fully-connected layers.
  • Fisher Information and Memory Normalization: To assess channel importance, the paper leverages Fisher Information, a principled metric derived from the expected change in the network's loss when a channel is removed. This is approximated using gradients. Crucially, instead of solely relying on FLOPs (Floating Point Operations), which don't always translate directly to GPU speed, they normalize the importance scores by the memory reduction achieved by pruning a channel. This memory-centric approach is found to be a more accurate predictor of actual inference speedup on GPUs. Coupled channels are pruned together by sharing a mask, and their combined importance is calculated using the chain rule of gradient computation.

Datasets

The proposed method was evaluated on standard datasets for computer vision tasks:

  • Image Classification: ImageNet
  • Object Detection: COCO

Key Insights and Ideas

  • Coupled Channels are Key: The paper highlights that ignoring channel dependencies in complex networks leads to suboptimal pruning. Their layer grouping algorithm is a novel way to systematically identify and handle these dependencies.
  • Memory Matters More Than FLOPs for GPU Speed: A significant finding is that for GPU inference, memory reduction is a better proxy for speedup than FLOP reduction. This insight drives their normalization strategy and explains why their method achieves practical acceleration.
  • Unified Metric for Complex Structures: By using Fisher Information and the chain rule for coupled channels, they provide a principled way to evaluate importance across diverse and complex network architectures, moving beyond simpler magnitude-based or layer-wise methods.
  • Generality: The method is designed to be general, not relying on specific layers like Batch Normalization, making it applicable to a wider range of models, including those used in object detection.

Key Results

The Group Fisher Pruning method demonstrated strong performance across various architectures and tasks:

  • Image Classification: On ResNet, ResNeXt, MobileNetV2, and RegNet, their method achieved competitive or superior top-1 accuracies compared to state-of-the-art pruning techniques, while significantly boosting inference speed. For example, they achieved higher accuracy and speed than a searched counterpart for RegNet under the same FLOPs.
  • Object Detection: For networks like RetinaNet, FSAF, ATSS, PAA, and Faster R-CNN on the COCO dataset, the method achieved substantial speedups (e.g., 3x for Faster R-CNN) with minimal or even slight improvements in mAP, showcasing its effectiveness in more demanding tasks.
  • Efficiency: The memory-normalization strategy consistently led to better accuracy-efficiency trade-offs compared to FLOP-based normalization or unnormalized scores.

Limitations and Future Work

  • Limitations: The paper acknowledges that while their method is general, it still relies on the assumption of a converged model for accurate Fisher Information estimation. The pruning process is iterative and involves fine-tuning, which can be computationally intensive.
  • Future Work: The authors suggest exploring theoretical modeling of the relationships between core factors like FLOPs, memory, and inference speed across different hardware platforms (GPU, CPU, TPU). This would further refine pruning strategies for diverse deployment scenarios.

Summary updated

BibTeX
@inproceedings{liu2021group,
  author = {Liyang Liu and Shilong Zhang and Zhanghui Kuang and Aojun Zhou and Jing-Hao Xue and Xinjiang Wang and Yimin Chen and Wenming Yang and Qingmin Liao and Wayne Zhang},
  title = {{Group Fisher Pruning for Practical Network Compression}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=JnZ5sz9vgkj},
}
Figure