Accurate and Efficient Hyperbolic Tangent Activation Function on FPGA using the DCT Interpolation Filter
Ahmed M. Abdelsalam, J.M. Pierre Langlois, F. Cheriet

TL;DR
This paper presents a high-accuracy, resource-efficient FPGA implementation of the hyperbolic tangent activation function using DCT Interpolation Filter, significantly improving precision while maintaining low computational cost.
Contribution
It introduces a novel DCTIF-based approximation method for the hyperbolic tangent function that achieves two orders of magnitude higher precision with minimal resource usage.
Findings
Achieves 10E-5 maximum error in approximation
Uses only 1.52 Kbits memory and 57 LUTs on FPGA
High-accuracy approximation maintains DNN training and testing performance
Abstract
Implementing an accurate and fast activation function with low cost is a crucial aspect to the implementation of Deep Neural Networks (DNNs) on FPGAs. We propose a high-accuracy approximation approach for the hyperbolic tangent activation function of artificial neurons in DNNs. It is based on the Discrete Cosine Transform Interpolation Filter (DCTIF). The proposed architecture combines simple arithmetic operations on stored samples of the hyperbolic tangent function and on input data. The proposed DCTIF implementation achieves two orders of magnitude greater precision than previous work while using the same or fewer computational resources. Various combinations of DCTIF parameters can be chosen to tradeoff the accuracy and complexity of the hyperbolic tangent function. In one case, the proposed architecture approximates the hyperbolic tangent activation function with 10E-5 maximum error…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsModel Reduction and Neural Networks · Digital Filter Design and Implementation · Neural Networks and Applications
