SeqMoE 提升大模型 MoE 分支卸载性能
SeqMoE: Toward Full-Load Performance via Predictive and Graph-Compatible MoE Offloading
想了解如何提升大模型 MoE 分支卸载效率的朋友可以看看这篇论文,它提出了新的方法,让卸载后的性能更接近全负载水平。
这篇论文提出 SeqMoE 解决大模型 MoE 分支卸载问题,通过预测性内存管理和图兼容卸载运行时,在 45% 专家驻留率下实现 96.97% 的命中率和 80.22% 的全负载性能。
SeqMoE: Toward Full-Load Performance via Predictive and Graph-Compatible MoE Offloading
Mixture-of-Experts (MoE) creates a structural advantage for offloading: only a small fraction of activated experts need to reside in device memory, and if they can be loaded in time for computation, offloading can in principle approach full-load performance, where all model weights reside in device memory. Yet translating MoE's structural advantage into practical offloading gains remains challenging. We propose SeqMoE to bridge this gap. To maximize expert hits, we build predictive memory management: (i) Sequence-to-sequence prediction. We are the first to recast expert activation prediction as sequence modeling, enabling accurate multi-step, multi-layer forecasts that provide a long and reliable window for downstream decisions. (ii) Joint prefetch scheduling. We formulate prefetch scheduling as Job Sequencing with Deadlines to maximize expected expert hits and improve bandwidth efficiency. (iii) Forecast-driven caching. Leveraging the recursive nature of sequence modeling, we introduce a probabilistic Belady policy for future-aware eviction. To eliminate execution bottleneck, we develop (iv) Graph-compatible offloading runtime. We derive general runtime principles encompassing compute-transparent expert placement and synchronization-free orchestration disciplines for end-to-end graph capture. With 45% expert residency, SeqMoE averages a 96.97% hit rate and 80.22% of full-load performance, advancing the state of the art in MoE offloading.