Manuscript Offprint

arXiv:2610.34721

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

Siming Huang

Abstract

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.3×2.2–2.3\times 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.9×1.9\times 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.9×2.1–2.9\times faster than any autoregressive configuration with at most its GPU memory on the 64 prompts we timed.

1. Introduction

Sparse Mixture-of-Experts (MoE) layers (Shazeer et al., 2017; Fedus et al., 2022) decouple a model's parameter count from its per-token compute. This makes MoE models attractive for local, single-user inference, but their total weight often exceeds the memory of a consumer GPU. The standard remedy is expert offloading: non-expert weights stay on the GPU, experts live in host memory, and a per-layer GPU cache holds a subset of them (Eliseev & Mazur, 2023; Xue et al., 2024). At batch size one, each decoded token activates K experts in every layer, and every cache miss is a PCIe copy on the critical path. Prefetching hides part of this latency (Hwang et al., 2024; Song et al., 2024; Shen et al., 2025), but when the router's choices are hard to predict and the link is close to saturated, transfers still dominate.

A second family of methods changes which experts run. Cache-aware routing adds a bonus to the router logits of resident experts (Skliar et al., 2025; Bambhaniya et al., 2024); expert substitution replaces missing experts with resident ones (Zhu et al., 2025); speculative execution runs the experts predicted ahead of time instead of the router's choices (Madan et al., 2026; Li et al., 2026). Bias and substitution trade a small deviation from the original model for large reductions in transfers; speculative execution instead moves transfers earlier. SpecMD (Hoang et al., 2026) studies how such routing, prefetching, eviction and miss-handling policies interact, including the routing bonus together with cross-layer prefetching. Two questions remain open.

What is the model being evaluated? Once routing depends on the cache, the cache becomes part of the model's semantics. If the cache is filled by asynchronous prefetches, the experts that are resident when the router runs depend on PCIe timing, contention, and scheduler parameters. The same prompt can then produce different outputs on different machines or under different load, and unless the evaluation harness reproduces the engine's timing, the quality it measures belongs to a different function from the one deployed. We show that this is a measurable effect, not a theoretical one (Section 3). Skliar et al. (2025) note that their algorithm is deterministic, which holds because their cache has no

1^{1}The Hong Kong University of Science and Technology (Guangzhou), Guangzhou, China. Correspondence to: Siming HUANG shuang886@connect.hkust-gz.edu.cn.

Preprint. October 27, 2026.

asynchronous prefetching. In SpecMD the bonus applies to the GPU-resident set, which an asynchronous prefetch thread fills, and in SMoE and MoE-CORE substitution uses whatever the prefetcher has made resident; this is our reading of their designs, and none of the three discusses the issue (Hoang et al., 2026; Zhu et al., 2025; Yang et al., 2026a). Speculating Experts and CommitMoE avoid it by executing predictions that do not depend on the cache, at the cost of executing every misprediction.

How should routing bias and prefetching be combined? SpecMD reports that the routing bonus accounts for 10–20% of the speedup in some of its configurations. We find that how the two are combined matters. Prefetching based on token history or expert popularity gives exact routing little in our engine and clearly hurts under cache-aware routing: the bias already keeps routing on resident experts, so most prefetches are wasted and delay demand copies. Prefetching the experts that the next layer's router predicts from the current hidden state behaves differently: the routing bonus then applies to experts the router was likely to choose anyway, so the bias steers routing onto in-flight experts rather than away from the router's preference.

We turn these observations into a design, prefetch-steered routing (PSR; Section 4):

• Routing conditions only on a logical cache, a deterministic function of the token history and the policy. Physical copies are scheduled separately and change latency, never outputs. The evaluation harness and the deployed engine therefore implement the same routing policy; they differ only in floating-point numerics, which under greedy decoding change individual outputs but, in benchmarks generated by the engine itself, not the differences between configurations beyond the resolution of that check, about four points per task (Section 6.4).

• A deterministic budget decides which predicted experts receive the routing bonus: at each layer and token, at most n (1 or 2) of the next layer's predicted experts are inserted into the logical cache when they are predicted, independently of when their copies complete. A small budget keeps the added copies within what the link can carry; unbounded insertion gives the best quality but commits more transfers than the link can overlap.

• A score-based eviction priority (exponential moving averages of the router’s choices plus a token prior) replaces LRU, as router-informed replacement policies do in systems with exact routing (Zhong et al., 2025; Yang et al., 2026a).

We implement PSR in a batch-1 offloading engine with CUDA graphs and a fused MoE kernel, and in a HuggingFace evaluation harness that runs the identical logical cache model (Section 5). On OLMoE-1B-7B-Instruct (Muennighoff et al., 2025) with 50% and 25% of experts resident on an RTX 4090 (Section 6):

• PSR decodes at 10.7 ms/token at 50% residency, 2.3× faster than exact routing with LRU (24.7 ms) and 1.9× faster than the best exact-routing cache and prefetch configuration we found (20.5 ms). At 25% residency it runs at 19.2 ms/token (2.2× and 2.0×).

• Against the operating point of Cache-Prior routing (Skliar et al., 2025) ( λ=0.2\lambda = 0.2), PSR has 25% (50%) and 30% (25%) lower latency; the mean benchmark difference is +0.1 and +0.5 points, with 95% lower bounds of -0.8 and -0.3. At matched latency it is ahead by +1.7 ±1.0 and +2.2 ±1.0 points; after Holm's correction it is better on HellaSwag (both sizes) and MMLU (25%) and worse on no task. These latencies are teacher-forced; in greedy generation on the benchmark prompts at 50% residency, the latency gap to Cache-Prior is 12% on GSM8K and 18% on IFE-val, and Cache-Prior is faster on HumanEval; at 25% residency PSR stays 19–28% faster on all three (Section 6.4).

• Speculative execution of predicted experts (Madan et al., 2026) is 1.9–2.0× slower than PSR and not significantly better on any benchmark, because it moves transfers earlier without reducing them.

• On Moonlight-16B-A3B (Liu et al., 2025), a DeepSeek-V3-style model (DeepSeek-AI, 2024) that must be offloaded on this GPU, PSR transfers without retuning (Section 6.8). At every cache size we ran, the latency–divergence frontier consists of lossless exact routing and PSR configurations. With 37.5% of experts resident it runs at 22.6 ms/token, 1.9×1.9 \times faster than exact routing with LRU. At the same latency as Cache-Prior it is ahead by +1.6±0.9+1.6 \pm 0.9 points on average over eight benchmarks, significantly after correction on three of them.

• On Qwen3.6-35B-A3B (Qwen Team, 2026) in FP8, with 256 experts per layer and expert copies a quarter the size of OLMoE's, decoding is bounded by computation (Section 6.9). Every cache-aware configuration runs within 3 ms/token of the fastest, and PSR is only 1.25×1.25 \times faster than exact routing with LRU at 25% residency. At the same teacher-forced latency as Cache-Prior it has 0.56 times its KL and is significantly better on MMLU and HellaSwag, with no significant difference on the generative tasks; in free generation Cache-Prior is 4–6% faster. PSR's latency advantage therefore requires copies to be a large share of the time per token.

Quality is measured with per-question paired tests on MMLU, ARC-Challenge, HellaSwag, GSM8K, BBH (chain-of-thought), IFEval, HumanEval and MBPP (Section 6.3). We also report a negative and a conditional result. Training the gate (distillation to the frozen model with learned switching margins and LoRA adapters, and the same for PSR's own router) does not improve benchmark quality over training-free cache-aware routing at the same transfer budget (Section 6.10). Speculative decoding with block-level expert selection (Liang et al., 2026) reduces the copies per token below PSR's when drafts are accepted in long runs, but with a 1B autoregressive drafter on OLMoE it is slower than PSR on both tasks we timed. With a block drafter on Qwen3.6 it is 2.1−2.9×2.1-2.9\times faster than the fastest autoregressive configuration with at most its GPU memory on the 64 prompts we timed, whose scores detect only large losses (Section 7).

Scope. We study three models. OLMoE fits in the 24 GB of an RTX 4090 in bf16, so for it we emulate memory pressure by capping the per-layer expert cache; Moonlight's 31 GB and Qwen3.6's 37 GB (FP8) do not fit, so their offloading is real. On Qwen3.6 we ran six of the eight benchmarks. We do not compare against complete external systems such as llama.cpp, MoE-Infinity or CPU-execution systems (Kamahori et al., 2024; Chen et al., 2025a); all baselines run in our engines. Section 9 discusses these limits.

References (67)