Entropy Induced Pruning Framework for Convolutional Neural Networks

Yiheng Lu, Ziyu Guan, Yaming Yang, Maoguo Gong, Wei Zhao, Kaiyuan Feng

TL;DR

Researchers have developed a new pruning metric called Average Filter Information Entropy (AFIE) that identifies redundant parts of a neural network without needing the model to be fully trained. Remarkably, this method yields the same pruning decisions after just one epoch of training as it does after full convergence, potentially saving massive amounts of time and computational energy in the model compression pipeline.

What Problem Does This Paper Address?

Deep learning models are notoriously "over-parameterized"—they contain far more neurons and connections than they actually need to perform a task. Network pruning aims to trim this fat, creating smaller, faster models suitable for mobile devices or edge hardware.

However, most current "structured pruning" methods (which remove entire filters rather than individual weights) are weight-oriented. They rely on the specific values of trained weights to decide what to cut. This creates a "chicken and egg" problem: you have to spend days or weeks fully training a giant model just to figure out which parts of it you don't need. Furthermore, these methods are often sensitive to the noise of the training process, leading to inconsistent results if the model isn't perfectly converged.

Methods

The authors propose a structural approach that looks at the distribution of information within a layer rather than just the magnitude of individual weights. The process, illustrated in Figure 1, follows three main steps:

  1. Low-Rank Space Projection: They take the 4D weight tensor of a convolutional layer and "fold" it into a 2D matrix. They then apply Singular Value Decomposition (SVD) to extract eigenvalues, which represent the strength of information along different dimensions.
  2. Normalization: To make layers comparable, they normalize these eigenvalues to a [0, 1] range and apply a Softmax function, effectively treating the information distribution as a probability distribution.
  3. Entropy Calculation: They calculate the Information Entropy of these probabilities. High entropy suggests information is spread out (less redundancy), while low entropy suggests it's concentrated (more redundancy).
  4. AFIE Metric: By dividing the total layer entropy by the number of filters, they get the Average Filter Information Entropy (AFIE). This single score tells them how important an average filter in that specific layer is.
Figure 1: The calculation of AFIE for each convolutional layer. The ”input-output” matrix M ∈RI×O×H×W , where I and O are the number of input and output filters, and H and W are the height and width of the filters. The M can be decomposed by SVD, and each eigenvalue s1, s2, ..., s5 will be normalized by ’0-1’ and softmax to project each eigenvalue as the possibility with the value between 0 and 1, as well as cater for the 1 summation for all normalized eigenvalues within a layer. Finally, we calculate the average filter information entropy for each filter to allocate the different pruning ratio λ1, λ2, ..., λN for each convolutional layer.

Finally, they use these AFIE scores to allocate pruning ratios across the network: layers with low AFIE scores get pruned more aggressively.

Datasets

The framework was validated across three standard benchmarks:

  • MNIST: Using the AlexNet architecture.
  • CIFAR-10: Using the VGG-16 architecture.
  • ImageNet: Using the ResNet-50 architecture.

Key Insights and Ideas

  • The "One-Epoch" Miracle: The most striking finding is that AFIE scores are incredibly stable. As shown in Table 1, the AFIE values for AlexNet are identical whether the model has been trained for 1 epoch or 20 epochs. This means you can decide your pruning strategy almost immediately after starting training.
  • Structural Dominance: The authors lean on the idea that a network's "representation ability" is dominated by its structure. By analyzing the eigenvalues of the weight matrix, they capture the underlying structural importance that remains consistent even as weight values fluctuate during training.
  • Lipschitz Continuity: The paper provides a theoretical proof using Lipschitz continuity to explain why the parameter distribution (and thus the entropy) remains stable even when the model is under-trained.
Table 1: The evaluation of each convolutional layer for AlexNet on MNIST.

Key Results

The AFIE framework achieves compression results comparable to or better than state-of-the-art methods like ThiNet and Network Slimming, but with much less overhead.

  • AlexNet (MNIST): Reduced parameters by 76.42% and FLOPs by 23.08% while maintaining a top-1 accuracy of 99.20%.
  • VGG-16 (CIFAR-10): Achieved a 43.09% parameter reduction and 54.55% FLOPs reduction, actually outperforming several baselines in accuracy (93.35%).
  • ResNet-50 (ImageNet): Successfully pruned a complex architecture with skip-connections, maintaining 75.8% accuracy while reducing FLOPs by roughly 10%.
Table 4: The comparison of different pruning methods for AlexNet, VGG-16 and ResNet-50. The notations ”Par-O”, ”FLOPs-O” and ”Par-P”, ”FLOPs-P” stand for the param- eters, and FLOPs for the original model and the slimmed model, respectively.

Limitations and Future Work

While the method determines the number of filters to remove per layer very effectively, the actual removal process described is random. The authors simply remove filters randomly within a layer once the AFIE-based ratio is set. A potential area for future work is combining AFIE's layer-wise allocation with a more sophisticated intra-layer selection criteria (e.g., removing the specific filters with the smallest norms).

Additionally, the paper focuses on traditional CNN architectures. Extending this entropy-based structural analysis to modern architectures like Vision Transformers (ViTs) or MLP-Mixers would be a logical next step for the research community.

Summary updated

BibTeX
@misc{lu2022entropy,
  author = {Yiheng Lu and Ziyu Guan and Yaming Yang and Maoguo Gong and Wei Zhao and Kaiyuan Feng},
  title = {{Entropy Induced Pruning Framework for Convolutional Neural Networks}},
  year = {2022},
  eprint = {2208.06660},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.06660},
}
Figure