A Resource- and Power-Efficient FPGA Implementation of a Segmented Chebyshev Tanh Activation Function Using Single-Precision Floating-Point Arithmetic
Praneeth Vangala, Xingang Fu, Chanakya Hingu, Mahesh Hosur
Key points
From the paper's conclusion- This work presents an FPGA implementation of a segmented Chebyshev-polynomial-based tanh core for IEEE-754 single-precision floating-point.
Abstract
Artificial intelligence and machine learning workloads increasingly rely on dedicated hardware accelerators, including field-programmable gate arrays (FPGAs), which offer parallelism and reconfigurability. The hyperbolic tangent (tanh) is widely used as a nonlinear activation function yet is costly to evaluate directly in hardware, making efficient approximation essential. This work presents an FPGA implementation of a segmented Chebyshev-polynomial-based tanh core for IEEE-754 single-precision floating-point. The input domain x∈[−6,6] is reduced to |x|∈[0,6] by exploiting tanh’s odd symmetry, and partitioned into three sub-intervals with per-interval Chebyshev degrees selected to achieve the target accuracy. Polynomial evaluation is performed via Clenshaw’s recurrence, with a single recurrence stage reused for all evaluation steps under finite-state-machine control. Implemented and verified on an Altera Cyclone V FPGA, the core uses 1176 adaptive logic modules, 317 registers, and one digital signal processing (DSP) block. It requires 28 clock cycles for inputs within the approximation domain and 3 outside it, and dissipates 6.20 mW of dynamic power at 40 MHz. The mean absolute error is 8.26×10−8 across the tested inputs and 5.74×10−8 over a denser MATLAB sweep. Against exponential-based, continued-fraction-based, and polynomial-based tanh approximations, it achieves the lowest register, DSP, memory, and dynamic power utilization.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- StreamingDPD: A 1.28-GSa/s Instantaneous-Power-Gated Depthwise TCN Accelerator for Real-Time 320-MHz Digital PredistortionarXiv · 2026
- Uni-SFU: Algorithm-HW Co-Design for Universal SFUs via Mixed-Degree Piecewise ApproximationarXiv · 2026
- Energy-efficient implementation of spiking recurrent cells on FPGANeuromorphic Computing and Engineering · 2026
- Exhaustive Evaluation of Fixed-Point Reciprocal Architectures for FPGAsarXiv · 2026
- Ternary-Valued FDTD Method for Nonlinear Optics: Third-Harmonic Generation on a Multiplier-Free SolverarXiv · 2026
- Deterministic fixed point inference with tiled parallelism for ASIC implementation of human activity recognitionDiscover Applied Sciences · 2026