Applying Piecewise Linear Approximation for DNN Non-Linear Activation Functions to Bfloat16 MACs

被引:2
|
作者
Kim, Seok Young [1 ]
Kim, Chang Hyun [1 ]
Kim, Seon Wook [1 ]
机构
[1] Korea Univ Seoul, Sch Elect & Comp Engn, Seoul, South Korea
关键词
Deep Neural Networks; Activation function; Piecewise Linear Approximation; Bfloat16;
D O I
10.1109/ICEIC51217.2021.9369759
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
The efficient implementation of inference engines for the DNN (Deep Neural Network) execution requires low power consumption and a small area. However, the activation functions' implementation is challenging since they require considerable computing resources due to their non-linearity. In this paper, we study the non-linearity of the functions and show that only one MAC execution using our PLA (Piecewise Linear Approximation) scheme is sufficient to guarantee the accuracy in bfloat16. For the evaluation, we applied our proposal to our in-house bfloat16 MACs and achieved that our results were less than 1 LSB difference from ideal values on average.
引用
收藏
页数:4
相关论文
共 50 条
  • [1] An Efficient Piecewise Linear Approximation of Non-linear Operations for Transformer Inference
    Lu, Haodong
    Mei, Qichang
    Wang, Kun
    [J]. 2023 IEEE 31ST ANNUAL INTERNATIONAL SYMPOSIUM ON FIELD-PROGRAMMABLE CUSTOM COMPUTING MACHINES, FCCM, 2023, : 206 - 206
  • [2] RECURSIVE PIECEWISE-LINEAR APPROXIMATION METHODS FOR NON-LINEAR NETWORKS
    MEYER, RR
    [J]. LECTURE NOTES IN ECONOMICS AND MATHEMATICAL SYSTEMS, 1982, 199 : 315 - 322
  • [3] Learning continuous piecewise non-linear activation functions for deep neural networks
    Gao, Xinchen
    Li, Yawei
    Li, Wen
    Duan, Lixin
    Van Gool, Luc
    Benini, Luca
    Magno, Michele
    [J]. 2023 IEEE INTERNATIONAL CONFERENCE ON MULTIMEDIA AND EXPO, ICME, 2023, : 1835 - 1840
  • [4] Approximation by means of piecewise linear functions
    Kacsó D.P.
    [J]. Results in Mathematics, 1999, 35 (1-2) : 89 - 102
  • [5] Efficient continuous piecewise linear regression for linearising univariate non-linear functions
    Warwicker, John Alasdair
    Rebennack, Steffen
    [J]. IISE TRANSACTIONS, 2024,
  • [6] PIECEWISE NON-LINEAR HOMOTOPIES
    LENTINI, M
    REINOZA, A
    [J]. LECTURE NOTES IN MATHEMATICS, 1983, 1005 : 162 - 169
  • [7] A Method for Calculating the Derivative of Activation Functions Based on Piecewise Linear Approximation
    Liao, Xuan
    Zhou, Tong
    Zhang, Longlong
    Hu, Xiang
    Peng, Yuanxi
    [J]. ELECTRONICS, 2023, 12 (02)
  • [8] APPROXIMATION OF FUNCTIONS BY POLYNOMIALS SATISFYING NON-LINEAR RELATIONS
    BUROV, VN
    [J]. DOKLADY AKADEMII NAUK SSSR, 1961, 138 (03): : 515 - &
  • [9] NON-LINEAR REGULATION - THE PIECEWISE LINEAR-APPROACH
    SONTAG, ED
    [J]. IEEE TRANSACTIONS ON AUTOMATIC CONTROL, 1981, 26 (02) : 346 - 358
  • [10] Multiplierless piecewise linear approximation of elementary functions
    Gustafsson, Oscar
    Johanson, Kenny
    [J]. 2006 FORTIETH ASILOMAR CONFERENCE ON SIGNALS, SYSTEMS AND COMPUTERS, VOLS 1-5, 2006, : 1678 - +