arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2105.04246cs.LGcs.AIcs.CV
收藏

量化训练的事后Quantization距离估计

In-Hindsight Quantization Range Estimation for Quantized Training

Qualcomm AI Research(高通人工智能研究院)

Marios Fournarakis, Markus Nagel

摘要:

应用于深度神经网络的推理的量化技术使得能够在资源受限的设备上快速高效地执行。量化在推理过程中的成功促使学术界探索完全量化的训练,即量化反向传播。然而,有效的梯度量化仍然是一个悬而未决的问题。向量是无界的,它们的分布在训练过程中会发生显著变化,这导致需要动态量化。正如我们所展示的,动态量化可能会导致显着的内存开销和额外的数据流量减慢训练。我们提出了一个简单的替代动态量化,在事后范围估计,使用量化范围估计在以前的迭代,以保证目前。我们的方法可以快速静态量化梯度和激活,同时只需要最小的硬件支持,从神经网络加速器,以保持跟踪输出统计数据在一个在线的方式。它旨在作为估计量化范围的替代品,并可与量化训练中的其他进步结合使用。我们将我们的方法与现有的量化训练文献中的范围估计方法进行比较,并在图像分类基准测试(Tiny ImageNet和ImageNet)上使用一系列架构(包括MobileNetV2)证明其有效性。

英文摘要:

Quantization techniques applied to the inference of deep neural networks have enabled fast and efficient execution on resource-constraint devices. The success of quantization during inference has motivated the academic community to explore fully quantized training, i.e. quantizing back-propagation as well. However, effective gradient quantization is still an open problem. Gradients are unbounded and their distribution changes significantly during training, which leads to the need for dynamic quantization. As we show, dynamic quantization can lead to significant memory overhead and additional data traffic slowing down training. We propose a simple alternative to dynamic quantization, in-hindsight range estimation, that uses the quantization ranges estimated on previous iterations to quantize the present. Our approach enables fast static quantization of gradients and activations while requiring only minimal hardware support from the neural network accelerator to keep track of output statistics in an online fashion. It is intended as a drop-in replacement for estimating quantization ranges and can be used in conjunction with other advances in quantized training. We compare our method to existing methods for range estimation from the quantized training literature and demonstrate its effectiveness with a range of architectures, including MobileNetV2, on image classification benchmarks (Tiny ImageNet & ImageNet).

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

↑