A Novel Approximation Methodology and Its Efficient VLSI Implementation for the Sigmoid Function.

Zidi Qin,Yuou Qiu,Huaqing Sun,Zhonghai Lu,Zhongfeng Wang,Qinghong Shen,Hongbing Pan
DOI: https://doi.org/10.1109/tcsii.2020.2999458
2020-01-01
IEEE Transactions on Circuits & Systems II Express Briefs
Abstract:In this brief, a novel approximation method and its optimized hardware implementation are proposed for the sigmoid function used in Deep Neural Networks (DNNs). Based on piecewise approximation and truncated Taylor series expansion, the proposed method achieves very good approximation with low complexity while exploiting data representation with powers of two. In addition, by analyzing gradients of the sigmoid function, a small trick is introduced to improve the approximation precision. Furthermore, to reduce the hardware complexity and shorten the critical path, sampled values of the function are generated with simple logical-mapping. It is shown that the proposed approximation schemes can be implemented with purely combinational logic and the sigmoid function can be computed in one clock cycle. The experimental results demonstrate that the mean absolute errors are at the order of 1 × 10 -3 . Compared with prior arts, the new design can obtain significant improvement in critical path with comparable performance.
What problem does this paper attempt to address?