Projects per year
Abstract
Transformer has emerged as a leading architecture in neural language processing (NLP) and computer vision (CV). However, the extensive use of nonlinear operations, like softmax, poses a performance bottleneck during transformer inference and comprises up to 40% of the total latency. Hence, we propose innovations at the circuit, algorithm and architecture levels to accelerate the transformer. At the circuit level, we propose Topkima - combining top-k activation selection with in-memory ADC (IMA) to implement efficient softmax without any sorting overhead. Only the k largest activations are sent to softmax calculation block, reducing the huge computational cost of softmax. At the algorithmic level, a modified training scheme utilizes top-k activations only during the forward pass, combined with a sub-top-k method to address the crossbar size limitation by aggregating each sub-top-k values as global top-k. At the architecture level, we introduce a fine pipeline for efficiently scheduling data flows and an improved scale-free technique for removing scaling cost. The combined system, dubbed Topkima-Former, enhances 1.8×-84× speedup and 1.2×-36× energy efficiency (EE) over prior In-memory computing (IMC) accelerators. Compared to a conventional softmax macro and a digital top-k (Dtopk) softmax macro, our proposed Topkima softmax macro achieves about 15× and 8× faster speed respectively. Experimental evaluations demonstrate minimal (0.42% to 1.60%) accuracy loss for different models in both vision and NLP tasks. © 2004-2012 IEEE.
| Original language | English |
|---|---|
| Pages (from-to) | 2509-2519 |
| Number of pages | 11 |
| Journal | IEEE Transactions on Circuits and Systems I: Regular Papers |
| Volume | 72 |
| Issue number | 6 |
| Online published | 18 Mar 2025 |
| DOIs | |
| Publication status | Published - Jun 2025 |
Funding
This work was supported by the Innovation Technology Fund Mid-Stream Research Program (ITF MSRP) under Grant ITS/018/22MS
UN SDGs
This output contributes to the following UN Sustainable Development Goals (SDGs)
-
SDG 7 Affordable and Clean Energy
Research Keywords
- efficient softmax
- in memory ADC
- In-memory computing
- top-k
- transformer
Fingerprint
Dive into the research topics of 'Topkima-Former: Low-Energy, Low-Latency Inference for Transformers Using Top-k In-Memory ADC'. Together they form a unique fingerprint.Projects
- 1 Active
-
ITF: Reconfigurable Nonlinear In-memory Computations: A Pathway to Low-power, Recurrent Neural Networks
BASU, A. (Principal Investigator / Project Coordinator) & LI, H. (Co-Investigator)
1/09/23 → …
Project: Research
Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver