Accuracy Controlled Iterative Method For Efficient Sigmoid Function Approximation
Accuracy Controlled Iterative Method For Efficient Sigmoid Function Approximation
f (xi) – yi = (–1)i E
Introduction: The real-time implementation of the neural network (NN) i = 0,1,2.
E = ± max |f (x) – y |
got attention from the last decade [1], and it can be implemented as xl ≤ x ≤ xU
analogue or digital systems. However, the analogue implementation EM = maxi |Ei |
has got drawbacks like thermal drift, less computation accuracy, and EM = mini |Ei |
Authorized licensed use limited to: Carleton University. Downloaded on September 13,2020 at 13:45:21 UTC from IEEE Xplore. Restrictions apply.
where f (xi ) is the discretised non-linear function value and yi is the Table 3: Precision of sigmoid with various bits
approximated function value for each point xi .
Precision Average error Maximum error
exact 2.64 × 10−4 4.99 × 10−4
Accuracy comparison: The comparative results of the proposed method
8 4.6 × 10−3 11.5 × 10−3
and published research are shown in Table 2. It is found that the pro-
10 0.7 × 10−3 2.3 × 10−3
posed method offers less average error compared to other methods.
Moreover, the maximum error is uniformly distributed for each interval 12 0.3 × 10−3 1.3 × 10−3
in the sigmoid function, as shown in Fig. 2. 14 2.6 × 10−4 6.8 × 10−4
16 2.4 × 10−4 5.2 × 10−4
1.0
True
0.8
Approx
distributed
% Error
memory
b-coefficient
x
0.6
0.4
X + Y
distributed
0.2 memory
a-coefficient
Authorized licensed use limited to: Carleton University. Downloaded on September 13,2020 at 13:45:21 UTC from IEEE Xplore. Restrictions apply.
Proc. Midwest Symp. on Circuits and Systems (Cat. No. 98CB36268), 12 Basterretxea, K.: ‘Recursive sigmoidal neurons for adaptive accuracy
Notre Dame, IN, USA, 1998, pp. 571–574 neural network implementations’. Proc. NASA/ESA Conf. on
6 Piazza, F., Uncini, A., and Zenobi, M: ‘Neural networks with digital Adaptive Hardware and Systems (AHS), Erlangen, Germany, 2012,
LUT activation functions’. Proc. Int. Conf. on Neural Networks pp. 152–158
(IJCNN-93), Nagoya, Japan, 1993, vol. 2, pp. 1401–1404 13 Tawfik, S.A.: ‘Minimax approximation and REMEZ algorithm’.
7 Kim, Y., Kim, G., Hong, I., et al.: ‘A 4.9 MW neural network task sche- Available at http://wwwmathworkscom/matlabcentral/fileexchange/
duler for congestion-minimized network-on-chip in multi-core 8094-remez-algorithm 2005
systems’. Proc. IEEE Asian Solid-State Circuits Conf. (A-SSCC), 14 Torki, K., Faiedh, H., Souani, C., et al.: ‘Digital hardware implemen-
Kao Hsiung, Taiwan, 2014, pp. 213–216 tation of a neural system used for nonlinear adaptive prediction’, 2006
8 Tsai, C.H., Chih, Y.T., Wong, W.H., et al.: ‘A hardware-efficient 15 Alippi, C., and Storti-Gajani, G.: ‘Simple approximation of sigmoidal
sigmoid function with adjustable precision for a neural network functions: realistic design of digital neural networks capable of learn-
system’, IEEE Trans. Circuits Syst. II, Express Briefs, 2015, 62, (11), ing’. Proc. IEEE Int. Symp. on Circuits and Systems, Singapore,
pp. 1073–1077 Singapore, 1991, pp. 1505–1508
9 Amin, H., Curtis, K.M., and Hayes-Gill, B.R.: ‘Piecewise linear 16 Basterretxea, K., Tarela, J., and Del-Campo, I.: ‘Digital design of
approximation applied to nonlinear function of a neural network’, sigmoid approximator for artificial neural networks’, Electron. Lett.,
IEE Proc., Circuits Devices Syst., 1997, 144, (6), pp. 313–317 2002, 38, (1), pp. 35–37
10 Bajger, M., and Omondi, A.: ‘Low-error, high-speed approximation of 17 Zhang, M., Vassiliadis, S., and Delgado-Frias, J.G.: ‘Sigmoid genera-
the sigmoid function for large FPGA implementations’, J. Signal tors for neural computing using piecewise approximations’, IEEE
Process. Syst., 2008, 52, (2), pp. 137–151 Trans. Comput., 1996, 45, (9), pp. 1045–1049
11 Armato, A., Fanucci, L., Scilingo, E.P., et al.: ‘Low-error digital 18 Chen, C., Xia, J., Yang, W., et al.: ‘A PYNQ-compliant online platform
hardware implementation of artificial neuron activation functions for ZYNQ-based DNN developers’. Proc. ACM/SIGDA Int. Symp. on
and their derivative’, Microprocess. Microsyst., 2011, 35, (6), Field-Programmable Gate Arrays, Seaside, CA, USA, 2019,
pp. 557–567 pp. 185–185
Authorized licensed use limited to: Carleton University. Downloaded on September 13,2020 at 13:45:21 UTC from IEEE Xplore. Restrictions apply.