arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.20706cs.ARcs.AIcs.DC
收藏

超越以GEMM为中心的NPUs:使高效的扩散LLM采样成为可能

Beyond GEMM-Centric NPUs: Enabling Efficient Diffusion LLM Sampling

Imperial College London(伦敦帝国学院);University of Edinburgh(爱丁堡大学);University of Cambridge(剑桥大学)

Binglei Lou, Haoran Wu, Yao Lai, Jiayi Nie, Can Xiao, Xuan Guo, Rika Antonova, Robert Mullins, Aaron Zhao

AI总结:

本文提出了一种针对扩散LLM采样的NPU架构优化方案,通过轻量级向量原语、内存重用策略和混合精度内存层次结构,实现了2.53倍的加速性能。

摘要:

扩散大语言模型(dLLMs)引入了迭代去噪以实现并行标记生成,但其采样阶段与以GEMM为中心的Transformer层在本质上表现出根本不同的特征。对现代GPU的分析显示,采样可以占总模型推理延迟的高达70%——主要由于词汇范围内的logits带来的大量芯片内SRAM负载和写入,基于缩减的标记选择以及迭代掩码更新。这些过程需要大量的芯片内SRAM,并涉及常规NPUs难以高效处理的不规则内存访问。为了解决这个问题,我们确定了一组关键指令,这些指令是NPU架构必须专门优化以支持dLLM采样。我们的设计采用了轻量级非GEMM向量原语、在地内存重用策略以及解耦的混合精度内存层次结构。这些优化共同实现了在等效nm技术节点下相对于NVIDIA RTX A6000 GPU的2.53倍加速。我们还开源了我们的周期准确的仿真和后综合RTL验证代码,确认其与当前dLLM PyTorch实现的功能等价性。

英文摘要:

Diffusion Large Language Models (dLLMs) introduce iterative denoising to enable parallel token generation, but their sampling phase displays fundamentally different characteristics compared to GEMM-centric transformer layers. Profiling on modern GPUs reveals that sampling can account for up to 70% of total model inference latency-primarily due to substantial memory loads and writes from vocabulary-wide logits, reduction-based token selection, and iterative masked updates. These processes demand large on-chip SRAM and involve irregular memory accesses that conventional NPUs struggle to handle efficiently. To address this, we identify a set of critical instructions that an NPU architecture must specifically optimize for dLLM sampling. Our design employs lightweight non-GEMM vector primitives, in-place memory reuse strategies, and a decoupled mixed-precision memory hierarchy. Together, these optimizations deliver up to a 2.53x speedup over the NVIDIA RTX A6000 GPU under an equivalent nm technology node. We also open-source our cycle-accurate simulation and post-synthesis RTL verification code, confirming functional equivalence with current dLLM PyTorch implementations.

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

↑