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

神经网络白皮书Quantization

A White Paper on Neural Network Quantization

Qualcomm AI Research(高通人工智能研究院)

Markus Nagel, Marios Fournarakis, Rana Ali Amjad, Yelysei Bondarenko, Mart van Baalen, Tijmen Blankevoort

摘要:

虽然神经网络在许多应用中已经推进了前沿,但它们通常具有很高的计算成本。如果我们想将现代网络集成到具有严格功耗和计算要求的边缘设备中,降低神经网络推理的功耗和延迟是关键。神经网络量化是实现这些节省的最有效的方法之一,但它引起的额外噪声可能导致精度下降。在本白皮书中,我们介绍了最先进的算法,用于减轻量化噪声对网络性能的影响,同时保持低位权重和激活。我们从硬件驱动的量化介绍开始,然后考虑两类主要的算法:训练后量化(PTQ)和量化感知训练(QAT)。PTQ不需要重新训练或标记数据,因此是一种轻量级的按钮量化方法。在大多数情况下,PTQ足以实现接近浮点精度的8位量化。QAT需要微调并访问标记的训练数据,但能够实现具有竞争力结果的较低比特量化。对于这两种解决方案,我们都提供了基于现有文献和大量实验的测试管道,从而为常见的深度学习模型和任务带来最先进的性能。

英文摘要:

While neural networks have advanced the frontiers in many applications, they often come at a high computational cost. Reducing the power and latency of neural network inference is key if we want to integrate modern networks into edge devices with strict power and compute requirements. Neural network quantization is one of the most effective ways of achieving these savings but the additional noise it induces can lead to accuracy degradation. In this white paper, we introduce state-of-the-art algorithms for mitigating the impact of quantization noise on the network's performance while maintaining low-bit weights and activations. We start with a hardware motivated introduction to quantization and then consider two main classes of algorithms: Post-Training Quantization (PTQ) and Quantization-Aware-Training (QAT). PTQ requires no re-training or labelled data and is thus a lightweight push-button approach to quantization. In most cases, PTQ is sufficient for achieving 8-bit quantization with close to floating-point accuracy. QAT requires fine-tuning and access to labeled training data but enables lower bit quantization with competitive results. For both solutions, we provide tested pipelines based on existing literature and extensive experimentation that lead to state-of-the-art performance for common deep learning models and tasks.

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

↑