SpecMoE: A Fast and Efficient Mixture-of-Experts Inference via Self-Assisted Speculative Decoding
Organizations: KAIST · UNIST
Abstract
The Mixture-of-Experts (MoE) architecture has emerged as a promising approach to mitigate the rising computational costs of large language models (LLMs) by selectively activating parameters. However, its high memory requirements and sub-optimal parameter efficiency pose significant challenges for efficient deployment. Although CPU-offloaded MoE inference systems have been proposed in the literature, they offer limited efficiency, particularly for large batch sizes. In this work, we propose SpecMoE, a memory-efficient MoE inference system based on our self-assisted speculative decoding algorithm. SpecMoE demonstrates the effectiveness of applying speculative decoding to MoE inference without requiring additional model training or fine-tuning. Our system improves inference throughput by up to , while significantly reducing bandwidth requirements of both memory and interconnect on memory-constrained systems.
Figures & tables
| Model | Experts | Layers (MoE / total) | Routing | Skewness | Capacity (GB) |
|---|---|---|---|---|---|
| NLLB-MoE | 128 | 6 / 24 | Top-2 | 0.84 | 54 |
| Mixtral-8x7B | 8 | 32 / 32 | Top-2 | 0.32 | 94 |
| Llama-4-Scout | 16 | 48 / 48 | Top-1 | 0.59 | 218 |
| Metric | Random | HotGlobal | HotTemporal |
|---|---|---|---|
| Tokens generated per step | 6.812 | 7.220 | 7.265 |
| Performance speedup | 1.000 | 1.084 | 1.143 |
| Metric | Number of experts in draft model ( ) | |||
|---|---|---|---|---|
| 2 | 4 | 8 | 16 | |
| Tokens generated per step | 6.929 | 7.265 | 7.620 | 7.819 |
| Throughput (tokens/sec) | 116.401 | 122.974 | 121.309 | 117.157 |
Mixture-of-Experts Inference
Mixture-of-experts inference studies how to run sparsely activated expert models efficiently while preserving their quality.
See all 175 papers