重新思考用于3D堆叠近内存LLM解码的计算子系统:微架构与调度的协同设计
Rethinking Compute Substrates for 3D-Stacked Near-Memory LLM Decoding: Microarchitecture-Scheduling Co-Design
AI总结:
本文重新设计3D堆叠近内存LLM解码的计算子系统,通过改进微架构和调度策略,提高内存带宽利用率和能效,实现更高性能。
摘要:
大型语言模型(LLM)解码是主要的推理瓶颈,因其低算力强度使其性能高度依赖内存带宽。3D堆叠近内存处理(NMP)提供了比传统离芯片接口高得多的本地内存带宽,使其成为解码加速的有前景的子系统。然而,我们的分析显示,这种带宽优势也使许多解码操作重新进入计算受限的领域。在逻辑芯片的紧缩面积预算下,计算子系统本身的设计因此成为首要挑战。因此,我们重新思考了先前3D堆叠NMP设计的计算微架构。首先,我们用更节省面积的流水线数组取代了先前的MAC树计算单元,并进一步观察到解码操作表现出显著的形状多样性,使流水线数组形状和数据流的可重新配置性对于维持高利用率至关重要。基于这一见解,我们继续利用两个关键机会:本地内存带宽减少了对大芯片缓冲器的需求,而现有的向量核心,最初设计用于处理辅助张量计算,已经提供了多端口缓冲所需的控制逻辑和细粒度灵活性,使我们能够以高度节省面积的方式统一这两种结构。基于这些见解,我们提出了第一个针对3D堆叠NMP LLM解码的计算微架构,专门设计以满足低面积成本、高带宽操作和细粒度可重新配置性的联合要求。我们进一步提出了一个多核调度框架。与Stratum相比,我们的设计在密集和MoE模型上分别实现了平均2.91倍的速度提升和2.40倍的能效提升。
英文摘要:
Large language model (LLM) decoding is a major inference bottleneck because its low arithmetic intensity makes performance highly sensitive to memory bandwidth. 3D-stacked near-memory processing (NMP) provides substantially higher local memory bandwidth than conventional off-chip interfaces, making it a promising substrate for decode acceleration. However, our analysis shows that this bandwidth advantage also shifts many decode operators on 3D-stacked NMP back into the compute-bound regime. Under the tight area budget of the logic die, the design of the compute substrate itself therefore becomes a first-order challenge. Therefore, we rethink the compute microarchitecture of prior 3D-stacked NMP designs. First, we replace prior MAC tree-based compute units with a more area-efficient systolic array, and we further observe that decode operators exhibit substantial shape diversity, making reconfigurability in both systolic array shape and dataflow essential for sustaining high utilization. Building on this insight, we continue to exploit two key opportunities: the high local memory bandwidth reduces the need for large on-chip buffers, and the existing vector core, originally designed to handle auxiliary tensor computations, already provides much of the control logic and multi-ported buffering required for fine-grained flexibility for systolic array, allowing us to unify the two structures in a highly area-efficient manner. Based on these insights, we present the first compute microarchitecture tailored to 3D-stacked NMP LLM decoding, explicitly designed to satisfy the joint requirements of low area cost, high-bandwidth operation, and fine-grained reconfigurability. We further propose an multi-core scheduling framework. Compared with Stratum, our design achieves an average 2.91x speedup and 2.40x higher energy efficiency across both dense and MoE models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。