CrAM: 一种感知压缩的最小化器
CrAM: A Compression-Aware Minimizer
AI总结:
本研究提出一种名为CrAM的感知压缩最小化器,通过修改优化步骤生成压缩稳定的模型,在ImageNet、BERT等基准上实现单步高比例剪枝且精度损失小,性能媲美渐进压缩方法,还适用于硬件支持的剪枝模式与迁移学习。
摘要:
深度神经网络(DNN)在实际场景部署前通常需要通过剪枝和/或量化进行压缩。本研究提出了一种名为CrAM(感知压缩的最小化器)的新型压缩感知最小化器,它以有理论依据的方式修改优化步骤,旨在生成在剪枝等压缩操作下局部损失行为保持稳定的模型。因此,通过CrAM训练的稠密模型在训练后可通过单步压缩实现,且不会出现显著的精度损失。在标准基准测试上的实验结果(包括用于ImageNet分类的残差网络和用于语言建模的BERT模型)表明,CrAM生成的稠密模型精度可高于基于标准SGD/Adam的基线,同时在权重剪枝下保持稳定:具体而言,我们可以将模型一次性剪枝至70-80%的稀疏度,几乎没有精度损失;剪枝至90%稀疏度时,精度损失合理(约1%),这一表现与渐进式压缩方法相当。此外,CrAM可生成在迁移学习中表现优异的稀疏模型,并且也适用于GPU硬件支持的半结构化2:4剪枝模式。复现实验结果的代码可在https://github.com/IST-DASLab/CrAM获取。
英文摘要:
Deep neural networks (DNNs) often have to be compressed, via pruning and/or quantization, before they can be deployed in practical settings. In this work we propose a new compression-aware minimizer dubbed CrAM that modifies the optimization step in a principled way, in order to produce models whose local loss behavior is stable under compression operations such as pruning. Thus, dense models trained via CrAM should be compressible post-training, in a single step, without significant accuracy loss. Experimental results on standard benchmarks, such as residual networks for ImageNet classification and BERT models for language modelling, show that CrAM produces dense models that can be more accurate than the standard SGD/Adam-based baselines, but which are stable under weight pruning: specifically, we can prune models in one-shot to 70-80% sparsity with almost no accuracy loss, and to 90% with reasonable ($\sim 1\%$) accuracy loss, which is competitive with gradual compression methods. Additionally, CrAM can produce sparse models which perform well for transfer learning, and it also works for semi-structured 2:4 pruning patterns supported by GPU hardware. The code for reproducing the results is available at https://github.com/IST-DASLab/CrAM .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。