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

用于边缘端推理的低精度混合计算模型

Low-Precision Mixed-Computation Models for Inference on Edge

University of Southern California(南加州大学)

Seyedarmin Azizi, Mahdi Nazemi, Mehdi Kamal, Massoud Pedram

AI总结:

本文提出面向边缘推理的Posit4/FixP4混合低精度计算方法,通过权重敏感度分配数制、Posit梯度近似及高效MAC硬件,在视觉和语言模型上以0.19%能耗实现平均1.5%准确率提升。

摘要:

本文提出了一种面向边缘应用的混合计算神经网络处理方法,该方法结合了低精度(低位宽)Posit和低精度定点(FixP)数制。这种混合计算方法采用在零附近具有更高精度的4位Posit(Posit4)来表示高敏感度权重,同时使用4位FixP(FixP4)来表示其他权重。文中提出了一种用于分析权重重要性和量化误差的启发式方法,以便为不同权重分配合适的数制。此外,还引入了一种用于Posit表示的梯度近似,以提高反向传播过程中权重更新的质量。由于完全基于Posit的计算能耗较高,神经网络运算以FixP或Posit/FixP方式执行。文中给出了一种MAC运算的高效硬件实现,其第一个操作数为Posit,第二个操作数和累加器采用FixP。所提出的低精度混合计算方法的有效性在视觉和语言模型上得到了广泛评估。结果表明,平均而言,混合计算的准确率比FixP高约1.5%,而能量开销仅为0.19%。

英文摘要:

This paper presents a mixed-computation neural network processing approach for edge applications that incorporates low-precision (low-width) Posit and low-precision fixed point (FixP) number systems. This mixed-computation approach employs 4-bit Posit (Posit4), which has higher precision around zero, for representing weights with high sensitivity, while it uses 4-bit FixP (FixP4) for representing other weights. A heuristic for analyzing the importance and the quantization error of the weights is presented to assign the proper number system to different weights. Additionally, a gradient approximation for Posit representation is introduced to improve the quality of weight updates in the backpropagation process. Due to the high energy consumption of the fully Posit-based computations, neural network operations are carried out in FixP or Posit/FixP. An efficient hardware implementation of a MAC operation with a first Posit operand and FixP for a second operand and accumulator is presented. The efficacy of the proposed low-precision mixed-computation approach is extensively assessed on vision and language models. The results show that, on average, the accuracy of the mixed-computation is about 1.5% higher than that of FixP with a cost of 0.19% energy overhead.

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

↑