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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Moradifirouzabadi, Ashkan, Dodla, Divya Sri, Kang, Mingu
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916459917082624
author Moradifirouzabadi, Ashkan
Dodla, Divya Sri
Kang, Mingu
author_facet Moradifirouzabadi, Ashkan
Dodla, Divya Sri
Kang, Mingu
contents 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/mm$^\mathrm{2}$ in the analog core and the system-on-chip (SoC), respectively.
format Preprint
id arxiv_https___arxiv_org_abs_2409_04940
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle An Analog and Digital Hybrid Attention Accelerator for Transformers with Charge-based In-memory Computing
Moradifirouzabadi, Ashkan
Dodla, Divya Sri
Kang, Mingu
Hardware Architecture
Machine Learning
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/mm$^\mathrm{2}$ in the analog core and the system-on-chip (SoC), respectively.
title An Analog and Digital Hybrid Attention Accelerator for Transformers with Charge-based In-memory Computing
topic Hardware Architecture
Machine Learning
url https://arxiv.org/abs/2409.04940