DNA-TEQ:面向DNN推理的张量自适应指数量化
DNA-TEQ: An Adaptive Exponential Quantization of Tensors for DNN Inference
AI总结:
本文提出DNA-TEQ,一种基于张量指数分布特性的自适应量化方法,在指数域执行点积运算,相比INT8线性基线实现平均40%压缩比和66%能耗节省,且精度损失可忽略。
摘要:
量化在深度神经网络(DNN)中被广泛使用,通过降低激活值和权重(即张量)的算术精度来减少存储和计算复杂度。高效的硬件架构采用线性量化,使得最新的DNN能够部署在嵌入式系统和移动设备上。然而,线性均匀量化通常无法在不牺牲模型精度高性能的情况下将数值精度降低到8比特以下。这种性能损失是由于张量不服从均匀分布造成的。在本文中,我们证明了大量张量符合指数分布。然后,我们提出DNA-TEQ,通过自适应方案对DNN张量进行指数量化,在数值精度和精度损失之间实现最佳权衡。实验结果表明,与之前的方案相比,DNA-TEQ提供了更低的量化位宽,在INT8线性基线上实现了平均40%的压缩比,且精度损失可忽略不计,也无需重新训练DNN。此外,DNA-TEQ引领了在指数域中执行点积运算的方法,在一组广泛使用的DNN上平均节省了66%的能耗。
英文摘要:
Quantization is commonly used in Deep Neural Networks (DNNs) to reduce the storage and computational complexity by decreasing the arithmetical precision of activations and weights, a.k.a. tensors. Efficient hardware architectures employ linear quantization to enable the deployment of recent DNNs onto embedded systems and mobile devices. However, linear uniform quantization cannot usually reduce the numerical precision to less than 8 bits without sacrificing high performance in terms of model accuracy. The performance loss is due to the fact that tensors do not follow uniform distributions. In this paper, we show that a significant amount of tensors fit into an exponential distribution. Then, we propose DNA-TEQ to exponentially quantize DNN tensors with an adaptive scheme that achieves the best trade-off between numerical precision and accuracy loss. The experimental results show that DNA-TEQ provides a much lower quantization bit-width compared to previous proposals, resulting in an average compression ratio of 40% over the linear INT8 baseline, with negligible accuracy loss and without retraining the DNNs. Besides, DNA-TEQ leads the way in performing dot-product operations in the exponential domain, which saves 66% of energy consumption on average for a set of widely used DNNs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。