FlashMoE: Reducing SSD I/O Bottlenecks via ML-Based Cache Replacement for Mixture-of-Experts Inference on Edge Devices
Byeongju Kim, Jungwan Lee, Donghyeon Han, Hoi-Jun Yoo, Sangyeob Kim
TL;DR
This work addresses the memory bottleneck of large-scaleMixture-of-Experts inference on edge devices by offloading inactive experts to SSD and loading on-demand, enabled by a lightweight, per-layer cache. It introduces FlashMoE, which separates experts from non-experts, loads non-experts at initialization, and uses an ML-based cache policy that combines recency and frequency to predict eviction decisions. The approach yields higher cache hit rates and lower I/O, translating to substantial end-to-end latency improvements: up to 4× faster initial loading and up to 2.6× overall speedups on real hardware across models like OLMoE-1B-7B and Qwen3-30B-A3B. The results demonstrate the practicality of running large sparse MoEs on memory-limited devices, expanding feasible on-device AI deployments.
Abstract
Recently, Mixture-of-Experts (MoE) models have gained attention for efficiently scaling large language models. Although these models are extremely large, their sparse activation enables inference to be performed by accessing only a fraction of the model at a time. This property opens the possibility of on-device inference of MoE, which was previously considered infeasible for such large models. Consequently, various systems have been proposed to leverage this sparsity and enable efficient MoE inference for edge devices. However, previous MoE inference systems like Fiddler[8] or DAOP[13] rely on DRAM-based offloading and are not suitable for memory constrained on-device environments. As recent MoE models grow to hundreds of gigabytes, RAM-offloading solutions become impractical. To address this, we propose FlashMoE, a system that offloads inactive experts to SSD, enabling efficient MoE inference under limited RAM. FlashMoE incorporates a lightweight ML-based caching strategy that adaptively combines recency and frequency signals to maximize expert reuse, significantly reducing storage I/O. In addition, we built a user-grade desktop platform to demonstrate the practicality of FlashMoE. On this real hardware setup, FlashMoE improves cache hit rate by up to 51% over well-known offloading policies such as LRU and LFU, and achieves up to 2.6x speedup compared to existing MoE inference systems.
