An Analog and Digital Hybrid Attention Accelerator for Transformers with Charge-based In-memory Computing
Authors:
- 9 September 2024
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 353-356
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 2 in the analog core and the system-on-chip (SoC), respectively.Keywords
All Related Versions
Funding Information
- Semiconductor Research Corporation
- National Research Foundation
This publication has 6 references indexed in Scilit:
- FreFlex: A High-Performance Processor for Convolution and Attention Computations via Sparsity-Adaptive Dynamic Frequency BoostingIEEE Journal of Solid-State Circuits, 2023
- 22.9 A 12nm 18.1TFLOPs/W Sparse Transformer Processor with Entropy-Based Early Exit, Mixed-Precision Predication and Fine-Grained Power Management2023
- Sparse Attention Acceleration with Synergistic In-Memory Pruning and On-Chip Recomputation2022
- A 32.2 TOPS/W SRAM Compute-in-Memory Macro Employing a Linear 8-bit C-2C Ladder for Charge Domain Computation in 22nm for Edge Inference2022
- A 28nm 27.5TOPS/W Approximate-Computing-Based Transformer Processor with Asymptotic Sparsity Speculating and Out-of-Order Computing2022
- SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruning2021