An Accurate and Compact Design Integrating Seven Common Nonlinear Functions in Deep Learning

Deep learning models based on Transformer architectures are undergoing significant transformations as large language models (LLMs) become more widely adopted and computationally demanding. All these models rely on various nonlinear activation functions, such as Softmax, LayerNorm, and other nontrivial activation functions, whose hardware implementations typically consume substantial area and power, mainly due to the complexity of underlying operations, like inverse square root, division, and exponential functions. To address these challenges, this paper proposes a compact and highly shared architecture that can efficiently and accurately compute reciprocals and inverse square roots via algorithm/hardware co-design. Besides, we propose a novel two-staged method for exponential function computation. The above techniques lead to an efficient implementation of LayerNorm and Softmax. Furthermore, those techniques also enable accurate implementations of other common activation functions, such as Sigmoid, Swish, GELU, and Tanh, with a minor extra hardware cost. The proposed 7-in-1 integrated design merely takes 5450μm<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sup> using a TSMC 28nm process. Experimental results also demonstrate that the proposed design achieves much higher Softmax accuracy than existing approaches.

Authors

Institutions

Publication Details

Published
2025-05-25
DOI
https://doi.org/10.1109/iscas56072.2025.11043931
Citations
1
Primary Topic
Neural Networks and Applications
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An Accurate and Compact Design Integrating Seven Common Nonlinear Functions in Deep Learning

J. F. Hu, J.C. Wu, Liang Cheng, Juinn-Dar Huang
1 citations
Neural Networks and Applications
2.48
article

An Accurate and Compact Design Integrating Seven Common Nonlinear Functions in Deep Learning

J. F. Hu, J.C. Wu, Liang Cheng, Juinn-Dar Huang
article en
1 citations

Abstract

Deep learning models based on Transformer architectures are undergoing significant transformations as large language models (LLMs) become more widely adopted and computationally demanding. All these models rely on various nonlinear activation functions, such as Softmax, LayerNorm, and other nontrivial activation functions, whose hardware implementations typically consume substantial area and power, mainly due to the complexity of underlying operations, like inverse square root, division, and exponential functions. To address these challenges, this paper proposes a compact and highly shared architecture that can efficiently and accurately compute reciprocals and inverse square roots via algorithm/hardware co-design. Besides, we propose a novel two-staged method for exponential function computation. The above techniques lead to an efficient implementation of LayerNorm and Softmax. Furthermore, those techniques also enable accurate implementations of other common activation functions, such as Sigmoid, Swish, GELU, and Tanh, with a minor extra hardware cost. The proposed 7-in-1 integrated design merely takes 5450μm<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sup> using a TSMC 28nm process. Experimental results also demonstrate that the proposed design achieves much higher Softmax accuracy than existing approaches.

National Yang Ming Chiao Tung University (TW)
Openalex Percentile: Top 10%
Neural Networks and Applications
2.48
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.