A High-Parallelism Softmax Hardware-Software Co-Design for Fast and Efficient LLM Inference
Large language models (LLMs) have been the driving force behind significant advancements in artificial intelligence. However, their unique self-attention mechanism leads to difficulties in accelerating the inference. Softmax, with its complex nonlinear operations and low parallelism, significantly limits the efficiency of LLMs for long sequences. This work proposes a novel high-parallelism hardware/software co-design Softmax solution. By incorporating a sum estimation algorithm, we eliminate the need for complex exponential on all elements. A high-speed low-energy hardware architecture is introduced by applying high-parallelism statistical module and simplified division module. Experimental results demonstrate that our approach achieves a 9.90%-44.75% reduction in latency and up to a 17.36% reduction in energy consumption compared to state-of-the-art Softmax hardware, with minimal impact on model inference accuracy.
Authors
- Xuyang He (ORCID: https://orcid.org/0000-0002-5951-5418)
- Qiyu Sun (ORCID: https://orcid.org/0000-0002-0341-313X)
- Zheyu Yan (ORCID: https://orcid.org/0000-0003-1830-606X)
- Haonan Du (ORCID: https://orcid.org/0009-0003-6345-8991)
- Chenyi Wen
- Cheng Zhuo
Institutions
- Zhejiang University (CN)
Publication Details
- Journal
- ACM Transactions on Design Automation of Electronic Systems
- Published
- 2026-03-12
- DOI
- https://doi.org/10.1145/3801553
- Primary Topic
- Big Data and Digital Economy
- Type
- article
- Field-Weighted Citation Impact
- 0.00