A Low Power Attention and Softmax Accelerator for Large Language Models Inference
Transformer-based models, essential for high-performing Large Language Models (LLMs), surpass traditional Deep Neural Networks but require substantial computational resources. Therefore, more efficient transformer algorithms and accelerators are required to reduce the computational cost and power consumption of LLMs. We observed that as the sequence length increases, softmax operations, which are the key operation of the transformer self-attention mechanism, become the major bottleneck. In this paper, we propose Cross-Road Softmax, an optimized algorithm designed for the softmax operation within the attention layer, specifically tailored for inference in LLMs. Our software experiment was conducted on 8 Natural Language Processing benchmarks for evaluation. Furthermore, we design a Cross-Road Accel using the proposed Cross-Road Softmax that accelerates softmax function of the self-attention layer. We implement Cross-Road Accel in RTL and synthesize it with Syn-opsys Design Compiler using Nangate 15nm open cell library to obtain power and area statistics. In summary, on average, Cross-Road Accel achieves an approximately 3.5 × increase in energy efficiency compared to state-of-the-art transformer accelerators.
Authors
- Soomin Rho
- Chanran Kim (ORCID: https://orcid.org/0000-0002-0414-4613)
- Ki‐Seok Chung (ORCID: https://orcid.org/0000-0002-2908-8443)
- Jeonghyun Kim (ORCID: https://orcid.org/0000-0003-3090-1435)
Institutions
- Hanyang University (KR)
Publication Details
- Published
- 2024-11-03
- DOI
- https://doi.org/10.1109/icce-asia63397.2024.10773935
- Citations
- 1
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.35