SMIDT: High-Performance Inference Framework for MoE Models with Dynamic Top-K Routing

Authors

  • Zewen Jin University of Science and Technology of China Institute of Artificial Intelligence, Hefei Comprehensive National Science Center
  • Shen Fu University of Science and Technology of China Institute of Artificial Intelligence, Hefei Comprehensive National Science Center
  • Chengjie Tang Shanxi University Institute of Artificial Intelligence, Hefei Comprehensive National Science Center
  • Youhui Bai University of Science and Technology of China
  • Shengnan Wang Independent Researcher
  • Jiaan Zhu University of Science and Technology of China Institute of Artificial Intelligence, Hefei Comprehensive National Science Center
  • Chizheng Fang University of Science and Technology of China
  • Ping Gong University of Science and Technology of China Institute of Artificial Intelligence, Hefei Comprehensive National Science Center
  • Cheng Li University of Science and Technology of China Institute of Artificial Intelligence, Hefei Comprehensive National Science Center

DOI:

https://doi.org/10.1609/aaai.v40i27.39403

Abstract

To accelerate Mixture-of-Experts (MoE) inference, the hybrid parallelism paradigm is first applying pipeline parallelism (PP) to vertically divide the model into stages, with each stage further divided horizontally using tensor or expert parallelism. On the algorithm side, dynamic Top-K routing reduces computation by activating fewer experts per token on average. In this paper, we explore the application of dynamic Top-K routing to PP-enabled MoE inference, aiming to fully unleash their combined potential. We identify key performance bottlenecks arising from Top-K value variation across layers, which conflicts with PP's typically uniform stage partitioning, as well as opportunities to optimize memory usage through their integration. To address these challenges, we present SMIDT, an efficient MoE inference framework tailored for dynamic Top-K routing. SMIDT features: (1) an adaptive, module-level uneven partitioning strategy to balance computation across PP stages, (2) a memory-aware expert replication scheme (DPMoE) that reduces communication overhead, and (3) a lightweight search algorithm combining binary search and dynamic programming to generate efficient parallelism plans. We implement SMIDT on SGLang, a state-of-the-art LLM inference framework, evaluate it on 32 A40 GPUs and 16 A100 GPUs, and compare with manually tuned parallelism strategies. Experimental results show that, when co-locating prefill and decoding phases, SMIDT achieves 1.20–3.13x throughput improvements for prefill-only tasks and 1.05–1.89x for prefill-decoding tasks. When disaggregating prefill and decoding tasks, SMIDT improves average and P99 time-to-first-token (TTFT) by 1.10–1.17x and 1.21–1.26x, respectively.

Downloads

Published

2026-03-14

How to Cite

Jin, Z., Fu, S., Tang, C., Bai, Y., Wang, S., Zhu, J., … Li, C. (2026). SMIDT: High-Performance Inference Framework for MoE Models with Dynamic Top-K Routing. Proceedings of the AAAI Conference on Artificial Intelligence, 40(27), 22444–22453. https://doi.org/10.1609/aaai.v40i27.39403

Issue

Section

AAAI Technical Track on Machine Learning IV