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

修剪中的损失:修剪神经网络超出测试精度的影响

Lost in Pruning: The Effects of Pruning Neural Networks beyond Test Accuracy

Computer Science and Artificial Intelligence Lab, Massachusetts Institute of Technology(麻省理工学院计算机科学与人工智能实验室)

Lucas Liebenwein, Cenk Baykal, Brandon Carter, David Gifford, Daniela Rus

摘要:

神经网络修剪是一种流行的技术,用于减少现代的,潜在的过度参数化,网络的推理成本。从预先训练的网络开始,过程如下:删除冗余参数,重新训练,并重复,同时保持相同的测试精度。结果是一个模型,它是原始模型大小的一小部分,具有相当的预测性能(测试准确性)。在这里,我们重新评估和评估在终止条件下单独使用测试准确性是否足以确保所得到的模型在广泛的“更硬”度量中表现良好,例如对分布外数据的泛化和对噪声的弹性。通过对不同架构和数据集的评估,我们发现修剪后的网络有效地近似于未修剪的模型,然而,修剪后的网络实现相称性能的修剪率在不同任务中差异很大。这些结果对深度学习中\emph{genuine}过度参数化的程度提出了质疑,并引发了对部署修剪网络的实用性的担忧,特别是在安全关键系统的背景下,除非对它们进行广泛的评估,超出测试精度,以可靠地预测其性能。我们的代码可在https://github.com/lucaslie/torchprune上获得。

英文摘要:

Neural network pruning is a popular technique used to reduce the inference costs of modern, potentially overparameterized, networks. Starting from a pre-trained network, the process is as follows: remove redundant parameters, retrain, and repeat while maintaining the same test accuracy. The result is a model that is a fraction of the size of the original with comparable predictive performance (test accuracy). Here, we reassess and evaluate whether the use of test accuracy alone in the terminating condition is sufficient to ensure that the resulting model performs well across a wide spectrum of "harder" metrics such as generalization to out-of-distribution data and resilience to noise. Across evaluations on varying architectures and data sets, we find that pruned networks effectively approximate the unpruned model, however, the prune ratio at which pruned networks achieve commensurate performance varies significantly across tasks. These results call into question the extent of \emph{genuine} overparameterization in deep learning and raise concerns about the practicability of deploying pruned networks, specifically in the context of safety-critical systems, unless they are widely evaluated beyond test accuracy to reliably predict their performance. Our code is available at https://github.com/lucaslie/torchprune.

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

↑