Abstract
Even though norm-based filter pruning methods are widely accepted, it is questionable whether the "smaller-norm-less-important" criterion is optimal in determining filters to prune. Especially when we can keep only a small fraction of the original filters, it is more crucial to choose the filters that can best represent the whole filters regardless of norm values. Our novel pruning method entitled "REPrune" addresses this problem by selecting representative filters via clustering. By selecting one filter from a cluster of similar filters and avoiding selecting adjacent large filters, REPrune can achieve a better compression rate with similar accuracy. Our method also recovers the accuracy more rapidly and requires a smaller shift of filters during fine-tuning. Empirically, REPrune reduces more than 49% FLOPs, with 0.53% accuracy gain on ResNet-110 for CIFAR-10. Also, REPrune reduces more than 41.8% FLOPs with 1.67% Top-1 validation loss on ResNet-18 for ImageNet.
Introduction
Deep Convolutional Neural Networks (CNNs) are computationally expensive, with convolution operations often accounting for over 90% of a model's total volume. To deploy these models on edge devices, researchers use filter pruning to remove redundant parameters.
Most existing methods rely on a "norm-based" criterion: they assume filters with small L1 or L2 norms are unimportant and can be safely discarded. However, magnitude does not necessarily equate to informativeness. At high compression ratios, norm-based pruning often leaves only "outlier" filters, which can severely damage accuracy. Furthermore, these methods ignore the relative distribution of filters; one might end up keeping several large-norm filters that are nearly identical (redundant) while pruning a small-norm filter that represents a unique, essential feature.
Methodology: Representative Election
REPrune shifts the focus from filter magnitude to filter distribution. The method consists of three main steps:
- Agglomerative Clustering: Instead of looking at filters in isolation, REPrune groups them using hierarchical clustering (specifically Ward’s method). This identifies clusters of filters that share similar feature-extraction traits.
- Finding the Optimal Cluster Number: Most pruning methods apply a static pruning ratio across all layers. REPrune uses the Silhouette Coefficient—a measure of how similar an object is to its own cluster compared to other clusters—to dynamically determine how many "representative" groups exist in each layer.
- Representative Election: From each well-formed cluster, the algorithm "elects" the filter closest to the cluster's centroid to stay in the model, while the rest are pruned. If a cluster is poorly formed (indicated by a negative Silhouette Coefficient), all filters in that cluster are pruned.
This approach ensures that the pruned model maintains a diverse set of features that best approximate the original, unpruned manifold. By selecting one representative per cluster, REPrune explicitly targets redundancy rather than just magnitude-based weakness.
Experimental Evaluation
The authors evaluated REPrune on standard computer vision benchmarks, including CIFAR-10, CIFAR-100, and ImageNet (ILSVRC 2012), using architectures such as VGG-16 and various ResNet variants.
Key Results
REPrune consistently outperformed state-of-the-art methods like Soft Filter Pruning (SFP) and Filter Pruning via Geometric Median (FPGM):
- ResNet-110 on CIFAR-10: Reduced FLOPs by 49% while actually increasing accuracy by 0.53%.
- ResNet-56 on CIFAR-100: Achieved 8.84x acceleration (83.3% parameter reduction) with only a 2.6% accuracy drop, outperforming norm-based methods which failed under such extreme pressure.
- ResNet-18 on ImageNet: Reduced FLOPs by 41.8% with a Top-1 validation loss of only 1.67%.
- VGG-16 on ImageNet: Achieved a Top-1 accuracy of 72.25% with 52.7% FLOPs reduction, surpassing ThiNet and Channel Pruning (CP).
Discussion and Insights
- Dynamic Layer Sensitivity: By using the Silhouette Coefficient, the algorithm automatically discovers which layers are highly redundant (and can be pruned heavily) and which are diverse (and should be preserved).
- High-Quality Initializations: Filters selected via REPrune are superior starting points for fine-tuning. The authors found that REPrune filters have a much higher cosine similarity to their post-fine-tuning versions than norm-based methods. Essentially, the "elected" filters are already performing the correct feature extraction, requiring less weight shift during retraining.
- Faster Recovery: Because the elected filters represent the original distribution well, the model's accuracy recovers much faster during fine-tuning, often reaching peak performance in significantly fewer epochs compared to competing methods.
Conclusion
While REPrune is highly effective, architectural constraints in models like ResNet-50 require careful handling of identity mappings and bottleneck convolutions to prevent dimension conflicts. Additionally, the pruning process involves clustering, which is more computationally intensive than simple norm calculation—though this is a one-time offline cost. Future research could explore combining REPrune with Knowledge Distillation to further improve the generalization and performance of compressed models.
Summary updated