本文提出TOKCIM,一种基于数字存内计算(DCIM)结构的Transformer加速器。TOKCIM在DCIM宏中采用全零初始化(AZI)特性,并结合权重的分组剪枝,以充分发挥AZI的优势,同时加快权重加载过程与存内计算过程。TOKCIM中的SoftMax单元(SMU)采用最优值选择策略:通过在输入中挑选若干最优值并仅对这些选中值执行SoftMax运算,所提出的SMU能够显著降低激活计算的开销,而性能退化可以忽略。该芯片采用65nm CMOS工艺制造,并在Q8BERT模型与GLUE数据集上进行基准测试,实测能效达5.73 TOPS/W,计算密度达0.29 TOPS/mm²,展现出当前领先的性能水平。
This paper presents TOKCIM, a Transformer accelerator based on digital compute-in-memory (DCIM) structure. TOKCIM adopts all-zero initialization (AZI) characteristics in the DCIM macros, together with group pruning of weights to fully leverage the benefits of AZI, speeding up both weight loading process and in-memory computing process. The SoftMax unit (SMU) in TOKCIM employs an optimal value selection strategy. By selecting several optimal values among inputs and performing SoftMax operations only on the selected values, the proposed SMU can significantly reduce the overhead of activation calculations with negligible degradation on performance. Fabricated in 65-nm CMOS process and benchmarked on Q8BERT model and GLUE dataset, TOKCIM achieves a measured energy efficiency of 5.73 TOPS/W and a compute efficiency of 0.29 TOPS/mm2, demonstrating state-of-the-art performance.
| 指标 | 数值 | 说明 |
|---|---|---|
| 能效 | 5.73 TOPS/W | 在Q8BERT模型与GLUE数据集上实测的能量效率 |
| 计算密度 | 0.29 TOPS/mm² | 芯片面积归一化的计算效率,实测结果 |
| 存内计算宏规模 | 8192个7T DVSC(128行×64列) | 每宏由8192个解耦电源7T SRAM单元构成,共8个宏 |
| 共享缓冲容量 | 512Kb | 片上共享缓冲区,动态服务输入激活、中间结果与输出激活 |
| Top-k选择能力 | 256选192(16-bit数据) | 单个比较器支持的最大选择规模,双比较器乒乓结构可扩展输入深度 |
| 全零行跳过深度 | 最多3个连续全零行(2-bit read_skip) | 依据4个及以上连续全零行概率极低的统计结果设定 |
5.73 TOPS/W 能效;0.29 TOPS/mm² 计算密度
存内计算、机器学习、深度学习
自然语言处理、Transformer模型推理加速、边缘/端侧AI
打开交互版 · AI 解读 / 同类对比 / 完整指标在香农学术库中查看(需会员)