arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.04879cs.CV
收藏

从三个维度加速CNN:一个全面的修剪框架

Accelerate CNNs from Three Dimensions: A Comprehensive Pruning Framework

Zhejiang University(浙江大学);Tencent(腾讯);Columbia University(哥伦比亚大学)

Wenxiao Wang, Minghao Chen, Shuai Zhao, Long Chen, Jinming Hu, Haifeng Liu, Deng Cai, Xiaofei He, Wei Liu

摘要:

大多数神经网络修剪方法,例如过滤器级和层级修剪,仅沿一维(深度,宽度或分辨率)修剪网络模型以满足计算预算。然而,这样的修剪策略往往会导致该维度的过度减少,从而导致巨大的准确性损失。为了缓解这个问题,我们认为修剪应该沿着三个维度进行全面。为此,我们的修剪框架制定修剪作为一个优化问题。具体来说,它首先将某一模型的精度与深度/宽度/分辨率之间的关系转换为多项式回归,然后最大化多项式以获得三维的最佳值。最后,沿着三个最优维度相应地修剪模型。在这个框架中,由于收集太多的数据来训练回归是非常耗时的,我们提出了两种方法来降低成本:1)专门的多项式,以确保准确的回归,即使在更少的训练数据; 2)采用迭代修剪和微调,以更快地收集数据。大量的实验表明,我们提出的算法优于国家的最先进的修剪算法,甚至神经结构搜索为基础的算法。

英文摘要:

Most neural network pruning methods, such as filter-level and layer-level prunings, prune the network model along one dimension (depth, width, or resolution) solely to meet a computational budget. However, such a pruning policy often leads to excessive reduction of that dimension, thus inducing a huge accuracy loss. To alleviate this issue, we argue that pruning should be conducted along three dimensions comprehensively. For this purpose, our pruning framework formulates pruning as an optimization problem. Specifically, it first casts the relationships between a certain model's accuracy and depth/width/resolution into a polynomial regression and then maximizes the polynomial to acquire the optimal values for the three dimensions. Finally, the model is pruned along the three optimal dimensions accordingly. In this framework, since collecting too much data for training the regression is very time-costly, we propose two approaches to lower the cost: 1) specializing the polynomial to ensure an accurate regression even with less training data; 2) employing iterative pruning and fine-tuning to collect the data faster. Extensive experiments show that our proposed algorithm surpasses state-of-the-art pruning algorithms and even neural architecture search-based algorithms.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑