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

SpecMD:关于推测专家预取的全面研究

SpecMD: A Comprehensive Study On Speculative Expert Prefetching

Apple(苹果公司)

Duc Hoang, Ajay Jaiswal, Mohammad Samragh, Minsik Cho

AI总结:

SpecMD研究了MoE缓存策略,提出Least-Stale算法,显著提升缓存命中率和TTFT性能。

摘要:

混合专家(MoE)模型能够实现稀疏专家激活,这意味着在每次推理过程中只使用模型参数的子集。然而,要将这种稀疏性转化为实际性能,需要专家缓存机制。先前的工作提出了以硬件为中心的缓存策略,但这些不同的缓存策略如何相互作用以及与不同硬件规格相互作用仍缺乏深入理解。为解决这一差距,我们开发了SpecMD,这是一个用于在各种硬件配置上基准测试随机缓存策略的标准框架。使用SpecMD,我们对几种MoE缓存策略进行了全面基准测试,通过受控环境和现实约束重现并扩展了先前的方法。我们的实验表明,MoE专家访问并不符合时间局部性假设(例如LRU、LFU)。受这一观察的启发,我们提出了Least-Stale,一种新的淘汰策略,利用MoE可预测的专家访问模式,将碰撞缺失减少到LRU的85倍。通过这些收益,我们在OLMoE上仅使用5%或0.6GB的VRAM缓存容量,就实现了超过88%的命中率,并在时间到第一个token(TTFT)上减少了高达34.7%。

英文摘要:

Mixture-of-Experts (MoE) models enable sparse expert activation, meaning that only a subset of the model's parameters is used during each inference. However, to translate this sparsity into practical performance, an expert caching mechanism is required. Previous works have proposed hardware-centric caching policies, but how these various caching policies interact with each other and different hardware specification remains poorly understood. To address this gap, we develop \textbf{SpecMD}, a standardized framework for benchmarking ad-hoc cache policies on various hardware configurations. Using SpecMD, we perform an exhaustive benchmarking of several MoE caching strategies, reproducing and extending prior approaches in controlled settings with realistic constraints. Our experiments reveal that MoE expert access is not consistent with temporal locality assumptions (e.g LRU, LFU). Motivated by this observation, we propose \textbf{Least-Stale}, a novel eviction policy that exploits MoE's predictable expert access patterns to reduce collision misses by up to $85\times$ over LRU. With such gains, we achieve over $88\%$ hit rates with up to $34.7\%$ Time-to-first-token (TTFT) reduction on OLMoE at only $5\%$ or $0.6GB$ of VRAM cache capacity.

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

↑