MoE-SpeQ: Speculative Quantized Decoding with Proactive Expert Prefetching and Offloading for Mixture-of-Experts

Wenfeng Wang, Jiacheng Liu, Xiaofeng Hou, Xinfeng Xia, Peng Tang, Mingxuan Zhang, Chao Li, Minyi GuoarXiv 2025 · OpenReview

Abstract

The immense memory requirements of state-of-the-art Mixture-of-Experts (MoE) models present a significant challenge for inference, often exceeding the capacity of a single accelerator. While offloading experts to host memory is a common solution, it introduces a severe I/O bottleneck over the PCIe bus, as the data-dependent nature of expert selection places these synchronous transfers directly on the critical path of execution, crippling performance. This paper argues that the I/O bottleneck can be overcome by trading a small amount of cheap, on-device computation to hide the immense cost of data movement. We present MoE-SpeQ, a new inference system built on a novel co-design of speculative execution and expert offloading. MoE-SpeQ employs a small, on-device draft model to predict the sequence of required experts for future tokens. This foresight enables a runtime orchestrator to prefetch these experts from host memory, effectively overlapping the expensive I/O with useful computation and hiding the latency from the critical path. To maximize performance, an adaptive governor, guided by an Amortization Roofline Model, dynamically tunes the speculation strategy to the underlying hardware. Our evaluation on memory-constrained devices shows that for the Phi-MoE model, MoE-SpeQ achieves at most 2.34x speedup over the state-of-the-art offloading framework. Our work establishes a new, principled approach for managing data-dependent memory access in resource-limited environments, making MoE inference more accessible on commodity hardware.

Introduction

Mixture-of-Experts (MoE) models, such as Mixtral and DeepSeek, have gained prominence for their ability to scale parameter counts while maintaining efficient computation by activating only a subset of "experts" per token. However, the total parameter count often exceeds 100GB, far surpassing the VRAM capacity of consumer-grade GPUs. While offloading experts to CPU RAM is a standard workaround, it creates a massive I/O bottleneck. Because expert selection is data-dependent, the GPU must wait for the PCIe bus to transfer parameters for every token, leading to GPU idle times as high as 99%.

MoE-SpeQ addresses this "synchronous stall" by introducing a "lookahead" strategy. By utilizing a tiny, 4-bit quantized version of the model on the GPU to predict future expert requirements, the system can prefetch experts in the background, effectively hiding data transfer latency.

Comparison of traditional sequential MoE serving vs. MoE-SpeQ parallel serving.

Methodology

MoE-SpeQ transforms idle waiting time into productive speculation through three primary components:

1. High-Fidelity Quantized Predictors

A key discovery of this work is that a heavily compressed (4-bit INT4) version of an MoE model serves as an excellent predictor for its full-precision (16-bit FP16) counterpart. This draft model achieves over 90.9% accuracy in expert selection without requiring additional training.

2. Expert Scheduler & Lookahead Buffer (ELB)

The system utilizes the initial I/O stall to run the 4-bit draft model, generating a sequence of future tokens. These predictions are stored in the ELB, allowing the runtime orchestrator to proactively prefetch necessary experts for subsequent steps before the main model requires them.

The MoE-SpeQ speculative decoding workflow: drafting with a small model and verification with the target MoE model.

3. Speculative Governor and Execution Engine

To balance the overhead of speculation against its benefits, an adaptive governor uses an Amortization Roofline Model to dynamically determine the optimal draft length based on hardware-specific PCIe bandwidth and compute speeds. Furthermore, the execution engine employs fused CUDA kernels and memory sharing (KV cache and non-expert parameters) to reduce the memory footprint by 43%.

Evaluation and Results

The system was evaluated using models like Phi-3.5-MoE and DeepSeek-V2-Lite across benchmarks including C4, WikiText-2, HumanEval, GSM8K, and GPQA.

  • Performance Gains: MoE-SpeQ achieves up to a 2.34x speedup over state-of-the-art offloading frameworks. For the Phi-MoE model, token generation time was reduced from ~537ms to ~163ms.
  • Efficiency: Memory sharing reduced VRAM requirements for speculative decoding by 43% compared to naive implementations.
  • Accuracy: The high similarity between draft and target models maintained an acceptance rate above 90%, even on complex reasoning tasks.

Conclusion

MoE-SpeQ demonstrates that the I/O bottleneck in offloaded MoE inference can be mitigated by trading on-device computation for data prefetching. By using quantization as a "zero-cost" oracle for expert routing, the system effectively hides latency and significantly improves throughput on commodity hardware. Future work will explore ultra-low-bit quantization (2-bit or 1-bit) and optimizations for next-generation interconnects like PCIe 5.0.

Summary updated

BibTeX
@misc{wang2025moe,
  author = {Wenfeng Wang and Jiacheng Liu and Xiaofeng Hou and Xinfeng Xia and Peng Tang and Mingxuan Zhang and Chao Li and Minyi Guo},
  title = {{MoE-SpeQ: Speculative Quantized Decoding with Proactive Expert Prefetching and Offloading for Mixture-of-Experts}},
  year = {2025},
  eprint = {2511.14102},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.14102},
}
Figure