FGP: Feature-Gradient-Prune for Efficient Convolutional Layer Pruning

Qingsong Lv, Jiasheng Sun, Sheng Zhou, Xu Zhang, Liangcheng Li, Yun Gao, Sun Qiao, Jie Song, Jiajun BuarXiv 2024 · DOI

Abstract

Feature-Gradient-Prune (FGP) is a novel structured pruning method designed to optimize Convolutional Neural Networks (CNNs) for deployment on resource-constrained edge devices. By integrating feature-map activations with gradient-based importance, FGP identifies critical channels that provide robust "support" across all target classes. This approach, inspired by interpretability heatmaps, enables significant reductions in FLOPs and parameters with minimal impact on accuracy across both image classification and semantic segmentation tasks.

Introduction

Deep learning models, particularly CNNs, are often too computationally heavy for smartphones or IoT sensors. While pruning is a standard solution, existing methods typically rely on either weight magnitudes (feature-based) or loss contributions (gradient-based). Feature-based methods can be task-agnostic, while gradient-based methods can be noisy or overlook global structures. FGP addresses these limitations by combining both signals to identify channels that are both active and task-relevant.

Methodology

FGP utilizes a three-stage pipeline to identify and prune redundant channels:

  1. Channel Heatmap Generation: Inspired by Seg-Grad-CAM, FGP generates heatmaps for every channel in every layer. These maps combine the feature map ($F$) with the gradient of the class logit ($p^d$) to ensure the channel is both active and contributes to the final prediction.
  2. Ranking and Multi-Class Support: For every channel, an "Importance Score" is calculated by summing heatmap values across all pixels and, crucially, across all target classes. This identifies "versatile" channels that support the entire dataset rather than niche categories.
  3. Pruning and Fine-tuning: Channels are sorted by total importance. The "Top $k$" channels are retained, and the rest are pruned. The model is then fine-tuned to recover any lost accuracy.
Figure 2: The three-stage FGP pruning pipeline, illustrating heatmap generation, multi-class support scoring, and channel masking.

Key Results and Insights

FGP demonstrates a superior balance between compression and performance across various benchmarks:

  • VGG-16 on CIFAR-10: FGP achieved a 73.52% reduction in FLOPs while maintaining 93.49% accuracy, outperforming established methods like HRank and Slimming.
  • ResNet-50 on CIFAR-100: Even on more complex tasks, FGP maintained high accuracy while cutting more than half the parameters.
  • Segmentation: On the Cityscapes dataset, FGP reached an mIoU of 79.0% (nearly matching the 79.3% baseline) while reducing FLOPs by nearly 60%.
Figure 3: Comparative performance of FGP against other pruning strategies on VggNet and ResNet-50 architectures.

The core insight of FGP is the Multi-Class Support Hypothesis: the most valuable channels are those providing high-quality features useful for all classes. Pruning channels that only respond to niche classes helps the model generalize better while becoming leaner.

Limitations and Future Work

As the number of classes increases (e.g., from 10 to 100), the accuracy gap between the pruned and baseline models tends to widen, suggesting that finding "universally important" channels becomes harder as task complexity grows. Future work will explore applying these techniques to non-convolutional structures like Transformers and assessing adaptability for object detection.

Summary updated

BibTeX
@misc{lv2024fgp,
  author = {Qingsong Lv and Jiasheng Sun and Sheng Zhou and Xu Zhang and Liangcheng Li and Yun Gao and Sun Qiao and Jie Song and Jiajun Bu},
  title = {{FGP: Feature-Gradient-Prune for Efficient Convolutional Layer Pruning}},
  year = {2024},
  eprint = {2411.12781},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.12781},
}
Figure