arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.03904cs.ARcs.AIcs.LG
收藏

RedMule:一种用于灵活且高能效片上线性代数与TinyML训练加速的混合精度矩阵-矩阵运算引擎

RedMule: A Mixed-Precision Matrix-Matrix Operation Engine for Flexible and Energy-Efficient On-Chip Linear Algebra and TinyML Training Acceleration

University of Bologna(博洛尼亚大学);ETH Zurich(苏黎世联邦理工学院)

Yvan Tortorella, Luca Bertaccini, Luca Benini, Davide Rossi, Francesco Conti

AI总结:

本文提出RedMulE,一种混合精度浮点GEMM加速器,集成于PULP集群,在22nm工艺下实现高达1.67 TFLOPS/W能效,支持FP16/FP8,实现TinyML设备端训练。

摘要:

TinyML(即在几十毫瓦功率预算下的近传感器机器学习)日益受到关注,目前正推动实现TinyML级别的训练,而不仅仅是推理。现有的训练算法基于各种形式的误差和梯度反向传播,依赖浮点矩阵运算以满足精度和动态范围要求。迄今为止,这些运算的能量和功耗成本被认为对于TinyML场景过高。本文解决了在几毫瓦功率预算下进行近传感器训练这一开放挑战,并提出了RedMulE(降精度矩阵乘法引擎),这是一种为多精度浮点通用矩阵-矩阵运算(GEMM-Ops)加速而设计的低功耗专用加速器,支持FP16以及混合FP8格式,其{符号,指数,尾数}分别为({1,4,3}和{1,5,2})。我们将RedMule集成到一个包含八个节能RISC-V核心的并行超低功耗(PULP)集群中,这些核心共享紧密耦合的数据存储器,并在22纳米工艺下实现了该系统。在其最佳能效点(@470 MHz,0.65 V),RedMulE增强的PULP集群在常规通用矩阵-矩阵乘法(GEMM)中分别达到755 GFLOPS/W和920 GFLOPS/W,在执行GEMM-Ops时,对于FP16和FP8输入/输出张量,分别高达1.19 TFLOPS/W和1.67 TFLOPS/W。在其最佳性能点(@613 MHz,0.8 V),RedMulE在FP16和FP8下分别达到高达58.5 GFLOPS和117 GFLOPS,计算元件阵列利用率达99.4%,平均功耗低于60 mW,从而在TinyML应用场景中实现深度学习模型的设备端训练,同时保持高效处理其他常见线性代数问题的灵活性。

英文摘要:

The increasing interest in TinyML, i.e., near-sensor machine learning on power budgets of a few tens of mW, is currently pushing toward enabling TinyML-class training as opposed to inference only. Current training algorithms, based on various forms of error and gradient backpropagation, rely on floating-point matrix operations to meet the precision and dynamic range requirements. So far, the energy and power cost of these operations has been considered too high for TinyML scenarios. This paper addresses the open challenge of near-sensor training on a few mW power budget and presents RedMulE - Reduced-Precision Matrix Multiplication Engine, a low-power specialized accelerator conceived for multi-precision floating-point General Matrix-Matrix Operations (GEMM-Ops) acceleration, supporting FP16, as well as hybrid FP8 formats, with {sign, exponent, mantissa}=({1,4,3}, {1,5,2}). We integrate RedMule into a Parallel Ultra-Low-Power (PULP) cluster containing eight energy-efficient RISC-V cores sharing a tightly-coupled data memory and implement the resulting system in a 22 nm technology. At its best efficiency point (@ 470 MHz, 0.65 V), the RedMulE-augmented PULP cluster achieves 755 GFLOPS/W and 920 GFLOPS/W during regular General Matrix-Matrix Multiplication (GEMM), and up to 1.19 TFLOPS/W and 1.67 TFLOPS/W when executing GEMM-Ops, respectively, for FP16 and FP8 input/output tensors. In its best performance point (@ 613 MHz, 0.8 V), RedMulE achieves up to 58.5 GFLOPS and 117 GFLOPS for FP16 and FP8, respectively, with 99.4% utilization of the array of Computing Elements and consuming less than 60 mW on average, thus enabling on-device training of deep learning models in TinyML application scenarios while retaining the flexibility to tackle other classes of common linear algebra problems efficiently.

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

↑