An Analog and Digital Hybrid Attention Accelerator for Transformers with Charge-based In-memory Computing
The attention mechanism is a key computing kernel of Transformers, calculating pairwise correlations across the entire input sequence. The computing complexity and frequent memory access in computing self-attention put a huge burden on the system especially when the sequence length increases. This paper presents an analog and digital hybrid processor to accelerate the attention mechanism for transformers in 65 nm CMOS technology. We propose an analog computing-in-memory (CIM) core, which prunes 75% of low-score tokens on average during runtime at ultra-low power and delay. Additionally, a digital processor performs precise computations only for 25% unpruned tokens selected by the analog CIM core, preventing accuracy degradation. Measured results show peak energy efficiency of 14.8 and 1.65 TOPS/W, and peak area efficiency of 976.6 and 79.4GOPS mm<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sup> in the analog core and the system-on-chip (SoC), respectively.
Authors
- Mingu Kang (ORCID: https://orcid.org/0000-0001-6889-4010)
- Divya Sri Dodla
- Ashkan Moradifirouzabadi (ORCID: https://orcid.org/0009-0007-5112-300X)
Institutions
- University of California San Diego (US)
Publication Details
- Published
- 2024-09-09
- DOI
- https://doi.org/10.1109/esserc62670.2024.10719540
- Citations
- 5
- Primary Topic
- Advanced Memory and Neural Computing
- Type
- article
- Field-Weighted Citation Impact
- 1.04
Funders
- Semiconductor Research Corporation
- National Research Foundation
- National Research Foundation of Korea
- Ministry of Science and ICT, South Korea
- Defense Advanced Research Projects Agency