Skip to main content
QUICK REVIEW

[论文解读] DBP: Discrimination Based Block-Level Pruning for Deep Model Acceleration

Wenxiao Wang, Shuai Zhao|arXiv (Cornell University)|Dec 21, 2019
Advanced Neural Network ApplicationsComputer Science参考文献 34被引用 21
一句话总结

本文提出DBP,一种基于判别性的逐块剪枝方法,通过基于输出特征的判别性来移除冗余模块(如卷积-批归一化-ReLU序列),从而加速深度卷积神经网络。与逐滤波器剪枝相比,DBP通过剪枝整个模块而非单个滤波器,实现了更高的推理加速效果,在CIFAR-10和CIFAR-100上的ResNet和DenseNet架构中,其在准确率和速度方面均优于当前最先进方法。

ABSTRACT

Neural network pruning is one of the most popular methods of accelerating the inference of deep convolutional neural networks (CNNs). The dominant pruning methods, filter-level pruning methods, evaluate their performance through the reduction ratio of computations and deem that a higher reduction ratio of computations is equivalent to a higher acceleration ratio in terms of inference time. However, we argue that they are not equivalent if parallel computing is considered. Given that filter-level pruning only prunes filters in layers and computations in a layer usually run in parallel, most computations reduced by filter-level pruning usually run in parallel with the un-reduced ones. Thus, the acceleration ratio of filter-level pruning is limited. To get a higher acceleration ratio, it is better to prune redundant layers because computations of different layers cannot run in parallel. In this paper, we propose our Discrimination based Block-level Pruning method (DBP). Specifically, DBP takes a sequence of consecutive layers (e.g., Conv-BN-ReLu) as a block and removes redundant blocks according to the discrimination of their output features. As a result, DBP achieves a considerable acceleration ratio by reducing the depth of CNNs. Extensive experiments show that DBP has surpassed state-of-the-art filter-level pruning methods in both accuracy and acceleration ratio. Our code will be made available soon.

研究动机与目标

  • 解决因CNN层中并行计算导致的逐滤波器剪枝加速比有限的问题。
  • 识别并移除深度CNN中的冗余模块,以实现更高的推理加速。
  • 提出一种基于输出特征判别性的准则,用于评估模块冗余性。
  • 在显著减少模型深度和计算成本的同时,保持高模型准确率。

提出的方法

  • 将模块定义为CNN中连续层的序列(例如,卷积-批归一化-ReLU)。
  • 通过在下游任务上使用线性分类器的准确率来评估每个模块输出特征的判别性。
  • 剪枝判别性较低的模块(即,其移除导致准确率下降最小的模块),以减少模型深度。
  • 采用迭代剪枝并引入模拟损失(基于MSE)以稳定训练过程,并在剪枝过程中保持性能。
  • 在移除模块后对剪枝后的模型进行微调,以恢复准确率。
  • 将该方法应用于ResNet和DenseNet架构,由于架构敏感性,对两者采用不同的剪枝策略。

实验结果

研究问题

  • RQ1为何尽管计算量大幅降低,逐滤波器剪枝的加速效果仍然有限?
  • RQ2在深度CNN中,剪枝整个模块而非滤波器是否能带来更高的推理加速?
  • RQ3如何在不造成显著准确率损失的前提下,有效识别深度CNN中的冗余模块?
  • RQ4特征判别性在判断模块冗余性方面起到什么作用?
  • RQ5迭代剪枝与模拟损失如何影响剪枝后模型的性能恢复?

主要发现

  • 逐滤波器剪枝的加速效果受限,是因为计算量减少的部分常与未减少部分并行运行,导致有效加速比降低。
  • DBP通过移除整个冗余模块,实现了比当前最先进逐滤波器剪枝方法更高的加速比。
  • 在CIFAR-100上,DBP在参数量减少81.5%的情况下,达到71.32%的top-1准确率,且仅损失3.62%准确率,优于SOTA方法。
  • 基于判别性的准则能有效识别冗余模块,因为随机剪枝导致的准确率显著更低。
  • 迭代剪枝结合模拟损失对性能恢复至关重要,尤其在DenseNet等敏感架构中表现明显。
  • 可视化结果表明,保留的模块在剪枝前后输出特征保持相似,证明了信息的有效保留。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。