Less Experts, Faster Decoding: Cost-Aware Speculative Decoding for Mixture-of-Experts
Summary
EcoSpec is a novel cost-aware speculative decoding framework designed to enhance the inference efficiency of large-scale Mixture-of-Experts (MoE) models. It addresses the "expert scattering" problem, where confidence-driven speculative decoding in MoE models can activate disjoint sets of experts, increasing memory traffic and reducing speedup. EcoSpec integrates a lightweight expert predictor and a dynamic expert buffer into the draft selection process, prioritizing candidate token paths that reuse existing experts while preserving high acceptance likelihood. This approach avoids modifying the target-model verification rule. Evaluated on DeepSeek-V3.1 (671B), Qwen3-235B-A22B, and GPT-OSS-120B across diverse benchmarks, EcoSpec consistently reduces active expert footprints and improves end-to-end decoding speed, achieving up to 1.62x speedup.
Key takeaway
For machine learning engineers deploying large Mixture-of-Experts (MoE) language models, you should re-evaluate speculative decoding strategies. Standard methods, focused solely on acceptance likelihood, can lead to "expert scattering" and increased memory traffic, hindering actual speedup. Implement cost-aware draft selection, such as EcoSpec's approach, to explicitly balance acceptance probability with marginal expert activation cost. This will reduce verification latency and HBM traffic, significantly improving end-to-end inference throughput for your MoE models.
Key insights
EcoSpec balances draft acceptance likelihood with marginal expert activation cost for MoE inference.
Principles
- Expert scattering increases memory traffic in MoE speculative decoding.
- MoE verification latency is sensitive to expert overlap and reuse.
- Cost-aware draft selection reduces expert footprint without sacrificing acceptance.
Method
EcoSpec uses a lightweight expert predictor to estimate token-expert activations, a global expert buffer to track covered experts, and a cost-aware selection algorithm to prioritize draft paths balancing acceptance likelihood with marginal expert cost.
In practice
- Achieve up to 1.62x speedup on Qwen3-235B-A22B.
- Reduce HBM read traffic by 11.2 GB/step on Qwen3-235B-A22B.
- Applicable to DeepSeek-V3.1, Qwen3-235B-A22B, GPT-OSS-120B.
Topics
- Mixture-of-Experts
- Speculative Decoding
- LLM Inference
- Memory Optimization
- Expert Routing
- DeepSeek-V3.1
Best for: NLP Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, AI Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.