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

随机修剪的不合理效果:返回稀疏训练的最朴素基线

The Unreasonable Effectiveness of Random Pruning: Return of the Most Naive Baseline for Sparse Training

Eindhoven University of Technology(埃因霍温理工大学);University of Texas at Austin(德克萨斯大学奥斯汀分校);JD Explore Academy(京东探索研究院);University of Twente(特文特大学)

Shiwei Liu, Tianlong Chen, Xiaohan Chen, Li Shen, Decebal Constantin Mocanu, Zhangyang Wang, Mykola Pechenizkiy

摘要:

随机修剪可以说是在神经网络中获得稀疏性的最简单的方法,但无论是训练后修剪还是稀疏训练都被认为是没有竞争力的。在本文中,我们专注于稀疏训练,并强调了一个可能违反直觉的发现,即初始化时的随机修剪对于现代神经网络的稀疏训练可能非常强大。在没有任何精细的修剪标准或仔细追求稀疏结构的情况下,我们凭经验证明,从头开始稀疏训练随机修剪的网络可以匹配其密集等价物的性能。有两个关键因素促成了这种复兴:(i)网络大小很重要:随着原始密集网络变得更宽更深,训练随机修剪的稀疏网络的性能将迅速增长,即使在高稀疏率下也能与其密集网络相匹配;(ii)可以为稀疏训练预先选择适当的逐层稀疏率,这是另一个重要的性能提升器。虽然看起来很简单,但Wide ResNet-50的随机修剪子网络可以在ImageNet上进行稀疏训练,以超过密集的Wide ResNet-50。我们还观察到,这种随机修剪的网络在其他有利方面优于密集网络,例如分布外检测,不确定性估计和对抗鲁棒性。总的来说,我们的研究结果强烈表明,稀疏训练在规模上有比预期更大的空间,稀疏性的好处可能比精心设计的修剪更普遍。我们的源代码可以在https://github.com/VITA-Group/Random_Pruning上找到。

英文摘要:

Random pruning is arguably the most naive way to attain sparsity in neural networks, but has been deemed uncompetitive by either post-training pruning or sparse training. In this paper, we focus on sparse training and highlight a perhaps counter-intuitive finding, that random pruning at initialization can be quite powerful for the sparse training of modern neural networks. Without any delicate pruning criteria or carefully pursued sparsity structures, we empirically demonstrate that sparsely training a randomly pruned network from scratch can match the performance of its dense equivalent. There are two key factors that contribute to this revival: (i) the network sizes matter: as the original dense networks grow wider and deeper, the performance of training a randomly pruned sparse network will quickly grow to matching that of its dense equivalent, even at high sparsity ratios; (ii) appropriate layer-wise sparsity ratios can be pre-chosen for sparse training, which shows to be another important performance booster. Simple as it looks, a randomly pruned subnetwork of Wide ResNet-50 can be sparsely trained to outperforming a dense Wide ResNet-50, on ImageNet. We also observed such randomly pruned networks outperform dense counterparts in other favorable aspects, such as out-of-distribution detection, uncertainty estimation, and adversarial robustness. Overall, our results strongly suggest there is larger-than-expected room for sparse training at scale, and the benefits of sparsity might be more universal beyond carefully designed pruning. Our source code can be found at https://github.com/VITA-Group/Random_Pruning.

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

↑