Abstract
Convolutional neural networks (CNNs) achieve state-of-the-art performance in a wide variety of tasks in computer vision. However, interpreting CNNs still remains a challenge. This is mainly due to the large number of parameters in these networks. Here, we investigate the role of compression and particularly pruning filters in the interpretation of CNNs. We exploit our recently-proposed greedy structural compression scheme that prunes filters in a tournament-style trained CNN. In our compression, the filter importance index is defined as the classification accuracy reduction (CAR) of the network after pruning that filter. The filters are then iteratively pruned based on the CAR index. We demonstrate the interpretability of CAR-compressed CNNs by showing that our algorithm prunes filters with visually redundant pattern selectivity. Specifically, we show the importance of shape-selective filters for object recognition, as opposed to color-selective filters. Out of top 20 CAR-pruned filters in AlexNet, 17 of them in the first layer and 14 of them in the second layer are color-selective filters. Finally, we introduce a variant of our CAR importance index that quantifies the importance of each image class to each CNN filter. We show that the most and the least important class labels present a meaningful interpretation of each filter that is consistent with the visualized pattern selectivity of that filter.
Introduction
While Convolutional Neural Networks (CNNs) are the gold standard for computer vision, they are notoriously difficult to interpret—a "black box" problem driven by their massive number of parameters. Most research into model compression focuses strictly on efficiency: making models small enough to run on a smartphone. This paper argues that compression shouldn't just be about saving memory; it should be a tool for scientific discovery. By identifying which parts of a network are actually doing the "heavy lifting," we can determine if the filters the network deems "important" align with human visual intuition.
Methodology: The CAR Index
The researchers employ a technique called Structural Compression using a metric termed Classification Accuracy Reduction (CAR). For every filter in a layer, the algorithm calculates the drop in total network accuracy if that specific filter is removed. Using a greedy pruning strategy, the algorithm identifies and removes the filter with the lowest CAR—the one whose absence hurts performance the least. This process is repeated iteratively.
To bridge the gap between low-level features and high-level semantic labels, the authors introduced $CAR^c$, a class-specific variant. This metric measures accuracy reduction for a specific class (e.g., how much removing Filter X affects the "Soup Bowl" category), allowing for a direct mapping between individual filters and semantic concepts.
Visualizing Redundancy and Feature Priority
One of the most striking findings is that CNNs prioritize shape over color for general object recognition. When analyzing the "least important" filters (those pruned first), the vast majority were color-selective. Specifically, in the top 20 pruned filters of AlexNet, 17 in the first layer and 14 of them in the second layer were color filters. This suggests that the network views color as highly redundant compared to edge and shape detectors.
Furthermore, the CAR algorithm naturally identifies groups of filters that look for similar patterns. As shown in Figure 1, the algorithm tends to prune "duplicates" and keep one representative from each visual group, effectively distilling the network's visual vocabulary without sacrificing significant accuracy.
Semantic Mapping of Filters
The $CAR^c$ metric provides a bridge between low-level features and high-level labels. By quantifying the importance of each image class to each filter, the authors found that the most and least important class labels present a meaningful interpretation consistent with the filter's visualized pattern selectivity.
For example, as illustrated in Figure 6, Filter 1 visually detects "elliptic curves" and was found to be critical for classes like "steel arch bridge" and "soup bowl," while being irrelevant for "mailbags." Similarly, Filter 3, which responds to screw-like vertical patterns, is essential for identifying "corkscrews" but has no impact on the "gong" class.
Key Results and Performance
Compared to standard weight-based pruning (which removes filters with the smallest weights), the CAR method achieved 16% to 25% higher classification accuracy when pruning half the filters in AlexNet's layers. Without any retraining, the algorithm achieved compression ratios of 1.2x to 1.5x while maintaining significantly higher accuracy than benchmark methods. This demonstrates that the filters kept by the algorithm are those representing unique, non-redundant visual features (mostly shapes), while those discarded focus on less discriminative features like broad color strokes.
Limitations and Future Work
While effective, the greedy pruning process is computationally expensive, requiring multiple network evaluations to calculate the CAR for every filter. This may pose challenges for modern, ultra-deep architectures like ResNet or Vision Transformers. Future work could involve extending this framework to fully-connected layers and automating the clustering of filters to further remove human bias from the interpretation process.
Summary updated