arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.12091cs.NEcs.AIcs.ARcs.CV
收藏

FxP-QNet:一种用于设计具有动态定点表示的混合低精度DNN的训练后量化器

FxP-QNet: A Post-Training Quantizer for the Design of Mixed Low-Precision DNNs with Dynamic Fixed-Point Representation

Interdisciplinary Research Center for Intelligent Secure Systems(智能安全系统跨学科研究中心)

Ahmad Shawahna, Sadiq M. Sait, Aiman El-Maleh, Irfan Ahmad

摘要:

深度神经网络(DNN)已经在广泛的计算机视觉任务中证明了其有效性,通过需要密集计算和内存的复杂和深层结构获得了最先进的结果。如今,高效的模型推理对于资源受限平台上的消费者应用程序至关重要。因此,人们对研究和开发专用深度学习(DL)硬件以提高DNN的吞吐量和能量效率非常感兴趣。DNN数据结构通过量化的低精度表示将为专用DL硬件带来巨大好处。然而,严格的量化导致严重的精度下降。因此,量化在比特精度级别上打开了一个大的超参数空间,对其的探索是一个重大挑战。在本文中,我们提出了一种新的框架,称为深度神经网络的定点量化器(FxP-QNet),它灵活地设计了一个混合的低精度DNN,用于仅整数算术部署。具体而言,FxP-QNet基于网络精度和低精度要求之间的权衡,逐渐适应每层每个数据结构的量化级别。此外,它采用训练后自蒸馏和网络预测误差统计来优化浮点值到定点数的量化。在最先进的架构和基准ImageNet数据集上检查FxP-QNet,我们凭经验证明了FxP-QNet在不需要训练的情况下实现准确性-压缩权衡的有效性。结果表明,FxP-QNet量化的AlexNet、VGG-16和ResNet-18将其全精度对应物的总体内存需求分别降低了7.16倍、10.36倍和6.44倍,准确度下降分别小于0.95%、0.95%和1.99%。

英文摘要:

Deep neural networks (DNNs) have demonstrated their effectiveness in a wide range of computer vision tasks, with the state-of-the-art results obtained through complex and deep structures that require intensive computation and memory. Now-a-days, efficient model inference is crucial for consumer applications on resource-constrained platforms. As a result, there is much interest in the research and development of dedicated deep learning (DL) hardware to improve the throughput and energy efficiency of DNNs. Low-precision representation of DNN data-structures through quantization would bring great benefits to specialized DL hardware. However, the rigorous quantization leads to a severe accuracy drop. As such, quantization opens a large hyper-parameter space at bit-precision levels, the exploration of which is a major challenge. In this paper, we propose a novel framework referred to as the Fixed-Point Quantizer of deep neural Networks (FxP-QNet) that flexibly designs a mixed low-precision DNN for integer-arithmetic-only deployment. Specifically, the FxP-QNet gradually adapts the quantization level for each data-structure of each layer based on the trade-off between the network accuracy and the low-precision requirements. Additionally, it employs post-training self-distillation and network prediction error statistics to optimize the quantization of floating-point values into fixed-point numbers. Examining FxP-QNet on state-of-the-art architectures and the benchmark ImageNet dataset, we empirically demonstrate the effectiveness of FxP-QNet in achieving the accuracy-compression trade-off without the need for training. The results show that FxP-QNet-quantized AlexNet, VGG-16, and ResNet-18 reduce the overall memory requirements of their full-precision counterparts by 7.16x, 10.36x, and 6.44x with less than 0.95%, 0.95%, and 1.99% accuracy drop, respectively.

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

↑