arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1808.05779cs.CV
收藏

通过优化具有任务丢失的Quantization间隔来学习量化深度网络

Learning to Quantize Deep Networks by Optimizing Quantization Intervals with Task Loss

Samsung Advanced Institute of Technology (SAIT)(三星先进技术研究院(SAIT));Korea Advanced Institute of Science and Technology (KAIST)(韩国高等科学技术研究院(KAIST))

Sangil Jung, Changyong Son, Seohyung Lee, Jinwoo Son, Youngjun Kwak, Jae-Joon Han, Sung Ju Hwang, Changkyu Choi

摘要:

减少深度网络的激活和权重的位宽可以有效地计算和存储它们,这对于它们部署到资源有限的设备(如移动电话)至关重要。然而,随着量化而减小的比特宽度通常会产生急剧降低的精度。为了解决这个问题,我们建议通过一个可训练的量化器来学习对激活和权重进行转换和离散化。具体来说,我们参数化的量化区间,并获得其最佳值,直接最小化网络的任务损失。这种量化间隔学习(QIL)允许量化网络保持位宽低至4位的全精度(32位)网络的精度,并通过进一步的位宽减小(即,3和2位)。此外,我们的量化器可以在异构数据集上进行训练,因此可以用于在不访问其训练数据的情况下对预训练网络进行量化。我们在具有各种网络架构(如ResNet-18,-34和AlexNet)的ImageNet数据集上证明了我们的可训练量化器的有效性,它在实现最先进精度方面优于现有方法。

英文摘要:

Reducing bit-widths of activations and weights of deep networks makes it efficient to compute and store them in memory, which is crucial in their deployments to resource-limited devices, such as mobile phones. However, decreasing bit-widths with quantization generally yields drastically degraded accuracy. To tackle this problem, we propose to learn to quantize activations and weights via a trainable quantizer that transforms and discretizes them. Specifically, we parameterize the quantization intervals and obtain their optimal values by directly minimizing the task loss of the network. This quantization-interval-learning (QIL) allows the quantized networks to maintain the accuracy of the full-precision (32-bit) networks with bit-width as low as 4-bit and minimize the accuracy degeneration with further bit-width reduction (i.e., 3 and 2-bit). Moreover, our quantizer can be trained on a heterogeneous dataset, and thus can be used to quantize pretrained networks without access to their training data. We demonstrate the effectiveness of our trainable quantizer on ImageNet dataset with various network architectures such as ResNet-18, -34 and AlexNet, on which it outperforms existing methods to achieve the state-of-the-art accuracy.

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

↑