EZCrop: Energy-Zoned Channels for Robust Output Pruning

Rui Lin, Jie Ran, Dongpeng Wang, King Hung Chiu, Ngai Wong

TL;DR

This paper demystifies the "constant rank" phenomenon observed in CNN feature maps by analyzing it through the frequency domain, revealing that high-rank feature maps simply have more dispersed spectral energy. Leveraging this insight, the authors introduce EZCrop, a Fast Fourier Transform (FFT)-based channel pruning method that evaluates filter importance by measuring energy dispersion. EZCrop is significantly faster than SVD-based rank methods and achieves state-of-the-art compression and accuracy on standard vision benchmarks.

What Problem Does This Paper Address?

To deploy large Convolutional Neural Networks (CNNs) on edge devices, researchers often use channel pruning to remove entire, unimportant filters from the network. A recent state-of-the-art method called HRank observed a strange phenomenon: the average matrix rank of feature maps generated by a specific filter remains surprisingly constant regardless of the input image. HRank successfully used this integer rank to identify and keep important filters.

However, why this constant rank phenomenon occurs remained a mystery. Furthermore, computing matrix rank requires Singular Value Decomposition (SVD), which is computationally expensive ($O(n^3)$). Finally, because rank is an integer, it provides poor resolution for evaluating filter importance in deeper layers where feature maps are spatially small (e.g., a 4x4 feature map can only have a maximum rank of 4, leading to many "tied" filters). This paper seeks to explain the rank phenomenon and provide a faster, more granular metric for pruning.

Methods

The authors bridge the spatial domain (rank) to the frequency domain using the 2D Fast Fourier Transform (FFT). They propose a novel metric based on Energy Zoning:

  1. Transform to Frequency Domain: Apply 2D FFT to the feature maps generated by a filter.
  2. Define the Energy Zone: Define a square area centered around the DC (zero-frequency) component of the feature map's frequency spectrum.
  3. Calculate the Energy Zone Ratio: Calculate the proportion of spectral energy located outside this central low-frequency zone.
  4. Prune: A higher ratio means the energy is highly dispersed (equivalent to a high spatial rank and high information content), marking the filter as important. A low ratio means the energy is concentrated in low frequencies, making the filter a prime candidate for pruning.

By swapping SVD for FFT, this method reduces the computational complexity of evaluating filters from $O(n^3)$ to $O(n^2 \log n)$.

Datasets

  • CIFAR-10: Evaluated using VGGNet, ResNet-56, and DenseNet-40.
  • ImageNet: Evaluated using ResNet-50. (No new datasets were introduced; standard benchmarks were used to compare against existing state-of-the-art pruning methods).

Key Insights and Ideas

  • The "Aha!" Moment: The mysterious constant spatial rank of a feature map directly translates to the dispersion of its energy in the frequency domain. Low rank = concentrated low-frequency energy; High rank = dispersed high-frequency energy.
  • Continuous > Discrete: Unlike matrix rank, which is constrained to small integers for small feature maps, the Energy Zone Ratio is a continuous value. This gives EZCrop much higher resolution to differentiate the importance of filters that would otherwise be tied with the exact same integer rank.
  • Domain Equivalence: The paper mathematically formalizes that spatial convolution is equivalent to spectral point-wise products, validating the use of frequency-domain energy as a highly accurate proxy for spatial information content.

Key Results

  • Massive Metric Computation Speedup: EZCrop drastically reduces the time needed to evaluate filter importance prior to pruning. On VGGNet (CIFAR-10), metric computation dropped from ~1505 seconds (HRank) to ~357 seconds (a 76% speedup). On ResNet-50 (ImageNet), it dropped from nearly 8 hours to 3.45 hours.
  • Superior Pruning Performance: EZCrop consistently outperforms HRank and other baselines. For example, on ResNet-56 (CIFAR-10), EZCrop achieved 94.07% Top-1 accuracy with a 28% FLOPs reduction, compared to HRank's 93.85% at the exact same compression level.
  • Robustness in Repetitive Pruning: In multi-pass (repetitive) pruning scenarios—where the network is pruned iteratively to reach extreme compression—EZCrop maintains higher accuracy than HRank. This proves its continuous metric is more robust than integer-based rank evaluation as the network becomes highly compressed.

Limitations and Future Work

The authors note that EZCrop relies on a hyper-parameter ($\beta$) to determine the size of the central "Energy Zone." While they fixed $\beta = 0.25$ for simplicity across all experiments, their ablation studies show that this is not universally optimal. The relationship between network accuracy and $\beta$ is non-linear (forming an "M" shape in their charts), and manually tuning it to 0.3 or 0.5 can yield even better results. While not explicitly stated as future work, an obvious next step would be exploring ways to dynamically or automatically determine the optimal energy zone size for different layers or architectures during the pruning process.

Summary updated

BibTeX
@inproceedings{lin2022ezcrop,
  author = {Rui Lin and Jie Ran and Dongpeng Wang and King Hung Chiu and Ngai Wong},
  title = {{EZCrop: Energy-Zoned Channels for Robust Output Pruning}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2022},
  doi = {10.1109/wacv51458.2022.00365},
}
Figure