Multi-layer LSTM Parallel Optimization Based on Hardware and Software Cooperation

被引:0
|
作者
Chen, Qingfeng [1 ]
Wu, Jing [1 ]
Huang, Feihu [1 ]
Han, Yu [1 ]
Zhao, Qiming [1 ]
机构
[1] Wuhan Univ Sci & Technol, Sch Comp Sci & Technol, Wuhan 430065, Peoples R China
关键词
LSTM; Software and hardware cooperation; Parallelism; RNN; NLP; COMPRESSION; PREDICTION; SYSTEMS;
D O I
10.1007/978-3-031-10986-7_55
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
LSTM's special gate structure and memory unit make it suitable for solving problems that are related to time series. It has excellent performance in the fields of machine translation and reasoning. However, LSTM also has some shortcomings, such as low parallelism, which leads to insufficient computing speed. Some existing optimization ideas only focus on one of the software and hardware. The former mostly focuses on model accuracy, and CPU accelerated LSTM doesn't dynamically adjust to network characteristics; While the latter can be based on the LSTM model structure. Customized accelerators are often limited by the structure of LSTM and cannot fully utilize the advantages of the hardware. This paper proposed a multi-layer LSTM optimization scheme based on the idea of software and hardware collaboration. We used the pruning by row scheme to greatly reduce the number of parameters while ensuring accuracy, making it adapt to the parallel structure of the hardware. From the perspective of software, the multi-layer LSTM module was analyzed. It was concluded that some neurons in different layers could be calculated in parallel. Therefore, this paper redesigned the computational order of the multilayer LSTM so that the model guaranteed its own timing properly and it was hardware friendly at the same time. Experiments showed that our throughput increased by 10x compared with the CPU implementation. Compared with other hardware accelerators, the throughput increased by 1.2x-1.4x, and the latency and resource utilization had also been improved.
引用
收藏
页码:681 / 693
页数:13
相关论文
共 50 条
  • [31] Financial Distress Prediction based on Multi-Layer Perceptron with Parameter Optimization
    Bannany, Magdi El
    Khedr, Ahmed M.
    Sreedharan, Meenu
    Kanakkayil, Sakeena
    IAENG International Journal of Computer Science, 2021, 48 (03) : 1 - 12
  • [32] Empirical Evaluation and Optimization of Hardware-Trojan Classification for Gate-Level Netlists Based on Multi-Layer Neural Networks
    Hasegawa, Kento
    Yanagisawa, Masao
    Togawa, Nozomu
    IEICE TRANSACTIONS ON FUNDAMENTALS OF ELECTRONICS COMMUNICATIONS AND COMPUTER SCIENCES, 2018, E101A (12) : 2320 - 2326
  • [33] Manufacturing process modeling and optimization based on multi-layer perceptron network
    Louisiana State Univ, Baton Rouge, United States
    J Manuf Sci Eng Trans ASME, 1 (109-119):
  • [34] A Parallel Algorithm Based on Regularized Lattice Boltzmann Method for Multi-Layer Grids
    Liu, Zhixiang
    Zhao, Yunhao
    Zhu, Wenhao
    Wang, Yang
    APPLIED SCIENCES-BASEL, 2024, 14 (16):
  • [35] CASCADE ATTENTION FUSION FOR FINE-GRAINED IMAGE CAPTIONING BASED ON MULTI-LAYER LSTM
    Wang, Shuang
    Meng, Yun
    Gu, Yu
    Zhang, Lei
    Ye, Xiutiao
    Tian, Jingxian
    Jiao, Licheng
    2021 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING (ICASSP 2021), 2021, : 2245 - 2249
  • [36] Application load forecasting method based on multi-layer bidirectional LSTM and improved PSO algorithm
    Cai L.
    Zhou H.-C.
    Bai H.
    Cai Z.-G.
    Yin K.-T.
    Bei Y.-J.
    Zhejiang Daxue Xuebao (Gongxue Ban)/Journal of Zhejiang University (Engineering Science), 2020, 54 (12): : 2414 - 2422
  • [37] Throughput Enhancement Schemes for IEEE 802.11ah based on Multi-layer Cooperation
    Ji, Baofeng
    Chen, Sudan
    Song, Kang
    Li, Chunguo
    Chen, Hongjun
    Li, Zhiqun
    2015 INTERNATIONAL WIRELESS COMMUNICATIONS & MOBILE COMPUTING CONFERENCE (IWCMC), 2015, : 1112 - 1116
  • [38] Text Sentiment Analysis Based on Multi-Layer Bi-Directional LSTM with a Trapezoidal Structure
    He, Zhengfang
    Dumdumaya, Cristina E.
    Machica, Ivy Kim D.
    INTELLIGENT AUTOMATION AND SOFT COMPUTING, 2023, 37 (01): : 639 - 654
  • [39] Optimization of the multi-layer die for support shaft
    Huang, Xiaohui
    Zhang, Min
    Wang, Yao
    Zhao, Xinhai
    ADVANCED MANUFACTURING TECHNOLOGY, PTS 1, 2, 2011, 156-157 : 1665 - +
  • [40] Research on electricity consumption forecasting model based on wavelet transform and multi-layer LSTM model
    Chi Dianwei
    ENERGY REPORTS, 2022, 8 : 220 - 228