English

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

Hardware Architecture 2024-10-31 v2 Machine Learning

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 65nm 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.4 GOPS/mm2^\mathrm{2} in the analog core and the system-on-chip (SoC), respectively.

Keywords

Cite

@article{arxiv.2409.04940,
  title  = {An Analog and Digital Hybrid Attention Accelerator for Transformers with Charge-based In-memory Computing},
  author = {Ashkan Moradifirouzabadi and Divya Sri Dodla and Mingu Kang},
  journal= {arXiv preprint arXiv:2409.04940},
  year   = {2024}
}

Comments

4 pages, 9 figures, to be published at ESSERC 2024

R2 v1 2026-06-28T18:37:30.652Z