结构化稀疏Bi-LSTM推理的可配置FPGA加速器

Shouliang Guo, Chao Fang, Jun Lin, Zhongfeng Wang
{"title":"结构化稀疏Bi-LSTM推理的可配置FPGA加速器","authors":"Shouliang Guo, Chao Fang, Jun Lin, Zhongfeng Wang","doi":"10.1109/socc49529.2020.9524784","DOIUrl":null,"url":null,"abstract":"To deploy Bi-directional Long Short-Term Memory (Bi-LSTM) on resource-constrained embedded devices, this work presents a configurable FPGA-based Bi-LSTM accelerator enabling structured compression. Firstly, a dense Bi-LSTM model is thoroughly slimed by a hybrid quantization scheme and a structured top-k pruning. Secondly, the energy consumption on external memory access is significantly reduced by the proposed row-reuse computing pattern. Finally, the proposed accelerator is capable of handling a structured sparse Bi-LSTM model benefitting from the algorithm-hardware co-design workflow. It is also flexible to perform inference tasks on Bi-LSTM models with any feature dimension, sequence length, and number of layers. Implemented on the Intel Cyclone V SXC5 SoC FPGA platform, the proposed accelerator can achieve 189.69 GOPs on structured sparse Bi-LSTM networks without batching. Compared with the implementations on CPU and GPU, the low-cost FPGA accelerator achieves 43.5x and 6.3x speedup on latency, 520.9x and 46.5 x improvement on energy efficiency, respectively.","PeriodicalId":114740,"journal":{"name":"2020 IEEE 33rd International System-on-Chip Conference (SOCC)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-09-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"A Configurable FPGA Accelerator of Bi-LSTM Inference with Structured Sparsity\",\"authors\":\"Shouliang Guo, Chao Fang, Jun Lin, Zhongfeng Wang\",\"doi\":\"10.1109/socc49529.2020.9524784\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"To deploy Bi-directional Long Short-Term Memory (Bi-LSTM) on resource-constrained embedded devices, this work presents a configurable FPGA-based Bi-LSTM accelerator enabling structured compression. Firstly, a dense Bi-LSTM model is thoroughly slimed by a hybrid quantization scheme and a structured top-k pruning. Secondly, the energy consumption on external memory access is significantly reduced by the proposed row-reuse computing pattern. Finally, the proposed accelerator is capable of handling a structured sparse Bi-LSTM model benefitting from the algorithm-hardware co-design workflow. It is also flexible to perform inference tasks on Bi-LSTM models with any feature dimension, sequence length, and number of layers. Implemented on the Intel Cyclone V SXC5 SoC FPGA platform, the proposed accelerator can achieve 189.69 GOPs on structured sparse Bi-LSTM networks without batching. Compared with the implementations on CPU and GPU, the low-cost FPGA accelerator achieves 43.5x and 6.3x speedup on latency, 520.9x and 46.5 x improvement on energy efficiency, respectively.\",\"PeriodicalId\":114740,\"journal\":{\"name\":\"2020 IEEE 33rd International System-on-Chip Conference (SOCC)\",\"volume\":\"1 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2020-09-08\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2020 IEEE 33rd International System-on-Chip Conference (SOCC)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/socc49529.2020.9524784\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2020 IEEE 33rd International System-on-Chip Conference (SOCC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/socc49529.2020.9524784","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

摘要

为了在资源受限的嵌入式设备上部署双向长短期内存(Bi-LSTM),本研究提出了一种可配置的基于fpga的Bi-LSTM加速器,支持结构化压缩。首先,采用混合量化方案和结构化top-k剪枝对密集Bi-LSTM模型进行了彻底的剪枝;其次,所提出的行重用计算模式显著降低了外部存储器访问的能耗。最后,该加速器能够处理受益于算法-硬件协同设计工作流的结构化稀疏Bi-LSTM模型。它还可以灵活地对具有任何特征维度、序列长度和层数的Bi-LSTM模型执行推理任务。该加速器在Intel Cyclone V SXC5 SoC FPGA平台上实现,在无批处理的结构化稀疏Bi-LSTM网络上实现了189.69 GOPs。与在CPU和GPU上的实现相比,低成本FPGA加速器的延迟加速分别提高了43.5倍和6.3倍,能效分别提高了520.9倍和46.5倍。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
A Configurable FPGA Accelerator of Bi-LSTM Inference with Structured Sparsity
To deploy Bi-directional Long Short-Term Memory (Bi-LSTM) on resource-constrained embedded devices, this work presents a configurable FPGA-based Bi-LSTM accelerator enabling structured compression. Firstly, a dense Bi-LSTM model is thoroughly slimed by a hybrid quantization scheme and a structured top-k pruning. Secondly, the energy consumption on external memory access is significantly reduced by the proposed row-reuse computing pattern. Finally, the proposed accelerator is capable of handling a structured sparse Bi-LSTM model benefitting from the algorithm-hardware co-design workflow. It is also flexible to perform inference tasks on Bi-LSTM models with any feature dimension, sequence length, and number of layers. Implemented on the Intel Cyclone V SXC5 SoC FPGA platform, the proposed accelerator can achieve 189.69 GOPs on structured sparse Bi-LSTM networks without batching. Compared with the implementations on CPU and GPU, the low-cost FPGA accelerator achieves 43.5x and 6.3x speedup on latency, 520.9x and 46.5 x improvement on energy efficiency, respectively.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信