MoE-SpAc: Efficient MoE Inference Based on Speculative Activation Utility in Heterogeneous Edge Scenarios

Shuhuai Li, Jianghao Lin, Dongdong Ge, Yinyu Ye

TL;DR

MoE-SpAc introduces a clever paradigm shift for running large Mixture-of-Experts (MoE) models on resource-constrained edge devices: it repurposes Speculative Decoding (SD) from a simple compute accelerator into an information-rich "lookahead sensor" for memory management. By predicting expert demand frequencies and dynamically balancing workloads between CPU and GPU, it achieves an average 4.04× speedup over standard baselines and a 42% throughput improvement over state-of-the-art speculative decoding implementations.

What Problem Does This Paper Address?

Mixture-of-Experts (MoE) architectures allow large language models (LLMs) to scale up to hundreds of billions of parameters while keeping computational costs manageable, as only a small subset of "experts" is activated for any given token. However, these models hit a hard "memory wall" on edge devices (like personal computers or smartphones) because their massive parameter footprints far exceed local GPU VRAM.

To run them, systems must offload expert weights to high-capacity CPU memory and transfer them to the GPU on demand. This creates a massive I/O bottleneck. Existing predictive prefetching strategies try to guess which experts to load next based on historical patterns, but standard autoregressive (AR) decoding only provides a binary, low-information signal (i.e., "is expert $X$ active at step $t$ or not?"). This leads to high prediction errors, cache thrashing, and severe GPU idling.

Figure 1: The advantages of speculative decoding (SD, Bottom) compared with traditional autoregressive decoding (AR, Top) from both theoretical (Left) and practical (Right) perspectives. Theoretically, SD enables expert reuse and transforms binary, low-information AR signals into informative frequency-valued ones. Practically, MoE-SpAc masks I/O latency by asynchronously prefetching experts during the drafting phase, unlike AR which suffers from blocking loads.

Methods

MoE-SpAc tackles this by leveraging Speculative Decoding (SD). In SD, a smaller, faster "draft" model generates a sequence of candidate tokens ($\gamma$), which the larger "target" model verifies in parallel. The authors realize that verifying multiple tokens at once provides a rich lookahead window of expert activations.

The MoE-SpAc framework consists of three core components:

  1. Speculative Utility Estimator: Instead of binary signals, it extracts a non-binary activation frequency map across the speculative window. It uses an Inertial Utility Transition mechanism and Adaptive Boundary Calibration to filter out high-frequency noise and map these frequencies into stable, discrete utility scores.
  2. Heterogeneous Workload Balancer: At each Transformer layer, it models the expert split as an online integer optimization problem. It dynamically calculates a global threshold ($\tau$) to partition experts into "hot" (prioritized for GPU execution) and "cold" (offloaded to CPU execution) based on real-time I/O bandwidth and available VRAM.
  3. Asynchronous Execution Engine: It orchestrates the physical migration of weights concurrently. Using a multi-level priority queue for prefetching and a Red-Black tree for eviction—both governed by the same utility score—it completely masks I/O latency during the drafting phase without stalling the main computation.
Figure 2: Overall framework of MoE-SpAc.

Datasets

The framework was evaluated on seven diverse, standard LLM benchmarks to cover various capabilities:

  • MMLU-Pro (Deep reasoning)
  • MT-bench (Multi-turn conversation)
  • HumanEval (Code generation)
  • GSM8K (Mathematical reasoning)
  • Alpaca (Instruction following)
  • CNN/DailyMail (Text summarization)
  • QA (Question answering)

No new datasets were introduced in this paper.

Key Insights and Ideas

  • SD as a Sensor, Not Just an Accelerator: The core "aha moment" is that the draft model in speculative decoding acts as a lookahead sensor. Verifying multiple tokens simultaneously transforms a low-information binary signal into a frequency-valued trend map of the immediate future context.
  • Mathematical Stabilization (SNR Gain): The authors theoretically prove that the signal-to-noise ratio (SNR) of expert activation signals increases by a factor of $\sqrt{\gamma + 1}$ under speculative decoding compared to standard autoregressive decoding. This drastically stabilizes offloading decisions.
  • Inherent Fault Tolerance: Because SD provides a continuous frequency space (e.g., an expert is used 5 times vs 0 times), the system gains a safety margin. It doesn't need perfect accuracy; coarse-grained utility scores are more than enough to make correct scheduling choices without crossing the threshold boundary.

Key Results

The authors evaluated MoE-SpAc on a single NVIDIA GeForce RTX 4090 GPU (24GB VRAM) connected to a CPU via PCIe 4.0, using Qwen3-30B-A3B as the target model and DeepSeek-V2-Lite for cross-model validation.

  • Massive Speedups: MoE-SpAc achieved an average 4.04× speedup in tokens per second (TPS) across all standard baselines (like vLLM, llama.cpp, and MoE-Infinity).
  • Outperforming SOTA SD Engines: Compared directly against llama.cpp-w/SD (which uses speculative decoding but lacks MoE-SpAc's unified scheduling), it delivered a 41.9% relative improvement in TPS.
  • High Prediction Accuracy: MoE-SpAc quickly learned activation patterns, steadily achieving an online hot/cold prediction accuracy of around 0.85, significantly outperforming traditional AR-based utility modeling.

Limitations and Future Work

  • Dependence on Draft Model Quality: MoE-SpAc fundamentally relies on the draft model's acceptance rate. If the draft model performs poorly (low token acceptance), the speculative window shrinks, reducing the lookahead information gain.
  • Added Complexity: The framework introduces additional scheduling and bookkeeping overhead, including real-time utility tracking and online integer optimization per layer.
  • Edge-Only Scope: The current evaluation is strictly limited to single-GPU, batch-size-one scenarios typical of edge deployment.

Future Directions: The authors plan to extend the framework to multi-GPU environments, handle larger batch sizes, and adapt the utility-guided scheduling paradigm to newer sparse architectures like Mixture-of-Lookup-Experts (MoLE).

Summary updated

BibTeX
@inproceedings{li2026moe,
  author = {Shuhuai Li and Jianghao Lin and Dongdong Ge and Yinyu Ye},
  title = {{MoE-SpAc: Efficient MoE Inference Based on Speculative Activation Utility in Heterogeneous Edge Scenarios}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=PzDCaziC8F},
}
Figure