arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.16876cs.LGcs.AI
收藏

AdaQAT:自适应位宽量化感知训练

AdaQAT: Adaptive Bit-Width Quantization-Aware Training

Univ. Rennes(雷恩大学);Inria(法国国家信息与自动化研究所);CNRS(法国国家科学研究中心);IRISA(法国雷恩信息与自动化研究所);CNES(法国国家太空研究中心)

Cédric Gernigon, Silviu-Ioan Filip, Olivier Sentieys, Clément Coggiola, Mickael Bruno

AI总结:

提出AdaQAT方法,通过梯度下降在训练中自动优化权重和激活的位宽,实现高效的混合精度量化,在从头训练和微调场景中均表现优异。

摘要:

大规模深度神经网络(DNNs)在许多应用场景中取得了显著成功。然而,现代DNNs的高计算复杂度和能耗使其在边缘设备上的部署面临挑战。模型量化是应对部署约束的常用方法,但搜索优化的位宽可能具有挑战性。在本研究中,我们提出了自适应位宽量化感知训练(AdaQAT),这是一种基于学习的方法,在训练过程中自动优化权重和激活信号的位宽,以实现更高效的DNN推理。我们使用通过梯度下降规则更新的松弛实值位宽,但在所有量化操作中将其离散化。其结果是一种用于混合精度均匀量化问题的简单且灵活的QAT方法。与通常设计用于在预训练网络上运行的其他方法相比,AdaQAT在从头开始训练和微调场景中均表现良好。分别在CIFAR-10和ImageNet数据集上使用ResNet20和ResNet18模型的初步结果表明,我们的方法与其他最先进的混合精度量化方法具有竞争力。

英文摘要:

Large-scale deep neural networks (DNNs) have achieved remarkable success in many application scenarios. However, high computational complexity and energy costs of modern DNNs make their deployment on edge devices challenging. Model quantization is a common approach to deal with deployment constraints, but searching for optimized bit-widths can be challenging. In this work, we present Adaptive Bit-Width Quantization Aware Training (AdaQAT), a learning-based method that automatically optimizes weight and activation signal bit-widths during training for more efficient DNN inference. We use relaxed real-valued bit-widths that are updated using a gradient descent rule, but are otherwise discretized for all quantization operations. The result is a simple and flexible QAT approach for mixed-precision uniform quantization problems. Compared to other methods that are generally designed to be run on a pretrained network, AdaQAT works well in both training from scratch and fine-tuning scenarios.Initial results on the CIFAR-10 and ImageNet datasets using ResNet20 and ResNet18 models, respectively, indicate that our method is competitive with other state-of-the-art mixed-precision quantization approaches.

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

↑