Paper Reading AI Learner

SpecMD: A Comprehensive Study On Speculative Expert Prefetching

2026-02-03 18:36:56
Duc Hoang, Ajay Jaiswal, Mohammad Samragh, Minsik Cho

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 \textbf{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 \textbf{Least-Stale}, a novel eviction policy that exploits MoE's predictable expert access patterns to reduce collision misses by up to $85\times$ 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.

Abstract (translated)

混合专家(Mixture-of-Experts, MoE)模型通过稀疏激活专家机制实现高效运行,这意味着在每次推理过程中仅使用了部分参数。然而,为了将这种稀疏性转化为实际性能提升,需要有效的专家缓存策略来支持。以往的研究工作提出了基于硬件的缓存政策,但这些不同缓存策略如何相互作用以及它们与各种硬件规格的关系仍不清楚。为了解决这一知识空白,我们开发了**SpecMD**,这是一个标准化框架,用于在不同的硬件配置上对自定义缓存策略进行基准测试。 利用SpecMD,我们在具有现实约束条件的控制环境中对几种MoE缓存策略进行了详尽的基准测试,并复制和扩展了先前的方法。我们的实验结果表明,MoE专家访问与时间局部性假设(如LRU、LFU)不符。基于这一观察,我们提出了**Least-Stale**,这是一种新的驱逐政策,利用MoE可预测的专家访问模式来减少冲突丢失,相比LRU最多可以提高85倍。 通过这种改进,我们在使用仅占5%或0.6GB VRAM缓存容量的情况下,在OLMoE模型上实现了超过88%的命中率,并且时间到第一个标记(Time-to-first-token, TTFT)减少了34.7%。

URL

https://arxiv.org/abs/2602.03921

PDF

https://arxiv.org/pdf/2602.03921.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot