Efficient Mixture-of-Experts with Speculative Decoding via Expert Coactivation
Authors: Kumari Nishu, Han-Byul Kim, Santosh Chilkunda, Maxwell Horton, Arnav Kundu, Mohammad Samragh, Lauren Hannah, Mohammad Sekhavat, Nikhil Bhendawade, Manuel Ciosici, Iman Mirzadeh, Keivan Alizadeh Vahid, David Harrison, Irina Belousova, Mehrdad Farajtabar, Minsik Cho
Mixture-of-Experts (MoE) models are increasingly deployed alongside Speculative Decoding (SD) to accelerate inference, but combining the two is challenging. SD improves the inference speed of dense models by verifying groups of tokens in parallel. However, the inference speedup for SD with MoEs depends heavily on the number of tokens being verified. Using more verification tokens results in more experts being transferred from DRAM to the Neural Processing Unit (NPU), which increases the memory transfer cost. This negatively impacts model runtime, as memory transfer is typically the bottleneck in inference. In this work, we investigate the impact of MoE router design during training on the speed of MoEs with SD. We find that routers with high degrees of expert coactivation result in much faster runtimes, mitigating the impact of using more verification tokens. Motivated by this observation, we assess the impact of various router design choices on expert coactivation and runtime using billion-parameter transformer models. We find that combining a global load-balancing loss, shared experts, a consistency loss, and an autoregressive expert selection mechanism during training results in significantly stronger expert coactivation. This increased coactivation translates into higher overall runtime throughput: our exploration yields a model that improves throughput by 21% over MoE baselines, while maintaining on-par accuracy with the baseline MoE.
Figures & tables
Figure 1: An overview of our method. (a): Standard MoEs require transferring many experts to the Neural Processing Unit (NPU) during SD, creating a bottleneck. (b): Our MoE improves expert coactivation, which increases throughput. (c): Our method improves throughput across all SD verification window sizes. (d): Our method retains accuracy benefits of MoE while improving throughput.
Model
message drafting
message rewriting
tone adjustment
machine translation
Dense 352M
4.45×
2.54×
1.81×
3.50×
MoE X=16 K=4
3.38×
1.93×
1.42×
2.65×
Table 1: Throughput improvements provided by SD for a dense 352M parameter model, and an MoE with 353M active parameters and 1032M total parameters (with 16 experts and topk set to 4).
Figure 2: Larger window sizes increase the runtime of MoE FFN layers. (a): Larger window sizes increase the number of active experts. (b): Increasing the number of active experts increases the runtime. (c): The impact of window size on runtime.
Model
layers
model dim
FFN dim
Active Params (M)
Total Params (M)
Dense 352M
24
1024
3072
352
352
Dense 522M
24
1024
5376
522
522
Dense 692M
24
1024
7680
692
692
Dense 862M
24
1024
9984
862
862
Dense 1032M
24
1024
12288
1032
1032
MoE X=16 K=2
24
1024
12288
240
1032
Table 2: A summary of models used in experiments.
Figure 3: Expert coactivation analysis for an MoE baseline with local load-balancing ( MoE ), global load-balancing ( global ), 2 shared experts ( sx2 ), autoregressive expert selection ( aes ), and all of the above with our auxiliary consistency loss ( ours ). (a) The frequency of active experts in an 8-token window at layer 8. (b) The frequency of active experts in an 8-token window at layer 16. (c) The average number of active experts as a function of window size. (d) Our improvements in coactivation translate to improvements in throughput at all SD window sizes.
Figure 4: Perplexity (or accuracy) vs. throughput, comparing dense (green), MoE (red), and our MoE (blue), for (a) Wikipedia, (b) OpenWebText2, (c) Github, and (d) Question Answering. Our MoE produces the strongest results.
Figure 5: Perplexity (or accuracy) vs. throughput, ablating local load-balancing ( local ), global load-balancing ( global ), 2 shared experts ( sx2 ), autoregressive expert selection ( aes ), and combining global, sx2, and aes with our auxiliary consistency loss ( ours ), for (a) Wikipedia, (b) OpenWebText2, (c) Github, and (d) Question Answering.
Figure 6: Throughput vs. SD window size for 4 different tasks.
Figure 7: Perplexity vs. throughput for acceptance rates corresponding to 4 different tasks.
Speculative decoding (SD) accelerates autoregressive inference by leveraging the memory bound nature of decoding, verifying multiple draft tokens in a single forward pass. For mixture-of-experts (MoE) models, prior work predicts a concave speedup-batch size relationship, with gains peaking at intermediate batch sizes due to expert saturation. We evaluate this across 10 sparse MoE models (30B--1T parameters, 8--512 experts) and find recent fine-grained models break this trend, showing higher speedup at low batch size. We find verification cost is governed not only by activated-expert bytes, but also by temporal overlap across draft tokens and GPU execution dynamics. At low batch size, MoE layers in fine-grained models account for a much smaller share of runtime than of weights; on H100, kernel profiling attributes this mainly to higher bandwidth utilization of MoE kernels relative to attention, with L2 absorbing repeated reads of co-routed experts. Across draft tokens, routing overlap further reduces the unique experts activated during verification relative to independence assumptions. We model this effect using a maximum-entropy Iterative Proportional Fitting (IPF) framework that predicts unique expert counts from routing-overlap statistics with less than 4% error, and substantially narrows the gap to real-model curves and captures the qualitative low-batch trend from synthetic routing.
Speculative decoding accelerates Large Language Model (LLM) inference by verifying multiple drafted tokens in parallel. However, for Mixture-of-Experts (MoE) models, this parallelism introduces a severe bottleneck: large draft trees activate many unique experts, significantly increasing memory pressure and diminishing speedups from speculative decoding relative to autoregressive decoding. Prior methods reduce speculation depth when MoE verification becomes expensive. We propose MoE-Spec, a training-free verification-time expert budgeting method that decouples speculation depth from memory cost by enforcing a fixed expert capacity limit at each layer, loading only the experts that contribute most to verification and dropping the long tail of rarely used experts that drive bandwidth overhead. Experiments across multiple model scales and datasets show that this method yields 10--30% higher throughput than state-of-the-art speculative decoding baselines (EAGLE-3) at comparable quality, with flexibility to trade accuracy for further latency reductions through tighter budgets.
Bradley McDanel, Steven Li, Sruthikesh Surineni +1
Sparse Mixture-of-Experts (MoE) models have become an important approach for scaling Large Language Models (LLMs), but their inference efficiency depends strongly on expert activation patterns. Speculative decoding (SD) accelerates autoregressive generation by verifying multiple draft tokens in parallel, yet existing draft selection strategies primarily optimize acceptance likelihood. In large-scale MoE models, however, selecting draft tokens also determines the union of experts activated during verification. We observe that confidence-driven SD can introduce expert scattering: high-probability draft tokens may route to disjoint experts, increasing expert-weight memory traffic and reducing the speedup from speculation. Motivated by this observation, we revisit draft-tree selection under the non-uniform memory-cost structure of MoE inference. We propose EcoSpec, a cost-aware speculative decoding framework that incorporates predicted marginal expert activation cost into draft selection. With a lightweight expert predictor and a dynamic expert buffer, EcoSpec favors draft paths that preserve high acceptance likelihood while reusing experts already covered by the current verification set, without modifying the target-model verification rule. We evaluate EcoSpec on three large-scale MoE models, including DeepSeek-V3.1 (671B), Qwen3-235B-A22B, and GPT-OSS-120B, across reasoning, coding, question-answering, and dialogue benchmarks. EcoSpec consistently reduces active expert footprints and improves end-to-end decoding speed, achieving up to 1.62× speedup. These results show that accounting for expert activation cost is important for efficient speculative decoding in large-scale MoE models.
Jincheng Xie, Runheng Liu, Heyan Huang +4
Department of Mathematical Sciences, Tsinghua University, Beijing, China · School of Computer Science and Technology, Beijing Institute of Technology, Beijing, China · JDT AI Infra +2