A Feature-map Discriminant Perspective for Pruning Deep Neural Networks

Zejiang Hou, Sun-Yuan KungarXiv 2020

TL;DR

This paper introduces Discriminant Information (DI), a novel mathematical criterion to efficiently measure the importance of feature-map channels for deep neural network pruning. By evaluating channel importance analytically through a single forward pass, the proposed method eliminates the need for expensive auxiliary losses or iterative retraining during channel selection. Notably, it prunes a ResNet50 on ImageNet to achieve a 44% reduction in FLOPs with absolutely zero loss in Top-1 accuracy.

What Problem Does This Paper Address?

To deploy deep convolutional neural networks (CNNs) on resource-constrained edge and mobile devices, model compression is essential. Channel pruning—removing redundant feature maps and their corresponding filters—is a highly effective approach.

However, deciding which channels to prune remains a challenge. Simple heuristics (like sorting by weight norms) ignore the actual data distribution, while existing data-driven, discriminant-based methods (which evaluate how well a feature map distinguishes between classes) are computationally expensive. For instance, prior state-of-the-art methods often require adding auxiliary cross-entropy losses to intermediate layers and performing heavy retraining cycles just to identify unimportant channels.

The authors address this inefficiency by providing a rigorous mathematical framework to quantify multi-class feature-map discriminativeness efficiently and without extra training overhead.

Methods

The core innovation is the Discriminant Information (DI) criterion. The authors derive DI from two distinct theoretical perspectives:

  1. Discriminant Analysis: Maximizing the feature's signal-to-noise ratio, inspired by classical Fisher discriminant analysis.
  2. Predictor Learning: Minimizing the least-squares error of a closed-form ridge regressor trained on the intermediate feature maps.

Both perspectives yield the same elegant, closed-form solution for evaluating a layer's feature maps. Crucially, the authors mathematically prove the non-decreasing property of DI, ensuring that removing channels with the smallest derivative (infinitesimal contribution) to the DI value minimizes the loss of discriminative power.

Building on this criterion, the authors introduce three key techniques:

  • DI-based Greedy Pruning: An algorithm that automatically determines the optimal pruned architecture under a specific resource budget (e.g., FLOPs) by progressively dropping channels layer-by-layer and verifying performance on a small validation split.
  • Structure Distillation (SD): To accelerate pruning on very deep networks, the authors discover that pruned structural patterns generalize well. They average the pruning ratios from a shallower network (like ResNet18) and directly apply them to a deeper network (like ResNet50).
  • Intra-layer Mixed Precision Quantization: A variation that uses DI rankings to assign higher bit-widths to critical channels and lower bit-widths to less important ones, compressing the network even further.

Datasets

The methodology was validated across four standard computer vision benchmarks:

  • CIFAR-10 & CIFAR-100: Standard image classification datasets used for network architecture comparisons.
  • ImageNet (ILSVRC2012): Large-scale image classification benchmark used to test scalability.
  • CUB-200: A fine-grained dataset (Caltech-UCSD Birds-200-2011) used specifically to benchmark channel selection heuristics.

Key Insights and Ideas

  • Multi-Class vs. Two-Class Metrics: The authors show that simply extending classical two-class metrics (like SNR or t-tests) to multi-class problems using a "one-vs-rest" strategy yields poor pruning performance. A dedicated multi-class formulation like DI is necessary.
  • Data Efficiency: Even though DI is data-dependent, it is incredibly robust to the sample distribution. The channel rankings remain highly stable even when computed using only a tiny fraction of the training dataset, making the profiling step extremely fast.
  • Forward-Pass Only: Unlike Taylor-expansion methods that require both forward and backward propagation to estimate gradients, DI requires only a forward pass to extract feature maps, significantly reducing computation time.
Figure 1: Comparison of channel selection heuristics in terms of testing accuracy (left figure) and computation time (right figure). Computation cost = scoring all channels of whole network + sorting + thresholding + pruning. We prune VGG16 on CUB-200 dataset with different FLOPs reduction ratios. Results are averaged over three independent replicates.

Key Results

  • ResNet50 on ImageNet: Using Structure Distillation (DI-SD), the method reduced FLOPs by 44% and parameters by 34.8% while maintaining the exact baseline Top-1 accuracy of 76.10%.
  • Efficiency Gains: As shown in Figure 2, the DI-greedy approach achieves a superior accuracy-to-FLOPs trade-off curve compared to popular automated pruning frameworks like AMC, LeGR, and MorphNet, while requiring a fraction of the search and training time.
Figure 2: Left: accuracy vs. FLOPs curve of pruning ResNet56 on CIFAR100 dataset. Right: computation time to obtain seven pruned ResNet56 under different FLOPs budgets using different methods. Results are averaged over three independent replicates.
  • Quantization: When combined with their mixed-precision quantization scheme, they compressed ResNet50 down to 6.09 MB (from ~97.5 MB) while retaining a high Top-1 accuracy of 73.21%, outperforming specialized quantization frameworks like HAQ.

Limitations and Future Work

While the greedy pruning algorithm successfully captures relative layer importance, its computational cost scales up as networks grow deeper because it evaluates subnets layer-by-layer. Although the authors successfully mitigated this via Structure Distillation, the distillation relies on the assumption that shallower and deeper networks share highly similar structural redundancies. The paper does not deeply explore how this assumption holds up when transferring across radically different architectural families (e.g., from a ResNet to a MobileNet or a Transformer).

Summary updated

BibTeX
@misc{hou2020feature,
  author = {Zejiang Hou and Sun-Yuan Kung},
  title = {{A Feature-map Discriminant Perspective for Pruning Deep Neural Networks}},
  year = {2020},
  eprint = {2005.13796},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.13796},
}

Loading related content...

Figure