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

网络自动修剪:启动NAP并取Nap

Network Automatic Pruning: Start NAP and Take a Nap

University of Toronto(多伦多大学);Uber ATG(优步先进技术集团)

Wenyuan Zeng, Yuwen Xiong, Raquel Urtasun

摘要:

网络修剪可以显著减少大型神经网络的计算量和内存占用。为了在模型大小和性能之间实现良好的平衡,流行的修剪技术通常依赖于手工制作的算法,并需要手动设置每个层的压缩比。这个过程通常很耗时,需要专业知识才能取得良好的效果。在本文中,我们提出了NAP,一个统一的和自动的细粒度和结构化的剪枝框架。它可以找出网络中不重要的组件,并根据理论上合理的标准自动决定不同层的适当压缩比。为了实现这一目标,NAP使用了一个有效的近似的Hessian的组件的重要性进行评估,基于克罗内克因子近似曲率方法。尽管它使用简单,NAP比以前的修剪方法有很大的优势。对于细粒度修剪,NAP可以将AlexNet和VGG 16压缩25倍,将ResNet-50压缩6.7倍,而不会损失ImageNet的准确性。对于结构化修剪(例如通道修剪),它可以将VGG 16的触发器减少5.4倍,将ResNet-50的触发器减少2.3倍,精度仅下降1%。更重要的是,该方法几乎不需要超参数调整,并且不需要专家知识。你可以开始午睡,然后小睡一会儿!

英文摘要:

Network pruning can significantly reduce the computation and memory footprint of large neural networks. To achieve a good trade-off between model size and performance, popular pruning techniques usually rely on hand-crafted heuristics and require manually setting the compression ratio for each layer. This process is typically time-consuming and requires expert knowledge to achieve good results. In this paper, we propose NAP, a unified and automatic pruning framework for both fine-grained and structured pruning. It can find out unimportant components of a network and automatically decide appropriate compression ratios for different layers, based on a theoretically sound criterion. Towards this goal, NAP uses an efficient approximation of the Hessian for evaluating the importances of components, based on a Kronecker-factored Approximate Curvature method. Despite its simpleness to use, NAP outperforms previous pruning methods by large margins. For fine-grained pruning, NAP can compress AlexNet and VGG16 by 25x, and ResNet-50 by 6.7x without loss in accuracy on ImageNet. For structured pruning (e.g. channel pruning), it can reduce flops of VGG16 by 5.4x and ResNet-50 by 2.3x with only 1% accuracy drop. More importantly, this method is almost free from hyper-parameter tuning and requires no expert knowledge. You can start NAP and then take a nap!

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

↑