RAMAN:一种面向边缘端推理的可重构稀疏tinyML加速器
RAMAN: A Re-configurable and Sparse tinyML Accelerator for Inference on Edge
AI总结:
针对边缘端DNN推理的资源与延迟约束,本文提出可重构稀疏tinyML加速器RAMAN,采用新型数据流与内存复用技术,在FPGA上实现了更高的推理能效。
摘要:
基于深度神经网络(DNN)的边缘端推理极具挑战性,因为这类计算与数据密集型算法需要在低成本、低功耗的条件下实现,同时还要满足目标应用的延迟约束。DNN固有的激活值和权重稀疏性是可利用的关键优化抓手。本文提出RAMAN——一款面向边缘端推理的可重构稀疏tinyML加速器,其架构设计旨在利用稀疏性来减少芯片面积(存储)、降低功耗并缩短延迟。RAMAN可通过配置支持多种DNN拓扑结构,涵盖不同的卷积层类型以及各类层参数(特征图尺寸和通道数量);还可借助编译期和运行期部署的技术,通过配置实现精度与功耗/延迟之间的权衡。本文阐述了该架构的核心特性,给出了实现结果,并将其与当前最优方案进行了对比。RAMAN采用受Gustavson算法启发的新型数据流,具备最优的输入激活(IA)和输出激活(OA)复用能力,可最大限度减少内存访问和整体数据移动开销。该数据流支持RAMAN在处理单元阵列内本地完成部分和(Psum)规约,从而消除部分和回写流量。此外,本文提出一种通过将输入激活和输出激活复用到同一内存空间来降低峰值激活内存的方法,该方法最多可减少50%的存储需求。RAMAN在低功耗、资源受限的Efinix Ti60 FPGA上实现,占用37.2K个LUT和8.6K个寄存器。通过同时利用权重和激活稀疏性,RAMAN处理MobileNetV1模型全层时的能效为98.47 GOp/s/W,处理DS-CNN模型时的能效为79.68 GOp/s/W。
英文摘要:
Deep Neural Network (DNN) based inference at the edge is challenging as these compute and data-intensive algorithms need to be implemented at low cost and low power while meeting the latency constraints of the target applications. Sparsity, in both activations and weights inherent to DNNs, is a key knob to leverage. In this paper, we present RAMAN, a Re-configurable and spArse tinyML Accelerator for infereNce on edge, architected to exploit the sparsity to reduce area (storage), power as well as latency. RAMAN can be configured to support a wide range of DNN topologies - consisting of different convolution layer types and a range of layer parameters (feature-map size and the number of channels). RAMAN can also be configured to support accuracy vs power/latency tradeoffs using techniques deployed at compile-time and run-time. We present the salient features of the architecture, provide implementation results and compare the same with the state-of-the-art. RAMAN employs novel dataflow inspired by Gustavson's algorithm that has optimal input activation (IA) and output activation (OA) reuse to minimize memory access and the overall data movement cost. The dataflow allows RAMAN to locally reduce the partial sum (Psum) within a processing element array to eliminate the Psum writeback traffic. Additionally, we suggest a method to reduce peak activation memory by overlapping IA and OA on the same memory space, which can reduce storage requirements by up to 50%. RAMAN was implemented on a low-power and resource-constrained Efinix Ti60 FPGA with 37.2K LUTs and 8.6K register utilization. RAMAN processes all layers of the MobileNetV1 model at 98.47 GOp/s/W and the DS-CNN model at 79.68 GOp/s/W by leveraging both weight and activation sparsity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。