arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.06252cs.AR
收藏

D-Legion:一种可扩展的多核架构,用于加速量化大语言模型中的矩阵乘法

D-Legion: A Scalable Many-Core Architecture for Accelerating Matrix Multiplication in Quantized LLMs

The University of Edinburgh(爱丁堡大学)

Ahmed J. Abdelmaksoud, Cristian Sestito, Shiwei Wang, Themis Prodromakis

AI总结:

本文提出D-Legion架构,通过自适应精度流体数组核心加速量化大语言模型的矩阵乘法,实现低延迟、高内存节省和高吞吐量。

摘要:

大型语言模型(LLMs)的性能提升与其显著的计算和内存需求密切相关。量化LLMs在极量化的模型中提供显著优势,推动了专用架构的发展。本文提出D-Legion,一种新颖的可扩展多核架构,利用多个自适应精度流体数组核心来加速量化LLMs的矩阵乘法。该架构由多个Legion组成,每个Legion包含一组自适应精度流体数组。D-Legion支持多种计算模式,包括量化稀疏和密集矩阵乘法。在完全稀疏或部分稀疏窗口内利用块结构稀疏性。此外,通过并行累加器减少部分求和(psums)的内存访问。进一步通过优化调度技术通过多播矩阵瓷砖跨Legions最大化数据重用。在Legion/core粒度上进行了全面的设计空间探索,以确定最优Legion配置。此外,D-Legion在两个BitNet模型的注意力工作负载上进行了评估,比最先进的工作实现了高达8.2倍的延迟降低、3.8倍的内存节省和3倍的psum内存节省。D-Legion,具有八个Legion和64个总核心,在1 GHz频率下实现了135.68 TOPS的峰值吞吐量。D-Legion的扩展版本,具有32个Legion,与Google TPUv4i相比,实现了总延迟降低2.5倍、总吞吐量提高2.3倍和总内存节省提高2.7倍。

英文摘要:

The performance gains obtained by large language models (LLMs) are closely linked to their substantial computational and memory requirements. Quantized LLMs offer significant advantages with extremely quantized models, motivating the development of specialized architectures to accelerate their workloads. This paper proposes D-Legion, a novel scalable many-core architecture, designed using many adaptive-precision systolic array cores, to accelerate matrix multiplication in quantized LLMs. The proposed architecture consists of a set of Legions where each Legion has a group of adaptive-precision systolic arrays. D-Legion supports multiple computation modes, including quantized sparse and dense matrix multiplications. The block structured sparsity is exploited within a fully-sparse, or partially-sparse windows. In addition, memory accesses of partial summations (psums) are spatially reduced through parallel accumulators. Furthermore, data reuse is maximized through optimized scheduling techniques by multicasting matrix tiles across the Legions. A comprehensive design space exploration is performed in terms of Legion/core granularity to determine the optimal Legion configuration. Moreover, D-Legion is evaluated on attention workloads from two BitNet models, delivering up to 8.2$\times$ lower latency, up to 3.8$\times$ higher memory savings, and up to 3$\times$ higher psum memory savings compared to state-of-the-art work. D-Legion, with eight Legions and 64 total cores, achieves a peak throughput of 135.68 TOPS at a frequency of 1 GHz. A scaled version of D-Legion, with 32 Legions, is compared to Google TPUv4i, achieving up to 2.5$\times$ lower total latency, up to 2.3$\times$ higher total throughput, and up to 2.7$\times$ higher total memory savings.

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

↑