R312 · Infrastructure for agents at scale › Inference providers and serving reliability

Speculative decoding on fine-grained MoEs is fastest at batch size 1

Read the original

inference-optimizationspeculative-decodingmoeserving

Source: "Why Speculative Decoding Works Better Than Predicted on Sparse MoE Models", arXiv 2610.38981v1 [cs.LG], 28 October 2026, CC BY 4.0. Ekagra Ranjan, Komal K. Teru, Bharat Venkitesh, Acyr Locatelli (Cohere). NeurIPS 2026 poster. No code release is mentioned.

The claim being overturned

Speculative decoding verifies several draft tokens in one forward pass, which pays off because decoding is memory-bandwidth-bound: you are loading weights, not doing arithmetic. For a mixture-of-experts model that logic appears to break down. Verifying K+1 tokens routes those tokens to different experts, so verification loads more expert weights than a single decode step would, and the prior result in this area predicted a concave speedup curve — gains peaking at some intermediate batch size, because at batch 1 the extra expert loading eats the benefit, and at high batch the experts saturate anyway.

This paper evaluates that across 10 sparse MoE models spanning 30B to 1T parameters and 8 to 512 experts, and finds the prediction holds only for the older, coarser architectures. Recent fine-grained MoEs — many small experts — break the trend and often achieve their highest speedup at batch size 1.

That matters because batch 1 is where a great deal of inference now lives: single-user agent loops, long RL rollouts, test-time scaling, and anything running under a tight memory budget. It is the regime where latency is the whole game.

The two regimes

ArchitectureCurve shapeExamples
Less sparse, larger per-expert weightsConcave, peaks at intermediate batchMixtral-8x7B, Qwen2-57B
Sparser, smaller experts (fine-grained)Non-concave, peaks at or near batch 1Qwen3-235B, Kimi-K2.5

The split is not perfectly clean, and the paper says so: one model is non-concave despite a lower measured target efficiency than a model that is concave. More usefully, target efficiency varies substantially within a single model family as you change the speculative-decoding method, tensor-parallel degree and precision. Raising TP or lowering precision increases batch-1 target efficiency and shifts the peak toward smaller batches. So the regime a model falls into is a property of the deployed configuration, not of the checkpoint.

The curve shape is robust to the draft length: sweeping K over 3, 5 and 7 leaves each model in its own regime, with larger K mostly shifting the curve down (the exception being a model whose stronger drafter keeps K=5 competitive).

Why the bytes model is wrong

The natural cost model — count the unique experts verification activates, multiply by their weight bytes — underestimates efficiency even when you feed it the correct unique-expert count. The paper decomposes the error into two independent effects, and the useful finding is that they are roughly equal in size. Anyone who has heard "it's the L2 cache" as the explanation is half right.

1. Routing has temporal inertia

Consecutive tokens do not route independently. Measured step-1 expert overlap runs from about 0.30 to 0.45 on the fine-grained models, against an independence baseline of 0.04 to 0.12. Across the eight measured models, mean overlap declines from 35.1% at step 1 to 26.4% at step 3 — so the effect decays with distance but is still present several tokens out.

The decomposition is done at three levels — uniform, empirical-marginals-but-independent, and empirical — which separates "some experts are just popular" from genuine temporal correlation. Popularity is almost irrelevant: the uniform-to-independence step buys at most 8%, typically 2–5%. Temporal overlap dominates in 6 of 8 models, contributing 69–92% of total overlap. The exceptions are the coarse models, whose large combinatorial baseline leaves little room for a temporal effect.

The consequence is sub-linear verification cost. On one fine-grained model, verifying four tokens loads 2.4x the unique experts per layer rather than the 3.6x uniform routing predicts — a 33% reduction. Worth noting this is that model's figure: on the coarse model the saving is far smaller (2.5x against 2.75x), which is consistent with the rest of the paper but means the headline "a third fewer" does not transfer.

2. The GPU does not charge by the byte

Profiling one fine-grained model at batch 1 with kernel timing and hardware counters gives a three-step correction from the weight-bytes prediction to the measured number:

StepCorrectionTarget efficiencyGap closed
0Weight-bytes baseline: MoE 66.7% of forward time, scaling 2.44x → predicted cost 1.96x0.511—
1MoE fraction 67% → 33% of actual GPU time0.67944%
2MoE scaling 2.44x → 1.57x (cache reuse plus dilution)0.84343%
3Non-MoE 1.0 → 0.94 (amortisation)0.8728%
Measured, kernel-level sum0.872
Measured, wall-clock sweep0.896

So the bytes model predicts a verification forward pass costing 1.96x a normal decode step, and the measured cost is 1.15x.

Step 1 is the one people miss. MoE layers hold two thirds of the weights but account for only a third of batch-1 forward time, because MoE kernels achieve good memory-bandwidth utilisation while attention kernels leave the GPU largely idle. Weight share is simply not time share. Step 2 is the cache story: small experts fit in L2, so when draft tokens co-route, the repeated reads are served from cache rather than HBM. The residual between the kernel-level sum and wall-clock is attributed to inter-kernel scheduling gaps inside the CUDA graph.

The train-free design tool

The paper fits a maximum-entropy Iterative Proportional Fitting model that predicts unique-expert counts from routing-overlap statistics, with under 4% error on every model measured (per-model errors run 0.1% to 3.1%). Feeding synthetic routing from that model through real kernels with dummy weights reproduces the real speedup curves qualitatively.

This is the most practically interesting contribution: it lets you screen target and draft architectures for speculative-decoding friendliness before training anything. Its stated limits are honest — IPF matches pairwise overlap but not higher-order routing structure or position dependence in expert marginals, and the paper does not know which architectural choices determine temporal overlap in the first place, nor how well overlap statistics transfer across model families and sparsity patterns.

The negative result worth keeping

Rejected draft tokens reuse experts just as much as accepted ones — on one model, first-rejection tokens actually overlap more with the preceding token than accepted ones do (0.488 against 0.447). The paper uses this to argue that measuring overlap on accepted continuations is a conservative proxy for verification cost. The flip side, which follows directly: routing behaviour carries no signal about which drafts will be rejected, so there is no cheap early-exit heuristic hiding in the router.

Failure modes and caveats for anyone acting on this

  1. The regime is a property of your configuration, not the model. SD method, TP degree and precision all move target efficiency within one family. Benchmark your deployment, not the paper's.

  2. Two of the headline numbers are single-model figures. The 33% unique-expert reduction and the 1.15x-against-1.96x correction are both from one fine-grained model at batch 1 on one accelerator at one precision. The direction generalises across the 10 models; the magnitudes do not.

  3. Everything is measured on one serving stack at a pinned commit with one drafter family and one base dataset. Kernel behaviour — which is half the effect — is exactly what changes when the stack does.

  4. The mechanism is hardware-specific. The cache-reuse effect depends on experts fitting in L2. A larger expert, a different accelerator, or a different kernel implementation can erase it, and the paper notes the specific mechanisms vary across hardware and kernels.

  5. No early-exit shortcut. See above. Do not plan a rejection predictor around router statistics.

  6. Not an architecture recommendation. Nothing here says fine-grained MoEs are better models; it says they are better suited to low-batch speculative inference than was believed.

Review checklist

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.