← 返回 JSSC 论文列表
📄 下载 JSSC 原文 PDF
JSSC 2024第10期Memory

CIMFormer: A Systolic CIM-Array-Based Transformer Accelerator With Token-Pruning-Aware Attention Reformulating and Principal Possibility Gathering

CIMFormer是一种基于脉动CIM阵列的Transformer加速器,通过令牌剪枝优化注意力计算。
TransformerCIM加速器令牌剪枝注意力机制脉动阵列
令牌剪枝感知注意力重构(TPAR)
主可能性聚集-分散调度器(PPGSS)
脉动X|W-CIM宏阵列
Abstract
Transformer models have achieved impressive per- formance in various artificial intelligence (AI) applications. However, the high cost of computation and memory footprint make its inference inefficient. Although digital compute-in- memory (CIM) is a promising hardware architecture with high accuracy, Transformer’s attention mechanism raises three challenges in the access and computation of CIM: 1) the atten- tion computation involving Query and Key results in massive data movement and under-utilization in CIM macros; 2) the attention computation involving Possibility and V alue exhibits plenty of dynamic bit-level sparsity, resulting in redundant bit-serial CIM operations; and 3) the restricted data reload bandwidth in CIM macros results in a significant decrease in performance for large Transformer models. To address these challenges, we design a CIM accelerator called CIM Trans- former (CIMFormer) with three corresponding features. First, the token-pruning-aware attention reformulation (TPAR) is a technique that adjusts attention computations according to the token-pruning ratio. This reformulation reduces the real-time access to and under-utilization of CIM macros. Second, the principal possibility gather-scatter scheduler (PPGSS) gathers the possibilities with greater effective bit-width as concurrent inputs to CIM macros, enhancing the efficiency of bit-serial CIM operations. Third, the systolic X|W-CIM macro array efficiently handles the execution of large Transformer m