Serving MoE Models on Resource-Constrained Edge Devices via Dynamic Expert Swapping
Mixture of experts (MoE) is a popular technique in deep learning that improves model capacity with conditionally-activated parallel neural network modules (experts). However, serving MoE models in resource-constrained latency-critical edge scenarios is challenging due to the significantly increased model size and complexity. In this paper, we first analyze the behavior pattern of MoE models in continuous inference scenarios, which leads to three key observations about the expert activations, including temporal locality, exchangeability, and skippable computation. Based on these observations, we introduce PC-MoE, an inference framework for resource-constrained continuous MoE model serving. The core of PC-MoE is a new data structure, <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Parameter Committee</i>, that intelligently maintains a subset of important experts in use to reduce resource consumption. To evaluate the effectiveness of PC-MoE, we conduct experiments using state-of-the-art MoE models on common computer vision and natural language processing tasks. The results demonstrate optimal trade-offs between resource consumption and model accuracy achieved by PC-MoE. For instance, on object detection tasks with the Swin-MoE model, our approach can reduce memory usage and latency by 42.34% and 18.63% with only 0.10% accuracy degradation.
Authors
- Yunxin Liu (ORCID: https://orcid.org/0000-0003-1333-4619)
- Linghe Kong (ORCID: https://orcid.org/0000-0001-9266-3044)
- Weijun Wang (ORCID: https://orcid.org/0000-0002-9545-3322)
- Rui Kong (ORCID: https://orcid.org/0009-0003-2889-2266)
- Yuanchun Li
Institutions
- Shanghai Jiao Tong University (CN)
- Tsinghua University (CN)
Publication Details
- Journal
- IEEE Transactions on Computers
- Published
- 2025-06-03
- DOI
- https://doi.org/10.1109/tc.2025.3575905
- Citations
- 6
- Primary Topic
- Mobile Crowdsensing and Crowdsourcing
- Type
- article
- Field-Weighted Citation Impact
- 8.47