BitQ:为提升资源受限设备上的DNN效率而定制块浮点精度
BitQ: Tailoring Block Floating Point Precision for Improved DNN Efficiency on Resource-Constrained Devices
AI总结:
本文提出基于BFP的位宽感知分析建模框架BitQ,通过权衡精度与性能损失求解最优块大小和位宽分布,使DNN在嵌入式平台上实现高效计算并保持精度。
摘要:
深度神经网络(DNNs)在图像分类、目标检测和场景分割等认知任务中表现出色。然而其计算复杂度和内存消耗极高,因硬件资源有限而难以在嵌入式平台上实时运行。块浮点(BFP)量化是减少内存和计算负担的代表性压缩方法之一,因其能有效捕捉DNN模型广泛的数据分布。遗憾的是,以往基于BFP的量化工作仅凭经验选择能保持精度的块大小和精度。本文提出一种基于BFP的位宽感知分析建模框架(称为“BitQ”),旨在为嵌入式平台上的DNN推理实现最佳BFP配置。我们构建并求解了一个优化问题,通过权衡精度与性能损失来确定最优的BFP块大小和位宽分布。实验结果表明,与等位宽设置相比,采用优化位宽分配的BFP DNNs在著名基准上保持精度的同时提供了高效计算。源代码和数据发布于 https://github.com/Cheliosoops/BitQ。
英文摘要:
Deep neural networks (DNNs) are powerful for cognitive tasks such as image classification, object detection, and scene segmentation. One drawback however is the significant high computational complexity and memory consumption, which makes them unfeasible to run real-time on embedded platforms because of the limited hardware resources. Block floating point (BFP) quantization is one of the representative compression approaches for reducing the memory and computational burden owing to their capability to effectively capture the broad data distribution of DNN models. Unfortunately, prior works on BFP-based quantization empirically choose the block size and the precision that preserve accuracy. In this paper, we develop a BFP-based bitwidth-aware analytical modeling framework (called ``BitQ'') for the best BFP implementation of DNN inference on embedded platforms. We formulate and resolve an optimization problem to identify the optimal BFP block size and bitwidth distribution by the trade-off of both accuracy and performance loss. Experimental results show that compared with an equal bitwidth setting, the BFP DNNs with optimized bitwidth allocation provide efficient computation, preserving accuracy on famous benchmarks. The source code and data are available at https://github.com/Cheliosoops/BitQ.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。