arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.12298cs.AR
收藏

CD-PIM:一种高带宽且计算高效的基于LPDDR5的存内计算架构,用于边缘设备上低批量大语言模型加速

CD-PIM: A High-Bandwidth and Compute-Efficient LPDDR5-Based PIM for Low-Batch LLM Acceleration on Edge-Device

School of Electronic Science and Engineering, Nanjing University(南京大学电子科学与工程学院);China Mobile Research Institute(中国移动研究院)

Ye Lin, Chao Fang, Xiaoyong Song, Qi Wu, Anying Jiang, Yichuan Bai, Li Du

AI总结:

本文提出CD-PIM,通过高带宽计算高效模式、低批量交错模式和计算高效CU设计,解决边缘设备上低批量大语言模型执行内存密集型矩阵向量乘法时的带宽瓶颈问题,实现显著加速。

摘要:

边缘设备上部署低批量的大语言模型(LLMs)在执行内存密集型通用矩阵向量乘法(GEMV)操作时面临关键的内存带宽瓶颈。尽管数字存内计算(PIM)架构有望加速GEMV操作,但现有配备PIM的边缘设备仍面临三个关键限制:带宽提升有限、混合工作负载中组件利用率低以及计算单元(CUs)的计算能力低。本文提出CD-PIM,通过三个关键创新来解决这些问题。首先,我们引入了高带宽计算高效模式(HBCEM),通过将每个银行划分为四个伪银行来增强带宽。其次,我们提出了一种低批量交错模式(LBIM),通过将GEMV操作与GEMM操作重叠以提高组件利用率。第三,我们设计了一种计算高效的CU,通过串行地将权重数据馈送到计算核心,以流水线方式执行增强的GEMV操作。此外,我们采用列映射来映射关键缓存矩阵,行映射来映射值缓存矩阵,从而充分利用CU资源。我们的评估显示,与仅GPU基准和最先进的PIM设计相比,CD-PIM在HBCEM模式下实现了单批次平均11.42倍和4.25倍的速度提升。此外,对于低批量大小,CD-PIM在LBIM模式下相比HBCEM实现了1.12倍的平均加速。

英文摘要:

Edge deployment of low-batch large language models (LLMs) faces critical memory bandwidth bottlenecks when executing memory-intensive general matrix-vector multiplications (GEMV) operations. While digital processing-in-memory (PIM) architectures promise to accelerate GEMV operations, existing PIM-equipped edge devices still suffer from three key limitations: limited bandwidth improvement, component under-utilization in mixed workloads, and low compute capacity of computing units (CUs). In this paper, we propose CD-PIM to address these challenges through three key innovations. First, we introduce a high-bandwidth compute-efficient mode (HBCEM) that enhances bandwidth by dividing each bank into four pseudo-banks through segmented global bitlines. Second, we propose a low-batch interleaving mode (LBIM) to improve component utilization by overlapping GEMV operations with GEMM operations. Third, we design a compute-efficient CU that performs enhanced GEMV operations in a pipelined manner by serially feeding weight data into the computing core. Forth, we adopt a column-wise mapping for the key-cache matrix and row-wise mapping for the value-cache matrix, which fully utilizes CU resources. Our evaluation shows that compared to a GPU-only baseline and state-of-the-art PIM designs, our CD-PIM achieves 11.42x and 4.25x speedup on average within a single batch in HBCEM mode, respectively. Moreover, for low-batch sizes, the CD-PIM achieves an average speedup of 1.12x in LBIM compared to HBCEM.

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

↑