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

用于更快、高能效推理的混合精度神经网络量化高效且有效的方法

Efficient and Effective Methods for Mixed Precision Neural Network Quantization for Faster, Energy-efficient Inference

IBM Research(IBM研究院)

Deepika Bablani, Jeffrey L. Mckinstry, Steven K. Esser, Rathinakumar Appuswamy, Dharmendra S. Modha

AI总结:

本文提出EAGL和ALPS两种混合精度量化层选择方法,在ResNet和BERT上以4位与2位混合精度恢复全精度性能,并显著减少计算时间。

摘要:

为了实现高效的神经网络推理,理想的情况是以最简单的网络达到最先进的精度,同时需要最少的计算、内存和功耗。将网络量化为较低精度是简化网络的一种强大技术。由于网络的每一层对量化的敏感度可能不同,混合精度量化方法选择性地调整各个层的精度,以在任务性能(例如精度)上实现最小的下降。为了估计层精度选择对任务性能的影响,本文引入了两种方法:i) 熵近似引导的层选择(EAGL)速度较快,利用权重分布的熵;ii) 精度感知的层精度选择(ALPS)简单直接,依赖于层精度降低后的单轮微调。利用EAGL和ALPS进行层精度选择,在ResNet-50、ResNet-101和BERT-base Transformer网络上,通过混合使用4位和2位层恢复了全精度精度,展示了在整个精度-吞吐量前沿上增强的性能。在若干可比较的对比中,这些技术表现出优于现有技术的性能。值得注意的是,这一成就是在达到解决方案所需的计算时间显著减少的情况下实现的。

英文摘要:

For efficient neural network inference, it is desirable to achieve state-of-the-art accuracy with the simplest networks requiring the least computation, memory, and power. Quantizing networks to lower precision is a powerful technique for simplifying networks. As each layer of a network may have different sensitivity to quantization, mixed precision quantization methods selectively tune the precision of individual layers to achieve a minimum drop in task performance (e.g., accuracy). To estimate the impact of layer precision choice on task performance, two methods are introduced: i) Entropy Approximation Guided Layer selection (EAGL) is fast and uses the entropy of the weight distribution, and ii) Accuracy-aware Layer Precision Selection (ALPS) is straightforward and relies on single epoch fine-tuning after layer precision reduction. Using EAGL and ALPS for layer precision selection, full-precision accuracy is recovered with a mix of 4-bit and 2-bit layers for ResNet-50, ResNet-101 and BERT-base transformer networks, demonstrating enhanced performance across the entire accuracy-throughput frontier. The techniques demonstrate better performance than existing techniques in several commensurate comparisons. Notably, this is accomplished with significantly lesser computational time required to reach a solution.

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

↑