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

自适应精度训练(AdaPT):一种面向DNN的动态定点量化训练方法

Adaptive Precision Training (AdaPT): A dynamic fixed point quantized training approach for DNNs

University of Vienna(维也纳大学)

Lorenz Kummer, Kevin Sidak, Tabea Reichmann, Wilfried Gansterer

AI总结:

本文提出AdaPT,一种基于信息论条件逐层动态切换精度的定点量化稀疏化训练策略,在不损失信息且避免梯度消失的前提下,实现了训练加速、推理加速和模型大小减少。

摘要:

量化是一种减少深度神经网络(DNNs)训练和推理时间的技术,这对于在资源受限环境中进行训练或对推理时间要求严格的应用至关重要。最先进的(SOTA)量化方法侧重于训练后量化,即对预训练的DNNs进行量化以加速推理。虽然已有关于量化训练的研究,但大多数方法在最终训练阶段需要以全精度(通常是单精度)进行微调,或者在整个DNN中强制采用全局字长。这导致位宽对层的分配不理想,进而导致资源使用不理想。为了克服这些限制,我们引入了AdaPT,一种新的定点量化稀疏化训练策略。AdaPT基于信息论条件决定训练轮次之间的精度切换。目标是逐层确定不引起量化引起的信息丢失的最低精度,同时保持精度足够高,使得未来的学习步骤不会受到梯度消失的影响。我们基于开发的分析性能模型评估了由此产生的全量化DNN的优势。我们表明,在CIFAR10/100上,对于AlexNet/ResNet,与float32的标准训练相比,可以实现1.27的平均加速和0.98%的平均准确率提升,并且我们进一步证明这些AdaPT训练的模型实现了2.33的平均推理加速和0.52的模型大小减少。

英文摘要:

Quantization is a technique for reducing deep neural networks (DNNs) training and inference times, which is crucial for training in resource constrained environments or applications where inference is time critical. State-of-the-art (SOTA) quantization approaches focus on post-training quantization, i.e., quantization of pre-trained DNNs for speeding up inference. While work on quantized training exists, most approaches require refinement in full precision (usually single precision) in the final training phase or enforce a global word length across the entire DNN. This leads to suboptimal assignments of bit-widths to layers and, consequently, suboptimal resource usage. In an attempt to overcome such limitations, we introduce AdaPT, a new fixed-point quantized sparsifying training strategy. AdaPT decides about precision switches between training epochs based on information theoretic conditions. The goal is to determine on a per-layer basis the lowest precision that causes no quantization-induced information loss while keeping the precision high enough such that future learning steps do not suffer from vanishing gradients. The benefits of the resulting fully quantized DNN are evaluated based on an analytical performance model which we develop. We illustrate that an average speedup of 1.27 compared to standard training in float32 with an average accuracy increase of 0.98% can be achieved for AlexNet/ResNet on CIFAR10/100 and we further demonstrate these AdaPT trained models achieve an average inference speedup of 2.33 with a model size reduction of 0.52.

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

↑