Introduction
Deep Convolutional Neural Networks (CNNs) have achieved remarkable success in computer vision but often come with high computational costs, making them difficult to deploy on resource-constrained devices. Filter pruning has emerged as a key technique to accelerate these models by removing entire filters. This paper introduces Filter Pruning via Geometric Median (FPGM), a method that shifts the focus from pruning filters with small magnitudes to pruning those that are redundant.
The Limitations of Norm-Based Pruning
Traditionally, filter pruning has relied on the "smaller-norm-less-important" criterion. This heuristic assumes that filters with small weight magnitudes (norms) contribute less to the network's output. However, the authors identify two critical flaws in this logic:
- Small Norm Deviation: If the norms of all filters in a layer are concentrated in a narrow range, the distinction between a "small" and "large" norm becomes statistically insignificant.
- Large Minimum Norm: Even the filter with the smallest norm in a layer might have a large enough magnitude to be essential for the model's performance.
As shown in the figure above, when the distribution of filter norms does not meet specific requirements (Requirement 1: high deviation; Requirement 2: minimum norm near zero), magnitude-based pruning becomes arbitrary and potentially harmful to model accuracy.
Methodology: Pruning by Redundancy
Instead of evaluating importance based on magnitude, FPGM identifies filters that are redundant. The core of this approach is the Geometric Median (GM), a robust estimator of centrality. For a given convolutional layer, the GM is the point that minimizes the sum of Euclidean distances to all other filters in that layer.
The Pruning Process
- Calculate the GM: Determine the geometric median for all filters in a specific layer.
- Identify Redundant Filters: Filters located closest to the GM are considered the most redundant, as their information is already well-represented by the collective features of the layer.
- Prune and Recover: These redundant filters are zeroed out. Because they are "replaceable," the network can effectively recover or even improve its performance during subsequent training.
Unlike many existing methods, FPGM is data-independent and integrates seamlessly into the standard training loop, removing the need for complex, multi-stage fine-tuning.
Experimental Results
The authors evaluated FPGM on standard benchmarks including CIFAR-10 and ImageNet (ILSVRC-2012), demonstrating state-of-the-art performance across various architectures:
- ResNet-110 (CIFAR-10): Achieved a 52% reduction in FLOPs while actually increasing relative accuracy by 2.69%.
- ResNet-101 (ImageNet): Reduced FLOPs by 42% with zero loss in top-5 accuracy.
- VGG-16 (CIFAR-10): Attained a 35.9% FLOPs reduction without the need for the complex sensitivity analysis required by prior state-of-the-art methods.
Discussion and Future Work
A key insight of this work is that a filter's value is relative to its peers. By removing redundant parameters, FPGM acts as a form of regularization, which explains why the pruned models sometimes outperform their unpruned counterparts.
While FPGM provides significant theoretical speedups (FLOPs), the authors note that real-world GPU acceleration is often lower due to hardware I/O and memory handling. Future research may involve combining FPGM with other compression techniques, such as quantization or matrix decomposition, to further bridge the gap between theoretical and practical acceleration.
Summary updated