基於RISC-V客製擴展指令集實現之圖像訊號處理神經網路推論加速器
A Hardware Implementation of Image Signal Processing Neural Network Using RISC-V Custom ISA Extension
摘要
在邊緣裝置上有效地推斷深度學習模型是相當具有挑戰性的,因為低成本和低功耗的限制通常限制了部署大型模型的可行性。然而,最近在輕量級模型研究方面的進展以及修剪和量化技術的改進已經緩解了推論延遲、內存使用和功耗等問題。因此,在邊緣設備上實現深度學習已經變得可行。
這篇研究針對AI-ISP神經網絡模型CSANet設計硬體加速,CSANet可以將相機感測器的原始數據轉換為RGB格式,替代相機系統中的ISP Pipeline。為了在FPGA上設計一個靈活、高性能且低功耗的AI-ISP加速器,我們使用了針對輕量裝置機器學習的CFU-Playground框架,將加速器設計為RISC-V的擴增指令集。所提出的RISC-V自定義指令加速硬體支持普通卷積、轉置卷積、逐通道卷積和部分逐元素操作,可以加速CSANet的計算熱點。在Digilent Nexys Video開發板(Artix-7 XC7A200T)上,所提出的CSANet加速器相對於僅使用RISC-V CPU實現了79.7倍的加速,並且在能效方面平均表現出27.8倍的改進。
這篇研究針對AI-ISP神經網絡模型CSANet設計硬體加速,CSANet可以將相機感測器的原始數據轉換為RGB格式,替代相機系統中的ISP Pipeline。為了在FPGA上設計一個靈活、高性能且低功耗的AI-ISP加速器,我們使用了針對輕量裝置機器學習的CFU-Playground框架,將加速器設計為RISC-V的擴增指令集。所提出的RISC-V自定義指令加速硬體支持普通卷積、轉置卷積、逐通道卷積和部分逐元素操作,可以加速CSANet的計算熱點。在Digilent Nexys Video開發板(Artix-7 XC7A200T)上,所提出的CSANet加速器相對於僅使用RISC-V CPU實現了79.7倍的加速,並且在能效方面平均表現出27.8倍的改進。
Effectively inferring deep learning models on edge devices is quite challenging, as the low cost and low power constraints often limit the feasibility of deploying large models. However, recent advancements in lightweight model research and improvements in pruning and quantization techniques have mitigated issues such as latency, memory usage, and power consumption. As a result, the implementation of deep learning on edge devices has become feasible.
This work focuses on the hardware acceleration of an AI-ISP (image signal processing) neural network, namely CSANet, which computes images from raw data to RGB format. To design a flexible, high-performance, and low-power AI-ISP accelerator on FPGA, we apply the RISC-V ISA extension with the CFU-Playground framework specified for tiny-ML. The proposed RISC-V custom instructions support normal convolution, transposed convolution, depth-wise convolution, and partial element-wise operations, which can accelerate the computation hotspots of the CSANet. Applying with the FPGA implementation, on the Digilent Nexys Video development board (Artix-7 XC7A200T), the proposed CSANet accelerator achieves a 79.7× speedup and demonstrates a 27.8× improvement in energy efficiency on average compared to RISC-V CPU-only.
This work focuses on the hardware acceleration of an AI-ISP (image signal processing) neural network, namely CSANet, which computes images from raw data to RGB format. To design a flexible, high-performance, and low-power AI-ISP accelerator on FPGA, we apply the RISC-V ISA extension with the CFU-Playground framework specified for tiny-ML. The proposed RISC-V custom instructions support normal convolution, transposed convolution, depth-wise convolution, and partial element-wise operations, which can accelerate the computation hotspots of the CSANet. Applying with the FPGA implementation, on the Digilent Nexys Video development board (Artix-7 XC7A200T), the proposed CSANet accelerator achieves a 79.7× speedup and demonstrates a 27.8× improvement in energy efficiency on average compared to RISC-V CPU-only.