CIMple: 基于标准单元SRAM的CIM及其基于LUT的拆分softmax用于注意力加速
CIMple: Standard-cell SRAM-based CIM with LUT-based split softmax for attention acceleration
AI总结:
本文提出CIMple,一种基于标准单元SRAM的CIM架构,通过8位并行权重喂送和LUT固定点实现,实现高效注意力加速,评估了28nm实现的32kb自注意力加速器性能。
摘要:
大型语言模型(如LLaMA和DeepSeek)基于transformer架构,已成为自然语言处理任务的先进标准。最近,将LLM部署到边缘设备上引起了广泛关注。尽管较小的LLM模型被提出,但它们仍包含数十亿参数。由于边缘设备资源有限,这给边缘部署带来了重大挑战。计算-在-内存(CIM)是一种有前途的架构,通过将计算逻辑直接集成到内存中,减少数据移动。然而,现有CIM架构仅支持静态乘加(MAC)操作,限制了其在支持非线性操作和各种transformer模型中的可配置性。本文提出了一种完全数字的标准单元SRAM基于CIM架构的自注意力加速器,称为CIMple,旨在克服这些限制,用于transformer模型。CIMple的主要贡献是:1)一种新颖的双银行CIM基于完全数字自注意力加速器,使用8位并行权重喂送。2)基于查找表(LUT)的固定点实现,减少延迟,同时精度损失最小。3)对在28nm上实现的32kb CIM基于自注意力加速器的性能评估,其在0.85V下达到26.1 TOPS/W,在1.2V下达到2.31 TOPS/mm²,均使用INT8精度。
英文摘要:
Large Language Models (LLMs) such as LLaMA and DeepSeek, are built on transformer architectures, which have become a standard model for achieving state-of-the-art performance in natural language processing tasks. Recently, there has been growing interest in deploying LLMs on edge devices. Although smaller LLM models are being proposed, they often still contain billions of parameters. Since edge devices are limited in their resources this poses a significant challenge for edge deployment. Compute-in-memory (CIM) is a promising architecture that addresses this by reducing data movement through the integration of computational logic directly into memory. However, existing CIM architectures support only static Multiply-Accumulate (MAC) operations which limit their configurability in supporting nonlinear operations and various types of transformer models. This paper presents a fully digital standard-cell SRAM-based CIM architecture accelerator for self-attention, called CIMple, designed to overcome these limitations, inside transformer models. The key contributions of CIMple are: 1) A novel dual-banked CIM-based fully digital self-attention accelerator using 8-bit parallel weight feeding. 2) A look-up-table (LUT) based fixed-point implementation reducing latency with minimal accuracy degradation. 3) A performance evaluation of a 32kb CIM-based self-attention accelerator implemented in 28nm, which achieves 26.1 TOPS/W at 0.85V and 2.31 TOPS/mm$^2$ at 1.2V, both with INT8 precision.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。