SP-MoE: Speculative Decoding and Prefetching for Accelerating MoE-based Model Inference

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Chen, Liangkun, Wen, Zijian, Wu, Tian, Zhang, Xiaoxi, Wu, Chuan
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917063853867008
author Chen, Liangkun
Wen, Zijian
Wu, Tian
Zhang, Xiaoxi
Wu, Chuan
author_facet Chen, Liangkun
Wen, Zijian
Wu, Tian
Zhang, Xiaoxi
Wu, Chuan
contents The Mixture-of-Experts (MoE) architecture has been widely adopted in large language models (LLMs) to reduce computation cost through model sparsity. Employing speculative decoding (SD) can further accelerate MoE inference by drafting multiple tokens per step and verifying them in parallel. However, combining MoE with SD inflates GPU memory and aggravates CPU-GPU bandwidth contention during multi-token verification. Existing MoE offloading systems are SD-agnostic and do not address this bottleneck. We present SP-MoE, the first SD-aware expert-offloading and compute-communication pipelining framework. SP-MoE introduces: (1) speculative expert prefetching that exploits structural correspondence between the draft and target models to prefetch likely experts ahead of verification; (2) a cutoff-layer policy that bounds per-layer prefetch depth based on empirical profiles and an analytical latency model, guaranteeing just-in-time availability without overfetch; and (3) a pipelined runtime with asynchronous prefetch threads and batched I/O to hide loading latency. Extensive experiments demonstrate that SP-MoE achieves a 1.07-3.5 times TPOT speedup over state-of-the-art methods across diverse datasets, environments, and MoE-based models.
format Preprint
id arxiv_https___arxiv_org_abs_2510_10302
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SP-MoE: Speculative Decoding and Prefetching for Accelerating MoE-based Model Inference
Chen, Liangkun
Wen, Zijian
Wu, Tian
Zhang, Xiaoxi
Wu, Chuan
Distributed, Parallel, and Cluster Computing
The Mixture-of-Experts (MoE) architecture has been widely adopted in large language models (LLMs) to reduce computation cost through model sparsity. Employing speculative decoding (SD) can further accelerate MoE inference by drafting multiple tokens per step and verifying them in parallel. However, combining MoE with SD inflates GPU memory and aggravates CPU-GPU bandwidth contention during multi-token verification. Existing MoE offloading systems are SD-agnostic and do not address this bottleneck. We present SP-MoE, the first SD-aware expert-offloading and compute-communication pipelining framework. SP-MoE introduces: (1) speculative expert prefetching that exploits structural correspondence between the draft and target models to prefetch likely experts ahead of verification; (2) a cutoff-layer policy that bounds per-layer prefetch depth based on empirical profiles and an analytical latency model, guaranteeing just-in-time availability without overfetch; and (3) a pipelined runtime with asynchronous prefetch threads and batched I/O to hide loading latency. Extensive experiments demonstrate that SP-MoE achieves a 1.07-3.5 times TPOT speedup over state-of-the-art methods across diverse datasets, environments, and MoE-based models.
title SP-MoE: Speculative Decoding and Prefetching for Accelerating MoE-based Model Inference
topic Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2510.10302