基于预定增长剪枝方法的有效模型稀疏化
Effective Model Sparsification by Scheduled Grow-and-Prune Methods
摘要:
深度神经网络(DNN)在解决许多现实问题方面是有效的。较大的DNN模型通常表现出更好的质量(例如,精确度),但是它们的过度计算导致长的推理时间。模型稀疏化可以在保持模型质量的同时减少计算和内存开销。大多数现有的稀疏化算法单向地去除权重,而其他算法随机地或绿色地探索每层中的一小部分权重进行修剪。这些算法的局限性降低了可实现的稀疏性水平。此外,许多算法仍然需要预先训练的密集模型,因此需要占用大量内存。在本文中,我们提出了一种新的预定增长和修剪(GaP)方法,而无需预先训练密集模型。它解决了以前工作的缺点,通过重复增长层的子集到密集,然后在一些训练后将它们修剪回稀疏。实验表明,使用所提出的方法修剪的模型匹配或击败在80%稀疏度的高度优化的密集模型的质量上的各种任务,如图像分类,目标检测,3D对象部分分割,和翻译。它们在模型稀疏化方面也优于其他最先进的(SOTA)方法。例如,通过GaP获得的90%非均匀稀疏ResNet-50模型在ImageNet上实现了77.9%的top-1准确率,将之前的SOTA结果提高了1.5%。代码可在:https://github.com/boone891214/GaP获得。
英文摘要:
Deep neural networks (DNNs) are effective in solving many real-world problems. Larger DNN models usually exhibit better quality (e.g., accuracy) but their excessive computation results in long inference time. Model sparsification can reduce the computation and memory cost while maintaining model quality. Most existing sparsification algorithms unidirectionally remove weights, while others randomly or greedily explore a small subset of weights in each layer for pruning. The limitations of these algorithms reduce the level of achievable sparsity. In addition, many algorithms still require pre-trained dense models and thus suffer from large memory footprint. In this paper, we propose a novel scheduled grow-and-prune (GaP) methodology without having to pre-train a dense model. It addresses the shortcomings of the previous works by repeatedly growing a subset of layers to dense and then pruning them back to sparse after some training. Experiments show that the models pruned using the proposed methods match or beat the quality of the highly optimized dense models at 80% sparsity on a variety of tasks, such as image classification, objective detection, 3D object part segmentation, and translation. They also outperform other state-of-the-art (SOTA) methods for model sparsification. As an example, a 90% non-uniform sparse ResNet-50 model obtained via GaP achieves 77.9% top-1 accuracy on ImageNet, improving the previous SOTA results by 1.5%. Code available at: https://github.com/boone891214/GaP.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。