IEEE Transactions on Computers · 2024 · 24 citations · 18 references
EngineeringComputer EngineeringComputer ScienceComputer ArchitectureEdge ComputingField-programmable Gate ArraysAccelerator ArchitectureHardware AccelerationInstruction Set ArchitectureInstruction-level ParallelismDeep Learning AccelerationDeep Learning AcceleratorsInline AssemblyMicroarchitectural OptimizationOverhead ReductionRisc ArchitecturesRisc-v Core DesignSimd Execution
Benefit from the custom instruction extension capabilities, RISC-V architecture can be optimized for many domain-specific applications. In this paper, we propose seven RISC-V SIMD (single instruction multiple data) custom instructions that can significantly optimize the convolution, activation and pool operations in CNN inference computation. More specifically, instruction CONV23 can greatly speed up the operation of <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">F</i> (2 × 2, 3 × 3). With the adoption of Winograd algorithm, the number of multiplications can be reduced from 36 to 16, and the execution time is also reduced from 140 to 21 clock cycles. These custom instructions can be executed in batch mode within the acceleration module where the immediate data can be reused, so the latency and energy overhead associated with excess memory accesses can be eliminated. Using inline assembler in C language, the custom instructions can be called and compiled together with C source code. A revised RISC-V processor, RI5CY-Accel is constructed on FPGA to accommodate these custom instructions. Revised LeNet-5, VGG16 and ResNet18 model; called LeNet-Accel, VGG16-Accel and ResNet18-Accel are also optimized based on RI5CY-Accel architecture. Benchmark experiments demonstrated that the inference of LeNet-Accel, VGG16-Accel and ResNet18-Accel based on RI5CY-Accel can greatly reduce the execution latency by over 76.6%, 88.8% and 87.1%, with the total energy consumption saving of 74.8%, 87.8% and 85.1% respectively.
18
Deep Residual Learning for Image Recognition
Kaiming He, Xiangyu Zhang, Shaoqing Ren et al. · 2016 · 222.1K citations · Full text
Optimizing FPGA-based Accelerator Design for Deep Convolutional Neural Networks
Chen Zhang, Peng Li, Guangyu Sun et al. · 2015 · 2.1K citations
DaDianNao: A Machine-Learning Supercomputer
Yunji Chen, Tao Luo, Shaoli Liu et al. · 2014 · 1.5K citations
Fast Algorithms for Convolutional Neural Networks
Andrew Lavin, Scott Gray · 2016 · 917 citations