arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.04120cs.NEcs.AI
收藏

代理拉格朗日松弛:一条通往免重训练深度神经网络剪枝的路径

Surrogate Lagrangian Relaxation: A Path To Retrain-free Deep Neural Network Pruning

University of Connecticut(康涅狄格大学)

Shanglin Zhou, Mikhail A. Bragin, Lynn Pepin, Deniz Gurevin, Fei Miao, Caiwen Ding

AI总结:

本文提出基于代理拉格朗日松弛(SLR)的神经网络权重剪枝优化方法,通过二次惩罚加速收敛,在多种视觉任务上实现更高压缩率与精度,且无需重训练即可将传统三阶段剪枝简化为两阶段。

摘要:

网络剪枝是一种广泛使用的技术,用于降低深度神经网络的计算成本和模型大小。然而,典型的三阶段流程显著增加了整体训练时间。在本文中,我们开发了一种基于代理拉格朗日松弛(SLR)的系统性权重剪枝优化方法,该方法专为克服权重剪枝问题的离散性质所造成的困难而设计。我们证明了我们的方法能确保模型压缩问题的快速收敛,并且通过使用二次惩罚加速了SLR的收敛。与其他最先进的方法相比,在训练阶段通过SLR获得的模型参数更接近其最优值。我们在图像分类任务上使用CIFAR-10和ImageNet数据集,结合最先进的MLP-Mixer、Swin Transformer、VGG-16、ResNet-18、ResNet-50、ResNet-110和MobileNetV2模型评估了我们的方法。我们还在COCO、KITTI基准和TuSimple车道检测数据集上使用多种模型评估了目标检测和分割任务。实验结果表明,在相同的精度要求下,我们基于SLR的权重剪枝优化方法比最先进的方法实现了更高的压缩率,并且在相同的压缩率要求下也能实现更高的精度。在分类任务中,我们的SLR方法在这两个数据集上收敛到所需精度的速度快3倍。在目标检测和分割任务中,SLR收敛到所需精度的速度也快2倍。此外,即使在硬剪枝阶段无需重训练,我们的SLR也能实现高模型精度,从而将传统的三阶段剪枝减少为两阶段过程。在重训练轮数预算有限的情况下,我们的方法能快速恢复模型的精度。

英文摘要:

Network pruning is a widely used technique to reduce computation cost and model size for deep neural networks. However, the typical three-stage pipeline significantly increases the overall training time. In this paper, we develop a systematic weight-pruning optimization approach based on Surrogate Lagrangian relaxation, which is tailored to overcome difficulties caused by the discrete nature of the weight-pruning problem. We prove that our method ensures fast convergence of the model compression problem, and the convergence of the SLR is accelerated by using quadratic penalties. Model parameters obtained by SLR during the training phase are much closer to their optimal values as compared to those obtained by other state-of-the-art methods. We evaluate our method on image classification tasks using CIFAR-10 and ImageNet with state-of-the-art MLP-Mixer, Swin Transformer, and VGG-16, ResNet-18, ResNet-50 and ResNet-110, MobileNetV2. We also evaluate object detection and segmentation tasks on COCO, KITTI benchmark, and TuSimple lane detection dataset using a variety of models. Experimental results demonstrate that our SLR-based weight-pruning optimization approach achieves a higher compression rate than state-of-the-art methods under the same accuracy requirement and also can achieve higher accuracy under the same compression rate requirement. Under classification tasks, our SLR approach converges to the desired accuracy $3\times$ faster on both of the datasets. Under object detection and segmentation tasks, SLR also converges $2\times$ faster to the desired accuracy. Further, our SLR achieves high model accuracy even at the hard-pruning stage without retraining, which reduces the traditional three-stage pruning into a two-stage process. Given a limited budget of retraining epochs, our approach quickly recovers the model's accuracy.

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

↑