arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.14757cs.CVcs.LG
收藏

在初始化时学习有效的剪枝

Learning effective pruning at initialization from iterative pruning

State Key Laboratory of Robotics and Systems(机器人系统国家重点实验室);Harbin Institute of Technology(哈尔滨工业大学);Technical University of Munich(慕尼黑技术大学);University of Liverpool(利物浦大学)

Shengkai Liu, Yaofeng Cheng, Fusheng Zha, Wei Guo, Lining Sun, Zhenshan Bing, Chenguang Yang

AI总结:

本文提出了一种基于神经网络的初始化剪枝方法,通过学习初始特征与存活分数的关系来提高高稀疏度下的剪枝性能。

摘要:

在初始化时进行剪枝(PaI)通过在训练前移除权重来降低训练成本,随着网络规模的增长,其重要性日益增加。然而,当前的PaI方法在迭代剪枝(尤其是高稀疏度水平)下仍存在较大的准确率差距。这引发了一个引人入胜的问题:能否从迭代剪枝中获得启发以提高PaI性能?在彩票假说中,迭代回溯剪枝(IRP)通过在每次剪枝迭代中将参数回退到原始初始化来回溯地寻找子网络,这意味着所有子网络都基于初始状态。在此,我们假设存活的子网络更为重要,并将初始特征与它们的存活分数连接起来作为PaI标准。我们采用一个端到端的神经网络(AutoSpare)来学习这种相关性,输入模型的初始特征,输出其分数,然后在训练前剪枝分数最低的参数。为了验证我们方法的准确性和泛化能力,我们对各种模型进行了PaI测试。结果表明,我们的方法在高稀疏度设置下优于现有方法。值得注意的是,由于不同模型的模型剪枝基本逻辑一致,仅需对一个模型进行一次IRP(例如,对ResNet-18/CIFAR-10进行一次IRP,AutoS可以推广到VGG-16/CIFAR-10、ResNet-18/TinyImageNet等)。作为首个基于神经网络的PaI方法,我们进行了广泛的实验以验证该方法的影响因素。这些结果揭示了神经网络的学习倾向,并从实用角度提供了对PaI理解和研究的新见解。我们的代码可在:https://github.com/ChengYaofeng/AutoSparse.git 获取。

英文摘要:

Pruning at initialization (PaI) reduces training costs by removing weights before training, which becomes increasingly crucial with the growing network size. However, current PaI methods still have a large accuracy gap with iterative pruning, especially at high sparsity levels. This raises an intriguing question: can we get inspiration from iterative pruning to improve the PaI performance? In the lottery ticket hypothesis, the iterative rewind pruning (IRP) finds subnetworks retroactively by rewinding the parameter to the original initialization in every pruning iteration, which means all the subnetworks are based on the initial state. Here, we hypothesise the surviving subnetworks are more important and bridge the initial feature and their surviving score as the PaI criterion. We employ an end-to-end neural network (\textbf{AutoS}parse) to learn this correlation, input the model's initial features, output their score and then prune the lowest score parameters before training. To validate the accuracy and generalization of our method, we performed PaI across various models. Results show that our approach outperforms existing methods in high-sparsity settings. Notably, as the underlying logic of model pruning is consistent in different models, only one-time IRP on one model is needed (e.g., once IRP on ResNet-18/CIFAR-10, AutoS can be generalized to VGG-16/CIFAR-10, ResNet-18/TinyImageNet, et al.). As the first neural network-based PaI method, we conduct extensive experiments to validate the factors influencing this approach. These results reveal the learning tendencies of neural networks and provide new insights into our understanding and research of PaI from a practical perspective. Our code is available at: https://github.com/ChengYaofeng/AutoSparse.git.

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

↑