MBS: A High-Precision Approximation Method for Softmax and Efficient Hardware Implementation

The softmax function needs to be frequently used in the multi-head attention layer of Transformer networks. Compared to DNNs and other networks, Transformers have higher computational complexity, requiring higher accuracy and hardware performance for softmax function calculations. Therefore, we propose mixed-base softmax (MBS) for the first time for the approximation of the softmax function. This method combines exponential functions with bases of 2 and 4, which is advantageous for hardware implementation. MBS has a high similarity to the softmax function and demonstrates advanced performance during inference in Transformer network. Through algorithm transformation and hardware optimization, we have designed a low-complexity and highly parallel hardware architecture, which only occupies few additional hardware resources compared to base-2 softmax but achieves higher accuracy. Experimental results show that, under TSMC 90nm CMOS technology at the frequency of 0.5 GHz, our design can achieve the efficiency of 236.18 Gps/(mm<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sup>⋅mW) with the area of 4234 μm<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sup>. Furthermore, MBS exhibits higher computational accuracy and inference precision compared with base-2 softmax.

Authors

Institutions

Publication Details

Journal
IEEE Transactions on Circuits and Systems I Regular Papers
Published
2025-04-16
DOI
https://doi.org/10.1109/tcsi.2025.3559069
Citations
2
Primary Topic
Parallel Computing and Optimization Techniques
Type
article
Field-Weighted Citation Impact
4.54

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

MBS: A High-Precision Approximation Method for Softmax and Efficient Hardware Implementation

Yuanchen Wu, Hongbing Pan, Yuxuan Wang, Zili Xie
2 citations
IEEE Transactions on Circuits and Systems I Regular Papers
Parallel Computing and Optimization Techniques
4.54
article

MBS: A High-Precision Approximation Method for Softmax and Efficient Hardware Implementation

Yuanchen Wu, Hongbing Pan, Yuxuan Wang, Zili Xie
article en
2 citations

Abstract

The softmax function needs to be frequently used in the multi-head attention layer of Transformer networks. Compared to DNNs and other networks, Transformers have higher computational complexity, requiring higher accuracy and hardware performance for softmax function calculations. Therefore, we propose mixed-base softmax (MBS) for the first time for the approximation of the softmax function. This method combines exponential functions with bases of 2 and 4, which is advantageous for hardware implementation. MBS has a high similarity to the softmax function and demonstrates advanced performance during inference in Transformer network. Through algorithm transformation and hardware optimization, we have designed a low-complexity and highly parallel hardware architecture, which only occupies few additional hardware resources compared to base-2 softmax but achieves higher accuracy. Experimental results show that, under TSMC 90nm CMOS technology at the frequency of 0.5 GHz, our design can achieve the efficiency of 236.18 Gps/(mm<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sup>⋅mW) with the area of 4234 μm<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sup>. Furthermore, MBS exhibits higher computational accuracy and inference precision compared with base-2 softmax.

IEEE Transactions on Circuits and Systems I Regular PapersVol. 72(7)
Nanjing University (CN)
Key Research and Development Program of Jiangxi Province
Openalex Percentile: Top 7%
Parallel Computing and Optimization Techniques
4.54
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.

MBS: A High-Precision Approximation Method for Softmax and Efficient Hardware Implementation — Yuanchen Wu, Hongbing Pan, et al. · IEEE Transactions on Circuits and Systems I Regular Papers (2025) | TGRS Research Map | TGRS