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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An Analog and Digital Hybrid Attention Accelerator for Transformers with Charge-based In-memory Computing

Mingu Kang, Divya Sri Dodla, Ashkan Moradifirouzabadi
5 citations
Advanced Memory and Neural Computing
1.04
article

An Analog and Digital Hybrid Attention Accelerator for Transformers with Charge-based In-memory Computing

Mingu Kang, Divya Sri Dodla, Ashkan Moradifirouzabadi
article en
5 citations

Abstract

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.

University of California San Diego (US)
Semiconductor Research Corporation, National Research Foundation, National Research Foundation of Korea, Ministry of Science and ICT, South Korea, Defense Advanced Research Projects Agency
Affordable and clean energy
Openalex Percentile: Top 23%
Advanced Memory and Neural Computing
1.04
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

An Analog and Digital Hybrid Attention Accelerator for Transformers with Charge-based In-memory Computing — Mingu Kang, Divya Sri Dodla, et al. · (2024) | TGRS Research Map | TGRS