Introduction
The proliferation of deep Convolutional Neural Networks (CNNs) has significantly advanced computer vision tasks. However, the increasing depth and complexity of these models pose substantial challenges for deployment on resource-constrained edge devices like smartphones and IoT sensors. While weight pruning offers a solution by introducing sparsity, it often fails to translate into real-world speedups on standard hardware. Filter pruning, which removes entire 3D weight blocks, provides a more hardware-friendly alternative. This paper presents 2PFPCE, a framework that utilizes conditional entropy to identify and prune redundant filters effectively.
Methodology
The 2PFPCE framework operates on the principle of measuring a filter's information contribution relative to the network's loss. It moves beyond simple weight-magnitude heuristics to a more information-theoretic approach.
Conditional Entropy Selection
Instead of looking at weight magnitudes (L1-norm), 2PFPCE calculates the conditional entropy of a filter's activations. This metric quantifies how much uncertainty about the final prediction error is reduced by knowing a specific filter's output. Filters with low conditional entropy are deemed redundant and marked for removal.
Two-Phase Pruning Strategy
The pruning process is divided into two distinct phases to balance global efficiency with local precision:
- Phase I (Global Pruning): Redundant filters are identified and removed across the entire network simultaneously. This is followed by iterative fine-tuning to recover performance.
- Phase II (Layer-wise Pruning): A surgical, greedy approach prunes filters layer-by-layer to meet specific hardware constraints or accuracy thresholds.
Maximum-Entropy Filter Freeze and Bias Compensation
To enhance stability during fine-tuning, the "most informative" neurons (those with maximum entropy) are frozen, preventing overfitting. Additionally, when filters are removed, the bias terms of remaining filters are adjusted to compensate for the lost signal, preserving the integrity of the feature maps.
Experimental Results
The framework was evaluated on MNIST and CIFAR-10 datasets using VGG-16, Preact-ResNet18, and ResNet-50 architectures.
Efficiency and Speedup
On VGG-16, 2PFPCE achieved an 88% reduction in filters, resulting in a 10x reduction in FLOPs and a 46% actual inference speedup on a GPU. Accuracy remained within 2% of the baseline model. Furthermore, the total bandwidth required for feature maps was slashed from 310,784 bytes to just 49,165 bytes.
Comparative Performance
Conditional entropy consistently outperformed standard metrics like L1-norm and Average Percentage of Zeros (APoZ). For ResNet-50, the method maintained 94.44% accuracy at a 50% pruning ratio, surpassing APoZ's 94.25%.
Discussion and Insights
Analysis revealed that redundancy is often "front-loaded," with initial convolutional layers in VGG-16 allowing up to 60% filter removal, likely because they extract overlapping low-level features. The combination of global and layer-wise strategies proved superior to either method alone, enabling higher compression ratios under the same accuracy constraints.
While 2PFPCE shows significant promise, future work is needed to evaluate its performance on larger datasets like ImageNet and to automate hyperparameter tuning for the accuracy threshold ($\gamma$).
Conclusion
2PFPCE provides a robust framework for CNN compression, leveraging information theory to achieve significant hardware speedups with minimal accuracy degradation. Its two-phase approach and entropy-based selection offer a principled path toward efficient deep learning on the edge.
Summary updated