Skip to main content
QUICK REVIEW

[论文解读] Accelerate CNNs from Three Dimensions: A Comprehensive Pruning Framework

Wenxiao Wang, Minghao Chen|arXiv (Cornell University)|Oct 10, 2020
Advanced Neural Network ApplicationsComputer Science参考文献 43被引用 21
一句话总结

本文提出了一种三维剪枝框架,通过联合优化深度、宽度和输入分辨率,在CNN加速过程中最小化精度损失。通过将精度建模为这三个维度的多项式回归,并利用约束优化求解最优权衡,该方法通过专用的低秩多项式逼近和迭代微调,显著降低了数据收集成本,实现了SOTA性能。

ABSTRACT

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.

研究动机与目标

  • 解决现有CNN剪枝方法中仅剪枝单一维度(深度、宽度或分辨率)导致的次优精度损失问题。
  • 将模型加速建模为深度、宽度和分辨率的联合优化问题,以寻找最优平衡。
  • 通过引入低秩专用MAP和迭代剪枝,降低多项式回归的数据收集高成本。
  • 证明全面的三维剪枝优于单维剪枝和基于NAS的方法。

提出的方法

  • 将剪枝建模为优化问题:在深度、宽度和分辨率的计算预算约束下,最大化精度。
  • 使用深度、宽度和分辨率的多项式回归建模精度预测器(MAP),以近似超参数与精度之间的复杂关系。
  • 引入具有低秩权重张量的专用多项式,以在训练数据有限的情况下防止过拟合并提升泛化能力。
  • 采用迭代剪枝与微调,快速收集(d, w, r, a)训练数据,避免从头开始昂贵的再训练。
  • 使用拉格朗日乘子法求解优化问题,找到在预算约束下最大化精度的最优(d*, w*, r*)值。
  • 利用泰勒定理证明对任意连续精度函数进行多项式逼近的合理性。

实验结果

研究问题

  • RQ1联合优化深度、宽度和分辨率是否能比单维剪枝带来更好的精度保留?
  • RQ2如何在最小化训练数据的前提下,为三维超参数搜索构建一个准确的精度预测器(MAP)?
  • RQ3多项式阶数和正则化对MAP泛化能力和鲁棒性有何影响?
  • RQ4迭代剪枝与微调是否能显著降低训练MAP的数据收集成本?
  • RQ5在精度和计算成本方面,三维剪枝与基于NAS的方法相比如何?

主要发现

  • 所提出的框架在相同计算预算下,于CIFAR-10和TinyImageNet上实现了SOTA精度,超越了现有剪枝算法。
  • 对于CIFAR-10上的ResNet-32,最优剪枝设置为(d*, w*, r*) = (0.78, 0.82, 0.98);对于TinyImageNet上的ResNet-56,为(0.65, 1.0, 0.63)。
  • 专用MAP的训练误差为0.08%,评估误差为0.25%,显著优于标准多项式回归及正则化变体。
  • 多项式阶数≥3在不同模型上均能保持一致的最优预测,表明对超参数选择具有鲁棒性。
  • 特征图可视化显示,剪枝模型的最后一层激活与原始模型最为相似,证实了更好的特征保留。
  • 通过迭代微调和低秩专一化,该方法显著降低了数据收集成本,实现了在有限数据下的高效MAP训练。

阅读本论文

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

在 Nubint 中阅读本论文

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