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

一种用于边缘CNN应用的高性能自适应Quantization方法

A High-Performance Adaptive Quantization Approach for Edge CNN Applications

National Tsing-Hua University(清华大学)

Hsu-Hsun Chin, Ren-Song Tsay, Hsin-I Wu

摘要:

最近的卷积神经网络(CNN)开发继续推进各种应用的最新模型精度。然而,增强的准确性是以大量的内存带宽和存储要求以及苛刻的计算资源为代价的。尽管在过去,量化方法有效地降低了边缘设备的部署成本,但在处理当代CNN的有偏激活时,它会遭受显著的信息损失。因此,在本文中,我们引入了一种自适应高性能量化方法,通过根据任务丢失动态调整缩放和移位因子来解决有偏激活的问题。我们提出的方法已经在使用ImageNet数据集的图像分类模型(ResNet-18/34/50,MobileNet-V2,EfficientNet-B 0),使用COCO数据集的目标检测模型(YOLO-V4)以及使用PTB数据集的语言模型上进行了广泛的评估。结果表明,我们的4位整数(INT 4)量化模型比最先进的4位模型实现了更好的精度,在某些情况下,甚至超过了黄金全精度模型。最终设计已成功部署到资源极其有限的边缘设备上,用于许多实际应用。

英文摘要:

Recent convolutional neural network (CNN) development continues to advance the state-of-the-art model accuracy for various applications. However, the enhanced accuracy comes at the cost of substantial memory bandwidth and storage requirements and demanding computational resources. Although in the past the quantization methods have effectively reduced the deployment cost for edge devices, it suffers from significant information loss when processing the biased activations of contemporary CNNs. In this paper, we hence introduce an adaptive high-performance quantization method to resolve the issue of biased activation by dynamically adjusting the scaling and shifting factors based on the task loss. Our proposed method has been extensively evaluated on image classification models (ResNet-18/34/50, MobileNet-V2, EfficientNet-B0) with ImageNet dataset, object detection model (YOLO-V4) with COCO dataset, and language models with PTB dataset. The results show that our 4-bit integer (INT4) quantization models achieve better accuracy than the state-of-the-art 4-bit models, and in some cases, even surpass the golden full-precision models. The final designs have been successfully deployed onto extremely resource-constrained edge devices for many practical applications.

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

↑