HRank: Filter Pruning Using High-Rank Feature Map

Mingbao Lin, Rongrong Ji, Yan Wang, Yichen Zhang, Baochang Zhang, Yonghong Tian, Ling Shao

Abstract

HRank is a novel filter pruning strategy that identifies redundant network components by measuring the mathematical rank of their generated feature maps. The authors discover that a filter's average feature map rank is remarkably consistent across different data batches, providing a stable, mathematically grounded "importance score." This approach allows for massive reductions in FLOPs and parameters with negligible accuracy loss across various deep learning architectures.

Introduction

Deep Convolutional Neural Networks (CNNs) are notoriously resource-hungry, making them difficult to deploy on "edge" devices like smartphones or wearables. Filter pruning—removing entire sets of weights to slim down the model—is a popular solution, but it often faces a trade-off between simplicity and accuracy.

Property-based methods (e.g., pruning based on the smallest weights) are fast but often rely on ad-hoc heuristics that fail to capture actual information flow. Conversely, adaptive methods that learn what to prune during training are more accurate but computationally expensive and difficult to tune. HRank seeks a middle ground: a pruning metric that is mathematically rigorous, computationally efficient, and highly predictive of a filter's actual contribution to model performance.

Methodology

The core of the research is the HRank algorithm, which leverages Singular Value Decomposition (SVD) to estimate the information content of feature maps. The process follows a structured three-phase pipeline:

  1. Rank Estimation: For a pre-trained model, a small batch of images (e.g., 500) is passed through the network. The rank of the feature maps produced by each filter is calculated using SVD.
  2. Filter Selection: Filters are ranked based on their average feature map rank. A key discovery of this work is "rank invariance": the average rank of a filter's output remains almost identical regardless of the specific images in the batch. Filters producing low-rank feature maps are deemed redundant and selected for removal.
  3. Fine-Tuning: The slimmed-down model undergoes a fine-tuning phase to recover any minor accuracy drops and stabilize the remaining weights.
The HRank pipeline: Feature Map Generation, Filter Selection based on rank, and the Fine-Tuning/Inference Phase.

Unlike many other methods, HRank does not require adding new loss functions or complex "mask" parameters during the initial training phase, making it highly adaptable to existing pre-trained models.

Key Insights: Rank as an Information Proxy

From a linear algebra perspective, a low-rank matrix can be compressed into a much smaller form without losing significant information. HRank applies this logic to CNNs: if a filter produces a low-rank feature map, it isn't contributing much "unique" structural information to the next layer.

The most surprising finding is that the rank of a filter is an intrinsic property of the filter itself, rather than the specific input image. This stability allows HRank to be a data-efficient pruning method. Furthermore, ablation studies showed that high-rank weights are robust; if these weights are frozen during fine-tuning, the model still performs well, proving they capture the essential features of the dataset.

Experimental Results

The authors evaluated HRank on standard benchmarks (CIFAR-10 and ImageNet) using architectures including VGGNet, GoogLeNet, ResNet, and DenseNet.

Key performance metrics include:

  • ResNet-110 (CIFAR-10): Achieved a 58.2% reduction in FLOPs and a 59.2% reduction in parameters with only a 0.14% drop in top-1 accuracy.
  • ResNet-50 (ImageNet): Reduced FLOPs by 43.8% and parameters by 36.7% with a modest 1.17% drop in top-1 accuracy, significantly outperforming other popular methods like GAL and ThiNet.
  • VGGNet-16 (CIFAR-10): In an aggressive configuration, it achieved a 76.5% FLOPs reduction while maintaining over 91% accuracy.
Comparison of Top-1 Accuracy across different pruning strategies, showing HRank's proximity to the baseline performance compared to random or reverse ranking.

As shown in the results, HRank consistently outperforms state-of-the-art (SOTA) methods, maintaining high accuracy even under significant compression ratios.

Conclusion and Future Work

HRank provides a mathematically grounded and efficient approach to model compression. While highly effective, the paper identifies areas for future exploration, such as a deeper theoretical explanation of why neural networks converge to these stable rank properties. Additionally, future work could investigate layer-wise dependencies—how the rank of one layer affects the prunability of subsequent layers—to further optimize the pruning process.

Summary updated

BibTeX
@inproceedings{lin2020hrank,
  author = {Mingbao Lin and Rongrong Ji and Yan Wang and Yichen Zhang and Baochang Zhang and Yonghong Tian and Ling Shao},
  title = {{HRank: Filter Pruning Using High-Rank Feature Map}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00160},
}
Figure