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

SR-init:一种可解释的层修剪方法

SR-init: An interpretable layer pruning method

Zhejiang University of Technology(浙江工业大学)

Hui Tang, Yao Lu, Qi Xuan

摘要:

尽管深度神经网络(DNN)在许多领域得到普及,但由于高计算开销,将最先进的模型部署到资源受限的设备仍然具有挑战性。模型修剪为上述挑战提供了可行的解决方案。然而,现有的修剪标准的解释总是被忽视。针对这个问题,我们提出了一种新的层修剪方法,通过探索随机重新初始化。我们的SR-init方法的灵感来自于发现由于层参数的随机重新初始化而导致的准确度下降在各个层中不同。在此观察的基础上,我们提出了一个层修剪标准,即,对随机重新初始化不敏感的那些层(低精度下降)对模型产生较少的贡献,并且可以以可接受的损失被修剪。之后,我们通过特征可视化实验验证了SR-init的可解释性。直观的解释表明,SR-init在理论上是可行的,因此,我们比较它与国家的最先进的方法,以进一步评估其实用性。至于CIFAR-10和CIFAR-100上的ResNet56,SR-init实现了参数的大幅减少(63.98%和37.71%),同时top-1准确度下降(-0.56%和0.8%)。在ImageNet上使用ResNet50,我们通过删除39.29%的参数实现了15.59%的FLOPs减少,而top-1准确率仅下降了0.6%。我们的代码可在www.example.com上获得。

英文摘要:

Despite the popularization of deep neural networks (DNNs) in many fields, it is still challenging to deploy state-of-the-art models to resource-constrained devices due to high computational overhead. Model pruning provides a feasible solution to the aforementioned challenges. However, the interpretation of existing pruning criteria is always overlooked. To counter this issue, we propose a novel layer pruning method by exploring the Stochastic Re-initialization. Our SR-init method is inspired by the discovery that the accuracy drop due to stochastic re-initialization of layer parameters differs in various layers. On the basis of this observation, we come up with a layer pruning criterion, i.e., those layers that are not sensitive to stochastic re-initialization (low accuracy drop) produce less contribution to the model and could be pruned with acceptable loss. Afterward, we experimentally verify the interpretability of SR-init via feature visualization. The visual explanation demonstrates that SR-init is theoretically feasible, thus we compare it with state-of-the-art methods to further evaluate its practicability. As for ResNet56 on CIFAR-10 and CIFAR-100, SR-init achieves a great reduction in parameters (63.98% and 37.71%) with an ignorable drop in top-1 accuracy (-0.56% and 0.8%). With ResNet50 on ImageNet, we achieve a 15.59% FLOPs reduction by removing 39.29% of the parameters, with only a drop of 0.6% in top-1 accuracy. Our code is available at https://github.com/huitang-zjut/SR-init.

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

↑