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

最佳脑压缩:精确后训练Quantization和修剪的框架

Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning

IST Austria(奥地利科学技术研究所);ETH Zurich(苏黎世联邦理工学院);Neural Magic(神经魔法公司)

Elias Frantar, Sidak Pal Singh, Dan Alistarh

摘要:

我们考虑在具有挑战性的一次性/后训练设置中深度神经网络(DNN)的模型压缩问题,在这种情况下,我们得到了一个精确的训练模型,并且必须仅基于少量校准输入数据在没有任何重新训练的情况下对其进行压缩。这个问题已经变得流行,鉴于新兴的软件和硬件支持执行模型压缩通过修剪和/或量化与加速,以及性能良好的解决方案已经提出了独立的两种压缩方法。在本文中,我们介绍了一个新的压缩框架,它涵盖了重量修剪和量化在一个统一的设置,是时间和空间效率,并大大提高了现有的后训练方法的实际性能。在技术层面上,我们的方法是基于[LeCun,Denker和Solla,1990]的经典最佳脑外科医生(OBS)框架的精确和有效实现,该框架扩展到现代DNN规模的权重量化。从实际的角度来看,我们的实验结果表明,它可以显着改善现有的后训练方法的压缩精度的权衡,它可以使精确的修剪和量化的复合应用在后训练设置。

英文摘要:

We consider the problem of model compression for deep neural networks (DNNs) in the challenging one-shot/post-training setting, in which we are given an accurate trained model, and must compress it without any retraining, based only on a small amount of calibration input data. This problem has become popular in view of the emerging software and hardware support for executing models compressed via pruning and/or quantization with speedup, and well-performing solutions have been proposed independently for both compression approaches. In this paper, we introduce a new compression framework which covers both weight pruning and quantization in a unified setting, is time- and space-efficient, and considerably improves upon the practical performance of existing post-training methods. At the technical level, our approach is based on an exact and efficient realization of the classical Optimal Brain Surgeon (OBS) framework of [LeCun, Denker, and Solla, 1990] extended to also cover weight quantization at the scale of modern DNNs. From the practical perspective, our experimental results show that it can improve significantly upon the compression-accuracy trade-offs of existing post-training methods, and that it can enable the accurate compound application of both pruning and quantization in a post-training setting.

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

↑