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 条
  • [21] Improvement and application of multi-layer LSTM algorithm based on spatial-temporal correlation
    Zhao Y.
    Zhao, Yanming (zhaoyanming008@163.com), 1600, International Information and Engineering Technology Association (25): : 49 - 58
  • [22] REAL-TIME DETERMINISTIC PREDICTION OF SHIP MOTION BASED ON MULTI-LAYER LSTM
    He, Guolian
    Dong, Guohua
    Yao, Chaobang
    Sun, Xiaoshuai
    PROCEEDINGS OF ASME 2023 42ND INTERNATIONAL CONFERENCE ON OCEAN, OFFSHORE & ARCTIC ENGINEERING, OMAE2023, VOL 7, 2023,
  • [23] Appliance Classification by Power Signal Analysis Based on Multi-Feature Combination Multi-Layer LSTM
    Kim, Jin-Gyeom
    Lee, Bowon
    ENERGIES, 2019, 12 (14)
  • [24] Hardware description of multi-layer perceptrons with different abstraction levels
    Ortigosa, E. M.
    Canas, A.
    Ros, E.
    Ortigosa, P. M.
    Mota, S.
    Diaz, J.
    MICROPROCESSORS AND MICROSYSTEMS, 2006, 30 (07) : 435 - 444
  • [25] A Multi-Layer Hardware Trojan Protection Framework for IoT Chips
    Dong, Chen
    He, Guorong
    Liu, Ximeng
    Yang, Yang
    Guo, Wenzhong
    IEEE ACCESS, 2019, 7 : 23628 - 23639
  • [26] A Scalable Hardware Architecture for Multi-Layer Spiking Neural Networks
    Ying, Zhaozhong
    Luo, Chong
    Zhu, Xiaolei
    2017 IEEE 12TH INTERNATIONAL CONFERENCE ON ASIC (ASICON), 2017, : 839 - 842
  • [27] Multi-layer Structure Model and Configuration Mechanism of Ontogenetic Hardware
    Ma, Xiao
    Li, Yue
    PROCEEDINGS OF THE 2016 12TH WORLD CONGRESS ON INTELLIGENT CONTROL AND AUTOMATION (WCICA), 2016, : 660 - 665
  • [28] Manufacturing process modeling and optimization based on Multi-Layer Perceptron network
    Liao, TW
    Chen, LJ
    JOURNAL OF MANUFACTURING SCIENCE AND ENGINEERING-TRANSACTIONS OF THE ASME, 1998, 120 (01): : 109 - 119
  • [29] Software implementation approach for fingertip detection based on Color Multi-Layer GMM
    Yamashita, Yoshihiro
    Nishitani, Takao
    Yamaguchi, Toru
    Oh, Bunken
    18TH IEEE INTERNATIONAL SYMPOSIUM ON CONSUMER ELECTRONICS (ISCE 2014), 2014,
  • [30] Optimization and mathematical modelling of multi-layer beam based on sinusoidal theory
    Wang, Bin
    Yan, Gongxing
    Allahyari, Seyedmahmoodreza
    STRUCTURAL ENGINEERING AND MECHANICS, 2021, 79 (01) : 109 - 116