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

LLaMCAT:通过缓存仲裁和限流优化大语言模型推理

LLaMCAT: Optimizing Large Language Model Inference with Cache Arbitration and Throttling

The Hong Kong University of Science and Technology(香港科技大学)

Zhongchun Zhou, Chengtao Lai, Wei Zhang

AI总结:

LLaMCAT通过缓存仲裁和限流技术优化大语言模型推理,实现1.26-1.58倍速度提升,填补LLM解码特定MSHR竞争的空白。

摘要:

大语言模型(LLMs)在各种应用中取得了前所未有的成功,但其巨大的内存需求对当前内存系统设计构成了重大挑战,尤其是在推理过程中。我们的工作针对基于最后级别缓存(LLC)的架构,包括GPU(例如NVIDIA GPU)和AI加速器。我们介绍了LLaMCAT,一种新的方法,用于优化LLC用于LLM推理。LLaMCAT结合了缺失状态保持寄存器(MSHR)和负载平衡意识的缓存仲裁与线程限流,以解决严格的带宽需求并最小化KV缓存访问中的缓存停滞。我们还提出了一种混合仿真框架,通过内存轨迹将分析模型与周期级仿真器结合,平衡架构细节和效率。实验表明,当系统主要受缺失处理吞吐量限制时,LLaMCAT实现了平均1.26倍的速度提升,而基线方法大多显示负向改进,因为它们未针对此场景进行优化。当缓存大小也受限时,我们的策略在未优化版本上实现了1.58倍的速度提升,并在最佳基线(dyncta)上实现了1.26倍的改进。总体而言,LLaMCAT是首个针对LLM解码特定的MSHR竞争问题的方法,填补了先前工作的空白。它为未来硬件平台加速LLM推理提供了实用的解决方案。

英文摘要:

Large Language Models (LLMs) have achieved unprecedented success across various applications, but their substantial memory requirements pose significant challenges to current memory system designs, especially during inference. Our work targets last-level cache (LLC) based architectures, including GPUs (e.g., NVIDIA GPUs) and AI accelerators. We introduce LLaMCAT, a novel approach to optimize the LLC for LLM inference. LLaMCAT combines Miss Status Holding Register (MSHR)- and load balance-aware cache arbitration with thread throttling to address stringent bandwidth demands and minimize cache stalls in KV Cache access. We also propose a hybrid simulation framework integrating analytical models with cycle-level simulators via memory traces, balancing architecture detail and efficiency. Experiments demonstrate that LLaMCAT achieves an average speedup of 1.26x when the system is mainly bottlenecked by miss handling throughput, while baselines mostly show negative improvements since they are not optimized for this scenario. When the cache size is also limited, our policy achieves a speedup of 1.58x over the unoptimized version, and a 1.26x improvement over the best baseline (dyncta). Overall, LLaMCAT is the first to target LLM decoding-specific MSHR contention, a gap in previous work. It presents a practical solution for accelerating LLM inference on future hardware platforms.

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

↑