TL;DR
Speculative decoding accelerates dense language models but struggles with Mixture-of-Experts (MoE) architectures because parallel token verification forces the system to load too many distinct experts from DRAM, creating a massive memory bottleneck. This paper introduces "expert coactivation"—a suite of training-time techniques that encourage neighboring tokens to share experts. The resulting method reduces memory transfer overhead and boosts inference throughput by 21% without sacrificing model accuracy.
What Problem Does This Paper Address?
To make large language models (LLMs) faster and cheaper, researchers often rely on two key techniques: Mixture-of-Experts (MoE) and Speculative Decoding (SD).
- MoE models save compute by only activating a small subset of "expert" networks for any given token.
- Speculative Decoding speeds up inference by using a tiny, fast "draft" model to predict a sequence of future tokens, which a large "target" model then verifies in parallel in a single step.
For standard dense models, verifying multiple tokens in parallel takes roughly the same time as verifying a single token because the bottleneck is simply loading the model's weights from memory (DRAM) to the processor (NPU). However, when you combine SD with MoE, this assumption breaks down.
Because different tokens often route to entirely different experts, a parallel verification window forces the NPU to pull a large number of unique experts from DRAM simultaneously. In the worst-case scenario, the model might have to load all of its experts, completely destroying the memory savings and computational efficiency that MoE was supposed to provide.
Methods
Rather than trying to fix this bottleneck at inference time with complex caching tricks, the authors propose changing how the MoE model is trained. They introduce four complementary techniques to encourage expert coactivation—ensuring that neighboring tokens naturally prefer overlapping sets of experts:
- Global Load-Balancing Loss: Standard MoE training uses a local load-balancing loss (calculated per micro-batch) to ensure all experts are utilized. However, this accidentally forces tokens within the same sequence to choose different experts. Switching to a global batch-level loss allows local clusters of tokens to share experts while maintaining overall balance across the entire training run.
- Shared Experts: The architecture always routes a portion of the token's computation through a fixed set of common experts, guaranteeing a baseline level of expert overlap for all tokens.
- Consistency Loss: The authors introduce a novel auxiliary loss using Kullback-Leibler (KL) divergence. This explicitly penalizes the model if the router's routing decisions (logits) for a token $i$ diverge too wildly from its neighbor $i+1$.
- Autoregressive Expert Selection: During inference, instead of selecting top-$k$ experts independently for each token, a new routing mechanism forces each subsequent token in the speculative window to retain a minimum number of experts chosen by the previous token.
Datasets
- Training: The models were trained from scratch on a massive, large-scale text corpus consisting of 6 trillion tokens.
- Evaluation:
- Language Modeling Perplexity: Evaluated on standard subsets including Wikipedia, OpenWebText2, and GitHub.
- Downstream Capabilities: Multiple-Choice Question Answering (MCQA) accuracy was measured using a combined suite of benchmarks: Arc Easy, Arc Challenge, Hellaswag, Lambada, PiQA, SciQ, and WinoGrande.
- Speculative Decoding Tasks: Runtimes were benchmarked across four distinct real-world tasks: message drafting, message rewriting, tone adjustment, and machine translation.
Key Insights and Ideas
- The Local Loss Trap: A major "aha!" moment in the paper is identifying that standard local load-balancing losses actively fight against speculative decoding. By forcing expert diversity within small token windows, standard training inadvertently optimizes models to be slow during parallel verification.
- Coactivation is a Hardware-Friendly Objective: Instead of modifying hardware or serving infrastructure, treating memory bandwidth as an optimization constraint during training yields a elegant, software-driven solution to a hardware bottleneck.
- Linear Cost Scaling: The authors confirm empirically that the runtime of an MoE layer scales linearly with the number of unique active experts loaded (Figure 2b), validating their core thesis that minimizing unique expert counts directly translates to speed.
Key Results
- 21% Throughput Boost: By combining all four techniques, the proposed MoE model achieves a 21% higher throughput compared to standard MoE baselines.
- Pareto-Optimal Performance: The model successfully maintains the exact same accuracy as the standard MoE baseline. It retains the characteristic 9% relative accuracy improvement that MoE models enjoy over dense models of equivalent active parameter sizes, while operating significantly faster.
Limitations and Future Work
- Sequential Dependency: The autoregressive expert selection mechanism introduces a small sequential dependency during the routing phase of the verification step. While the authors note its overhead is negligible, it breaks pure parallelism.
- Scale Limits: The experiments were conducted on billion-parameter scale models (up to 1B total / 353M active parameters). How these coactivation dynamics scale to massive 100B+ frontier models remains an open question.
- Target-Only Modification: This work focuses entirely on optimizing the target model's router. The authors note that future work could explore jointly optimizing the draft model's generation strategy to better align with the target model's coactivated experts.
Summary updated