arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.11192cs.ARcs.LG
收藏

稀疏块对角LLM的高效存内加速

Efficient In-Memory Acceleration of Sparse Block Diagonal LLMs

Chair for Compiler Construction, TU Dresden, Germany(编译构造研究所,德累斯顿技术大学,德国);Center for Scalable Data Analytics and Artificial Intelligence (ScaDS.AI), Dresden, Germany(可扩展数据分析与人工智能中心(ScaDS.AI),德累斯顿,德国)

João Paulo Cardoso de Lima, Marc Dietrich, Jeronimo Castrillon, Asif Ali Khan

AI总结:

本文针对稀疏LLM在CIM架构上利用率低的问题,提出一种自动化映射调度框架,利用块对角稀疏性将阵列利用率提升超50%,内存占用和浮点运算量均减少超4倍。

摘要:

结构化稀疏使得在资源受限的系统上部署大型语言模型(LLMs)成为可能。像稠密到稀疏微调这样的方法特别引人注目,通过将模型大小减少超过6.7倍来实现显著的结构化稀疏,同时仍保持可接受的准确率。尽管有这种缩减,LLM推理,尤其是本质上是内存受限的解码阶段,在传统的冯·诺依曼架构上仍然极其昂贵。存内计算(CIM)架构通过直接在内存中执行计算来缓解这一问题,当与稀疏LLM结合时,能够在内存中存储和计算整个模型,消除片外总线上的数据移动并提高效率。然而,将稀疏矩阵简单映射到CIM阵列上会导致阵列利用率低下和计算效率下降。在本文中,我们提出了一个具有新颖映射和调度策略的自动化框架,以加速CIM加速器上的稀疏LLM推理。通过利用块对角稀疏性,我们的方法将CIM阵列利用率提高了超过50%,在内存占用和所需的浮点运算数量上都实现了超过4倍的减少。

英文摘要:

Structured sparsity enables deploying large language models (LLMs) on resource-constrained systems. Approaches like dense-to-sparse fine-tuning are particularly compelling, achieving remarkable structured sparsity by reducing the model size by over 6.7x, while still maintaining acceptable accuracy. Despite this reduction, LLM inference, especially the decode stage being inherently memory-bound, is extremely expensive on conventional Von-Neumann architectures. Compute-in-memory (CIM) architectures mitigate this by performing computations directly in memory, and when paired with sparse LLMs, enable storing and computing the entire model in memory, eliminating the data movement on the off-chip bus and improving efficiency. Nonetheless, naively mapping sparse matrices onto CIM arrays leads to poor array utilization and diminished computational efficiency. In this paper, we present an automated framework with novel mapping and scheduling strategies to accelerate sparse LLM inference on CIM accelerators. By exploiting block-diagonal sparsity, our approach improves CIM array utilization by over 50%, achieving more than 4x reduction in both memory footprint and the number of required floating-point operations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑