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

预取引导路由:用于卸载型混合专家解码的确定性缓存感知专家选择

Prefetch-Steered Routing: Deterministic Cache-Aware Expert Selection for Offloaded Mixture-of-Experts Decoding

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

Siming Huang

AI总结:

针对MoE模型卸载解码中缓存感知路由的时序依赖问题,提出预取引导路由(PSR),在多模型基准测试中实现了解码速度提升,部分场景下性能优于Cache-Prior等方法。

摘要:

当混合专家(MoE)模型无法放入GPU内存时,批量大小为1的解码主要受限于从主机内存复制专家权重的操作。缓存感知路由通过使路由偏向于驻留的专家来减少这些复制操作,但结合异步预取时,会导致模型的输出依赖于传输时序,因此未模拟该时序的测试框架无法评估部署后的模型。我们提出预取引导路由(PSR):路由基于确定性逻辑缓存,每一层、每个token最多将下一层路由预测的n个专家插入该缓存,物理复制仅影响延迟。在RTX 4090上,当OLMoE-1B-7B模型分别有50%和25%的专家驻留时,PSR的解码速度比采用LRU的精确路由快2.2-2.3倍,比Cache-Prior工作点快25-30%,平均基准差异分别为+0.1和+0.5(95%下界为-0.8和-0.3)。在贪心生成中,其相对于Cache-Prior的优势取决于工作负载,在50%驻留率的HumanEval任务上优势反转。在Moonlight-16B-A3B模型上,当驻留率为37.5%时,PSR比采用LRU的精确路由快1.9倍;在Cache-Prior的延迟水平下,其在8个基准中的3个上表现显著更好。在Qwen3.6-35B模型上,由于复制操作相对于计算的成本较低,PSR在似然基准上保持了相对于Cache-Prior的优势,但速度优势消失。蒸馏训练的门控网络未起到帮助作用。在OLMoE模型上,采用块级专家选择的投机解码比使用10亿参数自回归草稿模型的PSR慢;但在Qwen3.6模型上,采用块草稿模型的投机解码在64个计时提示上,比任何受限于其GPU内存的自回归配置快2.1-2.9倍。

英文摘要:

When a Mixture-of-Experts (MoE) model does not fit in GPU memory, batch-1 decoding is dominated by copying expert weights from host memory. Cache-aware routing reduces these copies by biasing the router toward resident experts, but combined with asynchronous prefetching it makes the model's outputs depend on transfer timing, so a harness that does not simulate that timing no longer evaluates the deployed model. We propose prefetch-steered routing (PSR): routing conditions on a deterministic logical cache, into which at most n experts predicted by the next layer's router are inserted per layer and token; physical copies affect only latency. On OLMoE-1B-7B with 50% and 25% of experts resident on an RTX 4090, PSR decodes 2.2-2.3x faster than exact routing with LRU and 25-30% faster than the Cache-Prior operating point, with mean benchmark differences of +0.1 and +0.5 points (95% lower bounds -0.8 and -0.3). In greedy generation its lead over Cache-Prior depends on the workload and reverses on HumanEval at 50% residency. On Moonlight-16B-A3B, PSR is 1.9x faster than exact routing with LRU at 37.5% residency and, at the latency of Cache-Prior, significantly better on three of eight benchmarks. On Qwen3.6-35B-A3B, where copies are cheap relative to computation, PSR keeps its advantage over Cache-Prior on the likelihood benchmarks but not its speed. Distillation-trained gates did not help. Speculative decoding with block-level expert selection was slower than PSR with a 1B autoregressive drafter on OLMoE, but with a block drafter on Qwen3.6 it was 2.1-2.9x faster than any autoregressive configuration with at most its GPU memory on the 64 prompts we timed.

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

↑