arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.06567cs.LGcs.DCcs.NI
收藏

SlimCaching: 边缘网络中混合专家的边缘缓存

SlimCaching: Edge Caching of Mixture-of-Experts for Distributed Inference

Department of Electrical and Computer Engineering, The University of Hong Kong(电子与计算机工程系,香港大学)

Qian Chen, Xianhao Chen, Kaibin Huang

AI总结:

SlimCaching通过优化边缘服务器上的专家缓存,减少MoE模型的推理延迟,采用贪心分解和动态规划方法解决非子模性问题。

摘要:

混合专家(MoE)模型通过为每个输入只激活一小部分相关专家来提高大语言模型(LLMs)的可扩展性。然而,MoE模型中专家网络的数量庞大,给边缘设备带来了显著的存储/内存负担。为了解决这一挑战,我们考虑一种场景,其中专家分布在边缘网络中进行分布式推理。基于流行的Top-K专家选择策略,我们通过在存储限制下优化边缘服务器上的专家缓存,提出了一个最小化延迟的问题。当K=1时,该问题转化为一个具有背包约束的单调子模最大化问题,我们为此设计了一种基于贪心的算法,具有(1 - 1/e)的近似保证。对于一般情况K≥1,同一MoE层内专家的协同激活引入了非子模性,这使得贪心方法无效。为解决这一问题,我们提出了一种连续贪心分解方法,将原始问题分解为一系列子问题,每个子问题通过动态规划方法解决。此外,我们设计了一种基于max-convolution技术的加速算法,以在多项式时间内获得具有证明保证的近似解。在各种MoE模型上的模拟结果表明,我们的方法相比现有基线显著减少了推理延迟。

英文摘要:

Mixture-of-Experts (MoE) models improve the scalability of large language models (LLMs) by activating only a small subset of relevant experts per input. However, the sheer number of expert networks in an MoE model introduces a significant storage/memory burden for an edge device. To address this challenge, we consider a scenario where experts are dispersed across an edge network for distributed inference. Based on the popular Top-$K$ expert selection strategy, we formulate a latency minimization problem by optimizing expert caching on edge servers under storage constraints. When $K=1$, the problem reduces to a monotone submodular maximization problem with knapsack constraints, for which we design a greedy-based algorithm with a $(1 - 1/e)$-approximation guarantee. For the general case where $K\geq1$, expert co-activation within the same MoE layer introduces non-submodularity, which renders greedy methods ineffective. To tackle this issue, we propose a successive greedy decomposition method to decompose the original problem into a series of subproblems, with each being solved by a dynamic programming approach. Furthermore, we design an accelerated algorithm based on the max-convolution technique to obtain the approximate solution with a provable guarantee in polynomial time. Simulation results on various MoE models demonstrate that our method significantly reduces inference latency compared to existing baselines.

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

↑