arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.02822cs.LG
收藏

FlexiQ:面向深度神经网络中延迟/精度权衡的自适应混合精度量化

FlexiQ: Adaptive Mixed-Precision Quantization for Latency/Accuracy Trade-Offs in Deep Neural Networks

Seoul National University(首尔国立大学);Hanyang University(翰阳大学);Yonsei University(延世大学)

Jaemin Kim, Hongjun Um, Sungkyun Kim, Yongjun Park, Jiwon Seo

AI总结:

针对神经网络硬件加速器成本高、难应对实时负载波动的问题,提出自适应混合精度量化方案FlexiQ,通过选择性低位计算与实时通道比例调整,实现高效精度-延迟权衡,性能优于现有技术且硬件开销小。

摘要:

由于神经网络的规模和计算开销,它们通常在NPU(神经网络处理器)和GPU等硬件加速器上运行。这些加速器成本高昂,且难以扩展其资源以应对实时工作负载的波动。\n 我们提出了FlexiQ,一种面向计算机视觉模型的自适应混合精度量化方案。FlexiQ有选择地对取值范围较小的特征通道应用低位宽计算,并采用高效的降比特方法,在保持推理精度的同时最小化量化误差。此外,FlexiQ可实时调整其低位宽通道比例,使量化后的模型能够有效应对波动的推理工作负载。\n 我们实现了FlexiQ原型,包括在我们定制的NPU和GPU上的混合精度推理运行时。在11个基于卷积和Transformer的视觉模型上进行评估,FlexiQ使经过微调的4比特模型的精度平均提高6.6%,性能优于四种最先进的量化技术。此外,我们的混合精度模型实现了高效的精度-延迟权衡:50%占比的4比特模型仅产生0.6%的精度损失,同时达到了100%占比4比特模型相对于8比特模型加速比的40%。在我们的NPU和GPU上的延迟评估证实,FlexiQ引入的运行时开销极小,证明了其硬件效率和整体性能优势。

英文摘要:

Neural networks commonly execute on hardware accelerators such as NPUs and GPUs for their size and computation overhead. These accelerators are costly and it is hard to scale their resources to handle real-time workload fluctuations. We present FlexiQ, an adaptive mixed-precision quantization scheme for computer vision models. FlexiQ selectively applies low-bitwidth computation to feature channels with small value ranges and employs an efficient bit-lowering method to minimize quantization errors while maintaining inference accuracy. Furthermore, FlexiQ adjusts its low-bitwidth channel ratio in real time, enabling quantized models to effectively manage fluctuating inference workload. We implemented FlexiQ prototype, including the mixed-precision inference runtime on our custom NPU and GPUs. Evaluated on eleven convolution- and transformer-based vision models, FlexiQ achieves on average 6.6% higher accuracy for 4-bit models with finetuning and outperforms four state-of-the-art quantization techniques. Moreover, our mixed-precision models achieved an efficient accuracy-latency trade-off, with the 50% 4-bit model incurring only 0.6% accuracy loss while achieving 40% of the speedup of the 100% 4-bit model over 8-bit model. Latency evaluations on our NPU and GPUs confirmed that FlexiQ introduces minimal runtime overhead, demonstrating its hardware efficiency and overall performance benefits.

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

↑