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

PikeLPN:缓解低精度神经网络中被忽视的低效问题

PikeLPN: Mitigating Overlooked Inefficiencies of Low-Precision Neural Networks

Brown University(布朗大学);Google(谷歌公司)

Marina Neseem, Conor McCullough, Randy Hsin, Chas Leichner, Shan Li, In Suk Chong, Andrew G. Howard, Lukasz Lew, Sherief Reda, Ville-Mikko Rautio, Daniele Moro

AI总结:

本文提出PikeLPN模型及ACEv2指标,通过QuantNorm、双重量化和分布异构量化等技术解决低精度神经网络中非量化逐元素操作导致的效率瓶颈,实现效率-精度帕累托最优,效率提升达3倍。

摘要:

低精度量化因其在神经网络优化中的有效性而受到认可。我们的分析表明,在参数化激活函数、批归一化和量化缩放等层中普遍存在的非量化逐元素操作主导了低精度模型的推理成本。这些非量化逐元素操作在诸如算术计算工作量(ACE)等最先进的效率指标中通常被忽视。在本文中,我们提出了ACEv2——ACE的扩展版本,它能更好地与量化模型的推理成本及其在机器学习硬件上的能耗保持一致。此外,我们引入了PikeLPN,该模型通过对逐元素操作和乘加操作同时应用量化来解决这些效率问题。特别地,我们提出了一种名为QuantNorm的新型批归一化层量化技术,该技术允许在不损害模型性能的情况下量化批归一化参数。此外,我们提出应用双重量化,即对量化缩放参数进行量化。进一步地,我们通过引入分布异构量化来识别并解决可分离卷积层中的分布不匹配问题,从而使其能够被量化到低精度。PikeLPN在效率-精度权衡上实现了帕累托最优,与最先进的低精度模型相比,效率提升高达3倍。

英文摘要:

Low-precision quantization is recognized for its efficacy in neural network optimization. Our analysis reveals that non-quantized elementwise operations which are prevalent in layers such as parameterized activation functions, batch normalization, and quantization scaling dominate the inference cost of low-precision models. These non-quantized elementwise operations are commonly overlooked in SOTA efficiency metrics such as Arithmetic Computation Effort (ACE). In this paper, we propose ACEv2 - an extended version of ACE which offers a better alignment with the inference cost of quantized models and their energy consumption on ML hardware. Moreover, we introduce PikeLPN, a model that addresses these efficiency issues by applying quantization to both elementwise operations and multiply-accumulate operations. In particular, we present a novel quantization technique for batch normalization layers named QuantNorm which allows for quantizing the batch normalization parameters without compromising the model performance. Additionally, we propose applying Double Quantization where the quantization scaling parameters are quantized. Furthermore, we recognize and resolve the issue of distribution mismatch in Separable Convolution layers by introducing Distribution-Heterogeneous Quantization which enables quantizing them to low-precision. PikeLPN achieves Pareto-optimality in efficiency-accuracy trade-off with up to 3X efficiency improvement compared to SOTA low-precision models.

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

↑