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

面向边缘大型语言模型推理的具有优化数据流的混合脉动阵列加速器

Hybrid Systolic Array Accelerator with Optimized Dataflow for Edge Large Language Model Inference

School of Electrical and Computer Engineering, Cornell University(电气与计算机工程学院,康奈尔大学)

Chun-Ting Chen, HanGyeol Mun, Jian Meng, Mohamed S. Abdelfattah, Jae-sun Seo

AI总结:

本文提出一种基于混合脉动阵列(HSA)架构的边缘LLM推理加速器,通过MXINT4量化与优化数据流降低外部内存访问并实现100%硬件利用率,集成RMSNorm和RoPE单元支持端到端推理,在1.3B LLM上实现显著性能提升。

摘要:

大型语言模型(LLM)的边缘推理提供了安全、低延迟且高性价比的推理解决方案。我们强调边缘加速器应实现高面积效率,并在受内存限制的解码阶段最小化外部内存访问(EMA),同时在计算密集的预填充阶段保持高能效。本文提出了一种边缘LLM推理加速器,其特色是采用混合脉动阵列(HSA)架构,优化了两个阶段的推理效率。为进一步降低EMA,我们采用MXINT4权重量化,并提出针对HSA优化的数据流,确保去量化开销可忽略不计,在边缘DRAM带宽约束下以最小的精度损失实现100%的硬件利用率。对于非线性运算,我们集成了优化的均方根归一化(RMSNorm)和旋转位置编码(RoPE)单元,降低了它们的延迟、面积和内存访问开销,同时支持加速器上的端到端推理。我们的解决方案在长输入/长输出场景下运行1.3B LLM时实现了247/117(token/s/mm2),比现有方法提升了>2.45倍/13.5倍,同时在token生成中保持卓越的能效。

英文摘要:

Edge inference for large language models (LLM) offers secure, low-latency, and cost-effective inference solutions. We emphasize that an edge accelerator should achieve high area efficiency and minimize external memory access (EMA) during the memory-bound decode stage, while maintaining high energy efficiency during the compute intensive prefill stage. This paper proposes an edge LLM inference accelerator featuring a hybrid systolic array (HSA) architecture that optimizes inference efficiency in both stages. To further reduce EMA, we adopt MXINT4 weight quantization and propose an optimized dataflow tailored for HSA, ensuring negligible dequantization overhead and achieving 100% hardware utilization with minimal accuracy loss under edge DRAM bandwidth constraints. For non-linear operations, we incorporate optimized root mean square normalization (RMSNorm) and rotary position embedding (RoPE) units, reducing their latency, area, and memory access overhead while enabling end-to-end inference on our accelerator. Our solution achieves 247/117 (token/s/mm2) while running a 1.3B LLM on long-input/long-output scenarios, providing >2.45x/13.5x improvement over existing approaches, while maintaining superior energy efficiency in token generation.

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

↑