Optimizing CNN Computation Using RISC-V Custom Instruction Sets for Edge Platforms

计算机科学 精简计算指令集 计算 并行计算 指令集 GSM演进的增强数据速率 算法 人工智能
作者
Shihang Wang,Xingbo Wang,Zhiyuan Xu,Bingzhen Chen,Chenxi Feng,Qi Wang,Terry Tao Ye
出处
期刊:IEEE Transactions on Computers [Institute of Electrical and Electronics Engineers]
卷期号:73 (5): 1371-1384 被引量:26
标识
DOI:10.1109/tc.2024.3362060
摘要

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 F (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.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
liunahan完成签到 ,获得积分10
刚刚
搜集达人应助安逸1采纳,获得10
刚刚
freya发布了新的文献求助10
刚刚
scimaker发布了新的文献求助10
1秒前
洋子发布了新的文献求助10
1秒前
1秒前
1秒前
1秒前
慕青应助from采纳,获得10
2秒前
2秒前
2秒前
李某某发布了新的文献求助10
2秒前
wdccx完成签到,获得积分10
2秒前
ZJR发布了新的文献求助20
3秒前
隐形曼青应助jun采纳,获得10
3秒前
Pioneer完成签到,获得积分10
3秒前
3秒前
樱铃发布了新的文献求助10
4秒前
长情的语风完成签到,获得积分10
4秒前
blue完成签到,获得积分10
4秒前
淡定的傲薇应助hh采纳,获得20
4秒前
wjp发布了新的文献求助10
4秒前
beninsect发布了新的文献求助10
4秒前
陈陈陈发布了新的文献求助10
4秒前
5秒前
5秒前
渡人舟应助无一采纳,获得10
5秒前
6秒前
dd完成签到,获得积分10
6秒前
畔畔发布了新的文献求助30
6秒前
思源应助DavidSun采纳,获得10
6秒前
ustinian发布了新的文献求助10
6秒前
6秒前
6秒前
7秒前
7秒前
7秒前
flowercat发布了新的文献求助10
7秒前
BG发布了新的文献求助10
8秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Essentials of Carbohydrate Chemistry and Biochemistry, 4th Edition 800
Navigating Normative Orders. Interdisciplinary Perspectives 800
Organizational Behavior 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
CLSI VET01S-2024 Performance Standards for Antimicrobial Disk and Dilution Susceptibility Tests for Bacteria Isolated From Animals (7th Ed) 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 化学工程 工程类 有机化学 物理 复合材料 生物化学 内科学 细胞生物学 基因 遗传学 免疫学 冶金 光电子学 癌症研究
热门帖子
关注 科研通微信公众号,转发送积分 7762802
求助须知:如何正确求助?哪些是违规求助? 9307469
关于积分的说明 20300598
捐赠科研通 7347439
什么是DOI,文献DOI怎么找? 3313806
关于科研通互助平台的介绍 2463672
邀请新用户注册赠送积分活动 2327917