A High-Accuracy and Low-Resource Design for Nonlinear Functions in AI Accelerators

In deep learning models, the increasing complexity of activation functions makes hardware optimization crucial. This paper proposes an efficient computation framework for 4 elementary functions (exponential, logarithmic, reciprocal and square root). By leveraging the floating-point representation and employing piecewise linear (PWL) approximation for the mantissa, our method substantially reduces multiplication operations and storage overhead. Our framework supports the execution of prevalent activation functions through combinations of these functions, further enhancing its versatility. The proposed design is validated on Xilinx Zynq X7CZ020 FPGA. Specifically, the FP16 4-segment pipelined module achieves a mean relative error of 2.26e-3 across all valid input ranges, but only utilizes 725 LUTs and 129 FFs without using DSP. It reaches a maximum working frequency of 163.64 MHz, and requires a 4 clock cycles latency, demonstrating significant advantages in resource utilization and computation efficiency.

Authors

Institutions

Publication Details

Published
2025-05-25
DOI
https://doi.org/10.1109/iscas56072.2025.11044143
Citations
1
Primary Topic
CCD and CMOS Imaging Sensors
Type
article
Field-Weighted Citation Impact
0.73
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A High-Accuracy and Low-Resource Design for Nonlinear Functions in AI Accelerators

Dongjun Xu, Liang Chen, Xin Liu, Zirui Zhang
1 citations
CCD and CMOS Imaging Sensors
0.73
article

A High-Accuracy and Low-Resource Design for Nonlinear Functions in AI Accelerators

Dongjun Xu, Liang Chen, Xin Liu, Zirui Zhang
article en
1 citations

Abstract

In deep learning models, the increasing complexity of activation functions makes hardware optimization crucial. This paper proposes an efficient computation framework for 4 elementary functions (exponential, logarithmic, reciprocal and square root). By leveraging the floating-point representation and employing piecewise linear (PWL) approximation for the mantissa, our method substantially reduces multiplication operations and storage overhead. Our framework supports the execution of prevalent activation functions through combinations of these functions, further enhancing its versatility. The proposed design is validated on Xilinx Zynq X7CZ020 FPGA. Specifically, the FP16 4-segment pipelined module achieves a mean relative error of 2.26e-3 across all valid input ranges, but only utilizes 725 LUTs and 129 FFs without using DSP. It reaches a maximum working frequency of 163.64 MHz, and requires a 4 clock cycles latency, demonstrating significant advantages in resource utilization and computation efficiency.

Chinese Academy of Sciences (CN)
Decent work and economic growth
Openalex Percentile: Top 27%
CCD and CMOS Imaging Sensors
0.73
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.