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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Hardware Accelerator for Deep Neural Networks on Edge Devices Based on RISC-V Open Standard Instruction Set Architecture

Afidalina Tumian, Yen Ting Ng, Eric Tatt Wei Ho
1 citations
Advanced Memory and Neural Computing
0.21
article

Hardware Accelerator for Deep Neural Networks on Edge Devices Based on RISC-V Open Standard Instruction Set Architecture

Afidalina Tumian, Yen Ting Ng, Eric Tatt Wei Ho
article en
1 citations

Abstract

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.

Petronas (Malaysia) (MY), Universiti Teknologi Petronas (MY)
Openalex Percentile: Top 43%
Advanced Memory and Neural Computing
0.21
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.