Efficient Implementation of Activation Functions for LSTM accelerators

被引:5
|
作者
Chong, Yi Sheng [1 ,2 ]
Goh, Wang Ling [1 ]
Ong, Yew Soon [3 ]
Nambiar, Vishnu P. [4 ]
Anh Tuan Do [4 ]
机构
[1] Nanyang Technol Univ NTU, Sch Elect & Elect Engn, Singapore, Singapore
[2] Nanyang Technol Univ, Interdisciplinary Grad Programme, Energy Res Inst, Singapore, Singapore
[3] Nanyang Technol Univ, Sch Comp Sci & Engn, Singapore, Singapore
[4] ASTAR, Inst Microelect, Singapore, Singapore
关键词
DESIGN;
D O I
10.1109/VLSI-SoC53125.2021.9606971
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Activation functions such as hyperbolic tangent (tanh) and logistic sigmoid (sigmoid) are critical computing elements in a long short term memory (LSTM) cell and network. These activation functions are non-linear, leading to challenges in their hardware implementations. Area-efficient and high performance hardware implementation of these activation functions thus becomes crucial to allow high throughput in a LSTM accelerator. In this work, we propose an approximation scheme which is suitable for both tanh and sigmoid functions. The proposed hardware for sigmoid function is 8.3 times smaller than the state-of-the-art, while for tanh function, it is the second smallest design. When applying the approximated tanh and sigmoid of 2% error in a LSTM cell computation, its final hidden state and cell state record errors of 3.1% and 5.8% respectively. When the same approximated functions are applied to a single layer LSTM network of 64 hidden nodes, the accuracy drops by 2.8% only. This proposed small yet accurate activation function hardware is promising to be used in Internet of Things (IoT) applications where accuracy can be traded off for ultra-low power consumption.
引用
收藏
页码:19 / 23
页数:5
相关论文
共 50 条
  • [41] A Twofold Lookup Table Architecture for Efficient Approximation of Activation Functions
    Xie, Yusheng
    Raj, Alex Noel Joseph
    Hu, Zhendong
    Huang, Shaohaohan
    Fan, Zhun
    Joler, Miroslav
    IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, 2020, 28 (12) : 2540 - 2550
  • [42] Neural implementation of complex activation functions for digital VLSI neural networks
    Deville, Y.
    Microelectronics Journal, 1993, 24 (03) : 259 - 262
  • [43] Hardware implementation of neural network with Sigmoidal activation functions using CORDIC
    Tiwari, Vipin
    Khare, Nilay
    MICROPROCESSORS AND MICROSYSTEMS, 2015, 39 (06) : 373 - 381
  • [44] Chronos: Efficient Speculative Parallelism for Accelerators
    Abeydeera, Maleen
    Sanchez, Daniel
    TWENTY-FIFTH INTERNATIONAL CONFERENCE ON ARCHITECTURAL SUPPORT FOR PROGRAMMING LANGUAGES AND OPERATING SYSTEMS (ASPLOS XXV), 2020, : 1247 - 1262
  • [45] An efficient magnetron transmitter for superconducting accelerators
    Kazakevich, G.
    Lebedev, V.
    Yakovlev, V.
    Pavlov, V.
    NUCLEAR INSTRUMENTS & METHODS IN PHYSICS RESEARCH SECTION A-ACCELERATORS SPECTROMETERS DETECTORS AND ASSOCIATED EQUIPMENT, 2016, 839 : 43 - 51
  • [46] A design of Boolean functions resistant to (fast) algebraic cryptanalysis with efficient implementation
    Pasalic, Enes
    CRYPTOGRAPHY AND COMMUNICATIONS-DISCRETE-STRUCTURES BOOLEAN FUNCTIONS AND SEQUENCES, 2012, 4 (01): : 25 - 45
  • [47] An Implementation of Fast memset() Using Hardware Accelerators
    Pusukuri, Kishore
    Gardner, Rob
    Smolens, Jared
    PROCEEDINGS OF THE 2017 SYMPOSIUM ON CLOUD COMPUTING (SOCC '17), 2017, : 636 - 636
  • [48] Energy Efficient Spin-Based Implementation of Neuromorphic Functions in CNNs
    Soni, Sandeep
    Verma, Gaurav
    Nehete, Hemkant
    Kaushik, Brajesh Kumar
    IEEE OPEN JOURNAL OF NANOTECHNOLOGY, 2023, 4 : 102 - 108
  • [49] A design of Boolean functions resistant to (fast) algebraic cryptanalysis with efficient implementation
    Enes Pasalic
    Cryptography and Communications, 2012, 4 : 25 - 45
  • [50] Hardware Accelerators for Cloud Computing: Features and Implementation
    Tirlioglu, Anil
    Demir, Omer Bayram
    Yazar, Alper
    Schmidt, Ece Guran
    29TH IEEE CONFERENCE ON SIGNAL PROCESSING AND COMMUNICATIONS APPLICATIONS (SIU 2021), 2021,