{"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.