arrow
Return

MPN-S: An Algorithm-Hardware Co-Designed Architecture for High-Efficiency Softmax Computation

delete
delete0
PRE
AI
Y
Yuchen Ma
D
Defa Wu
Y
Yucheng Du
X
Xing Wang
X
Xin Si
C
Chao Chen
DOI:10.1109/TCSII.2025.3594105delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
As a fundamental operator in Transformer, softmax presents critical hardware challenges due to its computational complexity. The wide use of exponential and division operations in softmax not only occupies a large amount of computing resources, but also causes a high execution delay in hardware implementation. This work presents a high-precision algorithm and hardware co-designed softmax architecture including Mapping optimization, dynamic Pruning, and dynamic Newton iteration method with pipeline Scheduling(MPN-S). The proposed MPN-S simplifies the softmax calculation through the minimum error integer mapping method, dynamic pruning and compressed lookup tables. Combined with dynamic Newton iteration and pipeline design, MPN-S compresses the softmax processing time into the time of finding the maximum value once. The implementation results show that, under 28 nm CMOS technology at the frequency of 0.5 GHz, MPN-S can achieve the efficiency of 3827.18 Gps/(mm<inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">${^{{2}}} {\cdot }$ </tex-math></inline-formula> mW) with the area of <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$2292~\mu $ </tex-math></inline-formula> m2 excluding buffers. Neural network experiments show that after replacing the softmax function with MPN-S, the accuracy rate on the MobileVIT classification task reaches 92.9%, and the mAP50val on Yolo V10 reaches 0.959.
Keywords:
Softmax function
transformer
neural network
collaborative optimization
hardware implementation

Journal

I
IEEE Transactions on Circuits and Systems and Express Briefs
IF:
4.9
Papers:
8.8K
Citations:
2.5W

Organization

S
Southeast University
Scholars:
1.9W
Papers: 8.0K
Citations: 480