arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.02675cs.ARcs.AI
收藏

HALO:面向低批量大语言模型推理的采用2.5D集成的内存中心异构加速器

HALO: Memory-Centric Heterogeneous Accelerator with 2.5D Integration for Low-Batch LLM Inference

Elmore Family School of Electrical and Computer Engineering, Purdue University(埃洛姆家族电气与计算机工程学院,普渡大学)

Shubham Negi, Kaushik Roy

AI总结:

针对低批量长上下文LLM推理中预填充与解码阶段需求差异大、现有方案研究不足的问题,提出融合HBM基CiD与片上模拟CiM的2.5D集成异构内存中心加速器HALO及阶段感知映射策略,在两款模型上实现最高18倍与2.5倍的加速比。

摘要:

大语言模型(LLM)的快速普及推动了高效推理需求的增长,尤其是在聊天机器人、个性化助手等对延迟敏感的应用中。与传统深度神经网络不同,LLM推理分为两个不同阶段:预填充阶段并行处理完整输入序列,解码阶段按顺序生成词元。这两个阶段的计算和内存需求差异极大,给加速器设计带来了特殊挑战。现有研究主要针对高批量推理进行优化,或仅在短输入上下文长度下评估,而对交互式应用至关重要的低批量、长上下文场景的研究仍十分不足。\n我们提出HALO——一款异构内存中心加速器,专门针对低批量LLM推理中预填充与解码阶段的独特挑战设计。HALO将基于高带宽内存(HBM)的DRAM内计算(Compute-in-DRAM, CiD)与片上模拟内存计算(Compute-in-Memory, CiM)集成,通过2.5D集成技术进行共封装。为进一步提升硬件利用率,我们提出了一种阶段感知映射策略,可适配预填充与解码阶段的不同需求:预填充阶段的计算密集型操作被映射到CiM,以利用其高吞吐量矩阵乘法能力;解码阶段的内存密集型操作在CiD上执行,以受益于DRAM内部数据移动的减少。此外,我们还分析了LLM在两种极端架构(全CiD架构与全片上模拟CiM架构)下的性能权衡,凸显了异构设计的必要性。我们在LLaMA-2 7B和Qwen3 8B模型上对HALO进行了评估。实验结果表明,映射到HALO的LLM相较于采用注意力优化映射的AttAcc,几何平均加速比最高可达18倍;相较于基于全CiD的映射方案CENT,加速比最高可达2.5倍。

英文摘要:

The rapid adoption of Large Language Models (LLMs) has driven a growing demand for efficient inference, particularly in latency-sensitive applications such as chatbots and personalized assistants. Unlike traditional deep neural networks, LLM inference proceeds in two distinct phases: the prefill phase, which processes the full input sequence in parallel, and the decode phase, which generates tokens sequentially. These phases exhibit highly diverse compute and memory requirements, which makes accelerator design particularly challenging. Prior works have primarily been optimized for high-batch inference or evaluated only short input context lengths, leaving the low-batch and long context regime, which is critical for interactive applications, largely underexplored. We propose HALO, a heterogeneous memory centric accelerator designed for these unique challenges of prefill and decode phases in low-batch LLM inference. HALO integrates HBM based Compute-in-DRAM (CiD) with an on-chip analog Compute-in-Memory (CiM), co-packaged using 2.5D integration. To further improve the hardware utilization, we introduce a phase-aware mapping strategy that adapts to the distinct demands of the prefill and decode phases. Compute bound operations in the prefill phase are mapped to CiM to exploit its high throughput matrix multiplication capability, while memory-bound operations in the decode phase are executed on CiD to benefit from reduced data movement within DRAM. Additionally, we present an analysis of the performance tradeoffs of LLMs under two architectural extremes: a fully CiD and a fully on-chip analog CiM design to highlight the need for a heterogeneous design. We evaluate HALO on LLaMA-2 7B and Qwen3 8B models. Our experimental results show that LLMs mapped to HALO achieve up to 18x geometric mean speedup over AttAcc, an attention-optimized mapping and 2.5x over CENT, a fully CiD based mapping.

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

↑