arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.02408cs.LGcs.DS
收藏

混合专家大语言模型的缓存管理——扩展版

Cache Management for Mixture-of-Experts LLMs -- extended version

CNRS(法国国家科学研究中心);International Laboratory on Learning Systems(学习系统国际实验室);École Normale Supérieure de Lyon(里昂高等师范学院);CNRS IN2P3 Computing Center(法国国家科学研究中心IN2P3计算中心)

Spyros Angelopoulos, Loris Marchal, Adrien Obrecht, Bertrand Simon

AI总结:

针对混合专家大语言模型的缓存管理需求,提出新型分页问题模型,证明类LRU策略的理论性能下界,设计分层LRU扩展算法,实验验证其效果优于经典分页策略。

摘要:

大语言模型(LLM)已在各类任务中展现出卓越能力。LLM成功部署的主要挑战之一是内存管理,因为这类模型通常包含数十亿参数。为此,研究人员提出了基于混合专家(Mixture-of-Experts)的架构,旨在减少生成单个token时激活的参数量。这也引发了一个同等关键的问题:如何高效管理系统有限的缓存,即应将常用专家存储在高速缓存而非速度更慢的二级内存中。\n 在本研究中,我们提出并研究了一种用于建模专家管理优化的新型分页问题。我们的公式同时涵盖了LLM的分层架构以及专家高效缓存的需求。我们首先给出了确定性算法和随机算法竞争比的下界,结果表明在温和假设下,类LRU(最近最少使用)策略具备良好的理论竞争性能。随后,我们针对当前问题提出了一种基于分层的LRU扩展算法。\n 在合成数据集和MoE实际使用轨迹上开展的大量仿真实验表明,我们的算法性能优于经典分页问题的相关策略,例如标准LRU。

英文摘要:

Large language models (LLMs) have demonstrated remarkable capabilities across a variety of tasks. One of the main challenges towards the successful deployment of LLMs is memory management, since they typically involve billions of parameters. To this end, architectures based on Mixture-of-Experts have been proposed, which aim to reduce the size of the parameters that are activated when producing a token. This raises the equally critical issue of efficiently managing the limited cache of the system, in that frequently used experts should be stored in the fast cache rather than in the slower secondary memory. In this work, we introduce and study a new paging problem that models expert management optimization. Our formulation captures both the layered architecture of LLMs and the requirement that experts are cached efficiently. We first present lower bounds on the competitive ratio of both deterministic and randomized algorithms, which show that under mild assumptions, LRU-like policies have good theoretical competitive performance. We then propose a layer-based extension of LRU that is tailored to the problem at hand. Extensive simulations on both synthetic datasets and actual traces of MoE usage show that our algorithm outperforms policies for the classic paging problem, such as the standard LRU.

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

↑