Exploiting Kernel Sparsity and Entropy for Interpretable CNN Compression.

Yuchao Li, Shaohui Lin, Baochang Zhang, Jianzhuang Liu, David S. Doermann, Yongjian Wu, Feiyue Huang, Rongrong Ji · DOI

Abstract

Convolutional Neural Networks (CNNs) are computationally expensive, hindering deployment on edge devices. This paper presents Kernel Sparsity and Entropy (KSE), a feature-agnostic framework for interpretable CNN compression. By analyzing the sparsity and entropy of 2D kernels, KSE identifies redundant components without requiring massive datasets for feature map evaluation. Experimental results demonstrate significant FLOPs reduction (e.g., 4.7× on ResNet-50) with minimal accuracy loss, outperforming state-of-the-art pruning methods.

Introduction

Deep learning models require significant computational power and memory, making deployment on mobile or embedded devices challenging. While network pruning is a common solution, existing methods often lack interpretability, incur high computational costs due to data-driven evaluation, and struggle with modern architectures like ResNets where removing channels can cause dimensional mismatches in residual connections.

The Kernel Sparsity and Entropy (KSE) framework addresses these hurdles by providing a fast, interpretable, and flexible compression method that operates directly on model weights.

Methodology

The core innovation of KSE is the use of kernel-level metrics to determine the importance of input feature maps. Unlike traditional filter pruning, which is often binary and destructive, KSE employs a more granular approach through kernel clustering.

Overview of the KSE compression framework comparing original and compressed convolutional layers.

The KSE Indicator

The KSE Indicator measures the importance of an input feature map by analyzing its corresponding 2D kernels. This "feature-agnostic" approach relies on two primary metrics:

  • Kernel Sparsity: The authors demonstrate that the sparsity of a feature map is closely related to the $\ell_1$-norm of its corresponding 2D kernels. Sparse kernels typically result in less informative feature maps.
  • Kernel Entropy: This metric measures "information richness" by calculating the diversity of 2D kernels using a nearest-neighbor distance matrix. High diversity (low entropy) indicates that the feature map contributes unique and necessary information.
Relationship between 2D kernel properties (sparsity and entropy) and feature map importance.

Kernel Clustering and Compression

Instead of simply deleting filters, KSE uses K-means clustering to group similar 2D kernels. These kernels are then replaced by a single cluster centroid, effectively sharing parameters across different filters. This allows for aggressive compression without the "all-or-nothing" information loss associated with traditional pruning. Furthermore, because compression happens within a layer, it avoids the dimensional mismatch issues in architectures with skip connections.

Experimental Results

The KSE method was evaluated on CIFAR-10, SVHN, and ImageNet 2012 benchmarks, consistently outperforming state-of-the-art (SOTA) techniques.

  • ResNet-50 on ImageNet: Achieved a 4.7× reduction in FLOPs and 2.9× parameter compression with a negligible 0.35% drop in Top-5 accuracy.
  • ResNet-56 on CIFAR-10: Demonstrated an accuracy improvement (from 93.03% to 93.23%) while reducing FLOPs by 2.1×.
  • Efficiency: The compression process is significantly faster than data-driven methods as it bypasses heavy inference passes during the selection phase, allowing layers to be processed in parallel.

Conclusion and Future Work

KSE provides a powerful link between weight properties and feature map importance, offering an interpretable path to CNN compression. By treating pruning as a generalized clustering problem, the framework maintains architectural integrity in complex models like ResNets. Future research will focus on establishing more rigorous mathematical bounds for these kernel properties and automating hyperparameter tuning for diverse hardware targets.

Summary updated

BibTeX
@inproceedings{li2019exploiting,
  author = {Yuchao Li and Shaohui Lin and Baochang Zhang and Jianzhuang Liu and David S. Doermann and Yongjian Wu and Feiyue Huang and Rongrong Ji},
  title = {{Exploiting Kernel Sparsity and Entropy for Interpretable CNN Compression.}},
  booktitle = {CVPR},
  year = {2019},
  doi = {10.1109/cvpr.2019.00291},
}
Figure