Hardware Accelerator for Deep Neural Networks on Edge Devices Based on RISC-V Open Standard Instruction Set Architecture
Recent advances in transformer neural network architecture are constrained by their substantial computational demands, which pose significant challenges in edge computing environments. In these limited network connectivity settings, local data processing on resource-limited embedded processors becomes necessary. We designed a hardware custom function unit (CFU) to accelerate neural network computation in edge computing environments. Our circuit functions as a co-processor to an embedded processor and implements new custom instructions compatible with the Reduced Instruction Set Computer <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$5^{\mathrm{t}\mathrm{h}}$</tex> Generation (RISC- V) Open Standard Instruction Set Architecture (ISA). We implemented a systolic array of programmable processing elements (PE) with local cache to offload computation of dense matrix multiplication from the embedded processor. Through simulation, we achieved upto threefold improvement in processing speed for matrix multiply-and-accumulate operation of transformer models with three encoder layers and 256 dimensions. Our design provides a pathway to seamlessly integrate hardware acceleration to enhance inference computation in embedded processors by leveraging on the advantages of open standard ISA. With defined interfaces to a RISC- V processor core, our hardware can be imported as an IP block in programmable or application specific design flows. On the software side, dense matrix multiplications instructions are replaced with our custom instructions while the rest of the instruction compilation and assembly steps can continue to leverage on open-source software tools that convert Python ONNX models to RISC-V instructions.
Authors
- Afidalina Tumian
- Yen Ting Ng (ORCID: https://orcid.org/0000-0003-3050-443X)
- Eric Tatt Wei Ho (ORCID: https://orcid.org/0000-0002-7590-1028)
Institutions
- Petronas (Malaysia) (MY)
- Universiti Teknologi Petronas (MY)
Publication Details
- Published
- 2024-12-01
- DOI
- https://doi.org/10.1109/tencon61640.2024.10902763
- Citations
- 1
- Primary Topic
- Advanced Memory and Neural Computing
- Type
- article
- Field-Weighted Citation Impact
- 0.21