SpecMD: A Comprehensive Study On Speculative Expert Prefetching
Hoang, Duc, Jaiswal, Ajay, Samragh, Mohammad, Cho, Minsik
–arXiv.org Artificial Intelligence
ABSTRACT Mixture-of-Experts (MoE) models enable sparse expert activation, meaning that only a subset of the model's parameters is used during each inference. However, to translate this sparsity into practical performance, an expert caching mechanism is required. Previous works have proposed hardware-centric caching policies, but how these various caching policies interact with each other and different hardware specification remains poorly understood. To address this gap, we develop SpecMD, a standardized framework for benchmarking ad-hoc cache policies on various hardware configurations. Using SpecMD, we perform an exhaustive benchmarking of several MoE caching strategies, reproducing and extending prior approaches in controlled settings with realistic constraints. Our experiments reveal that MoE expert access is not consistent with temporal locality assumptions (e.g LRU, LFU). Motivated by this observation, we propose Least-Stale, a novel eviction policy that exploits MoE's predictable expert access patterns to reduce collision misses by up to 85 over LRU. With such gains, we achieve over 88% hit rates with up to 34.7% Time-to-first-token (TTFT) reduction on OLMoE at only 5% or 0.6GB of VRAM cache capacity. 1 INTRODUCTION Mixture-of-Experts (MoE) architectures scale language models to unprecedented sizes through sparse computation. By activating only k of N experts per token, MoE models like Mixtral-8x7BJiang et al. (2024), DeepSeek-V2 DeepSeek-AI et al. (2024), and OLMoE Muennighoff et al. (2025) achieve sublinear computational cost while maintaining large model capacity. However, this efficiency comes at a cost: a naive deployment of MoE models requires all N experts to remain memory-resident, making deployment prohibitively expensive. For instance, assuming 16 bits per weight, OLMoE-1B-7B activates 2.39GB yet needs 12.0GB ready in memory. This linear memory scaling limits the MoE deployment on memory-constrained devices.
arXiv.org Artificial Intelligence
Feb-5-2026