Inf-CP: A Reliable Channel Pruning based on Channel Influence

Bilan Lai, Haoran Xiang, Furao ShenarXiv 2021

TL;DR

This paper introduces INF-CP, a novel channel pruning method that leverages the "influence function" from robust statistics to reliably measure neuron importance. By combining this with ensemble learning to mitigate data batch effects and an end-to-end trainable framework, INF-CP achieves state-of-the-art pruning performance with improved accuracy and efficiency.

What Problem Does This Paper Address?

Deep neural networks, while powerful, are computationally expensive and memory-intensive, hindering their deployment on resource-constrained devices. Model compression techniques like pruning aim to reduce this burden. Channel pruning, a form of structured pruning, is particularly attractive as it doesn't require specialized hardware. However, a key challenge in channel pruning is accurately determining the importance of each neuron (or channel) to prune the least significant ones without sacrificing accuracy. Existing methods often rely on indirect measures like reconstruction error or parameter magnitudes, which can be sensitive to data variations and don't always correlate well with actual importance. This paper addresses the NP-hard problem of accurately measuring neuron importance by proposing a more robust and data-independent approach.

Methods

The core of INF-CP lies in its novel approach to measuring channel influence. Instead of relying on reconstruction error, the authors propose using the influence function, a technique from robust statistics. This function quantifies how much a specific data point (or in this case, a parameter) affects the model's output.

To make this measurement more reliable and less sensitive to specific data batches, they employ an ensemble learning strategy. This involves training the model on different batches of data and aggregating the influence measurements. They also theoretically prove that the backpropagation gradient of a deep network is a first-order Taylor approximation of the influence function, making the influence calculation more tractable.

Furthermore, INF-CP integrates filter selection and model fine-tuning into a single end-to-end trainable framework. This allows the pruning strategy and the model's learning process to mutually benefit each other, saving training time and potentially improving performance. A key component is the introduction of a "Mask" filter that, through a Hadamard product, effectively applies the pruning strategy. The gradient of this Mask filter is then used to estimate the influence. A binarization step, using a scaled Sigmoid function, converts these influence scores into a binary pruning decision for each channel.

Datasets

The paper evaluates its method on the following datasets:

  • CIFAR-10
  • CIFAR-100

The authors also mention using VGG and ResNet architectures for their experiments.

Key Insights and Ideas

  • Influence Function as a Robust Importance Metric: The paper highlights that the influence function provides a more reliable measure of a neuron's importance compared to reconstruction error, as it's less susceptible to data-specific artifacts.
  • Ensemble Learning for Data Independence: By aggregating influence measurements across different data batches, the method effectively mitigates the impact of specific data samples, leading to a more generalized pruning strategy.
  • Theoretical Link Between Backpropagation and Influence: The theoretical proof that backpropagation gradients approximate influence function derivatives is crucial. It bridges a gap between standard training mechanisms and a more principled importance measurement.
  • End-to-End Trainable Pruning: Integrating pruning directly into the training loop, rather than as a separate post-processing step, allows for a more synergistic optimization of model accuracy and sparsity.
  • Adaptive Pruning Strategy: The use of hyperparameters like $\lambda$ and $\beta$ that are dynamically adjusted during training allows the pruning process to adapt to the specific needs of different layers and the overall model.

Key Results

The paper reports state-of-the-art results on CIFAR datasets for channel pruning. Specifically, they demonstrate:

  • Improved Accuracy: INF-CP achieves competitive or superior accuracy compared to existing methods, even at significant FLOP reductions. For instance, on CIFAR-10 with ResNet-56, their method achieves 94.40% accuracy with a -0.51% accuracy drop and 41% FLOP reduction, outperforming several baseline methods.
  • Effective FLOP Reduction: The method consistently achieves substantial reductions in Floating Point Operations (FLOPs), indicating significant efficiency gains.
  • Robustness: The ensemble approach and influence function lead to a pruning strategy that is less sensitive to data variations.

Limitations and Future Work

  • Hyperparameter Tuning: While the paper proposes adaptive schemes for hyperparameters like $\lambda$ and $\beta$, finding the optimal initial values and ranges for these parameters can still be challenging and may vary across different architectures and datasets. The paper notes that $\beta_{start}$ needs careful selection to balance learning and binarization.
  • Computational Overhead: While the pruning itself is efficient, the influence function calculation and ensemble learning might introduce some computational overhead during training compared to simpler pruning methods.
  • Future Work: The authors suggest exploring more applications that require parameter influence, implying that their method could be extended to other areas beyond channel pruning. They also mention the need for further investigation into adaptive schemes for hyperparameters.

Summary updated

Abstract

One of the most effective methods of channel pruning is to trim on the basis of the importance of each neuron. However, measuring the importance of each neuron is an NP-hard problem. Previous works have proposed to trim by considering the statistics of a single layer or a plurality of successive layers of neurons. These works cannot eliminate the influence of different data on the model in the reconstruction error, and currently, there is no work to prove that the absolute values of the parameters can be directly used as the basis for judging the importance of the weights. A more reasonable approach is to eliminate the difference between batch data that accurately measures the weight of influence. In this paper, we propose to use ensemble learning to train a model for different batches of data and use the influence function (a classic technique from robust statistics) to learn the algorithm to track the model's prediction and return its training parameter gradient, so that we can determine the responsibility for each parameter, which we call "influence", in the prediction process. In addition, we theoretically prove that the back-propagation of the deep network is a first-order Taylor approximation of the influence function of the weights. We perform extensive experiments to prove that pruning based on the influence function using the idea of ensemble learning will be much more effective than just focusing on error reconstruction. Experiments on CIFAR shows that the influence pruning achieves the state-of-the-art result.
BibTeX
@misc{lai2021inf,
  author = {Bilan Lai and Haoran Xiang and Furao Shen},
  title = {{Inf-CP: A Reliable Channel Pruning based on Channel Influence}},
  year = {2021},
  eprint = {2112.02521},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.02521},
}
Figure