NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

D2MoE: Dual Routing and Dynamic Scheduling for Efficient On-Device MoE-based LLM Serving

Haodong Wang, Qihua Zhou, Zicong Hong, Song Guo · DOI

Introduction

Serving Large Language Models (LLMs) on edge devices, such as smartphones and consumer laptops, represents a significant milestone for local AI. Mixture-of-Experts (MoE) architectures, exemplified by models like Mixtral 8x7B, offer a promising path forward by activating only a fraction of their parameters for any given token. However, these models remain notoriously difficult to deploy on resource-constrained hardware. While they are computationally efficient, their total parameter count often exceeds 90GB, far surpassing the 6GB to 12GB of VRAM typically found in consumer-grade GPUs.

D2MoE is an algorithm-system co-design framework designed to bridge this gap. By integrating dynamic precision adjustment with a novel scheduling strategy, D2MoE enables high-performance MoE serving on edge devices, achieving up to 1.39× higher throughput and a 53% reduction in memory usage compared to existing state-of-the-art frameworks.

The Bottlenecks of Edge MoE Serving

The primary challenge in on-device MoE serving is not raw FLOPs, but rather the interplay between memory capacity and I/O bandwidth.

  1. Memory Constraints: High-fidelity models are too large for local VRAM, necessitating storage on slower secondary media like SSDs.
  2. I/O Bubbles: Loading an expert from an SSD into VRAM typically takes significantly longer (~20ms) than the actual computation (~3ms). This disparity creates "I/O bubbles" where the GPU remains idle while waiting for data transfers.
  3. Static Quantization Inefficiency: Conventional deployment methods apply a fixed bit-width (e.g., 4-bit) to all experts. This is suboptimal because not all tokens require the same level of precision; "easy" tokens can often be processed at lower bit-widths without sacrificing accuracy, while "hard" tokens require higher precision.

Methodology

D2MoE addresses these challenges through a three-pronged approach involving dual routing and dynamic scheduling.

1. Token-Adaptive Bit-Width Selection

D2MoE introduces a lightweight Bit Gate that operates alongside the traditional expert router. For every token, the Bit Gate dynamically determines the optimal bit-width for the selected experts. This allows the system to adaptively allocate computational and memory resources based on the complexity of the input, saving bandwidth on simpler tokens.

2. Matryoshka Weight Quantization (MWQ)

To support multiple bit-widths without redundant storage, the authors developed Matryoshka Weight Quantization. Inspired by Russian nesting dolls, MWQ structures weights such that higher-precision versions (e.g., 4-bit) physically encapsulate lower-precision versions (e.g., 2-bit). This nesting strategy ensures that the system does not need to store separate versions of the model for different precisions, drastically reducing the storage footprint on disk and memory overhead in VRAM.

3. Hottest-Expert-Bit-First (HEBF) Scheduling

To mitigate I/O bubbles, D2MoE utilizes a heuristic HEBF scheduler. This scheduler prioritizes the loading and computation of "hot" experts—those most frequently requested across a batch of tokens. By intelligently ordering tasks, the system maximizes the overlap between SSD-to-VRAM data transfers and GPU computation, effectively hiding the latency of expert loading.

Experimental Setup

The framework was evaluated using LLaMA-MoE-3.5B and Mixtral 8x7B models. The bit-width routers were trained on the C4 (Colossal Clean Crawled Corpus) dataset. To assess performance, the authors measured perplexity on WikiText2 and conducted zero-shot evaluations across several benchmarks, including PIQA, ARC, BoolQ, HellaSwag, and Winogrande.

Key Results and Insights

Experimental results demonstrate that D2MoE significantly outperforms existing solutions like EdgeMoE and MoQE-DynaIO:

  • Throughput Gains: D2MoE improves inference throughput by up to 1.39× over EdgeMoE and 3.37× over MoQE-DynaIO.
  • Memory Efficiency: The framework reduces peak memory footprint by up to 53%, enabling the serving of massive models on hardware with as little as 6GB of VRAM.
  • Accuracy Preservation: Despite the use of dynamic, low-bit quantization, D2MoE-V2 maintains accuracy levels comparable to standard INT8 quantized models, providing a "lossless" user experience.
  • Hardware Versatility: The system's efficacy was validated across diverse hardware tiers, from desktop-class NVIDIA RTX 3060 GPUs to embedded NVIDIA Jetson AGX Orin modules.

Limitations and Future Directions

While D2MoE represents a major step forward, several areas for improvement remain. Currently, the framework focuses on batching and does not fully support asynchronous execution for multiple independent requests. Additionally, while the system uses on-demand loading, future iterations could incorporate "predictive preloading" to further reduce I/O wait times. Finally, optimizing dequantization kernels for NPUs (Neural Processing Units) and exploring finer-grained sparsity at the individual neuron level are promising avenues for future research.

Summary updated

BibTeX
@inproceedings{wang2025d,
  author = {Haodong Wang and Qihua Zhou and Zicong Hong and Song Guo},
  title = {{D2MoE: Dual Routing and Dynamic Scheduling for Efficient On-Device MoE-based LLM Serving}},
  booktitle = {MobiCom},
  year = {2025},
  doi = {10.1145/3680207.3723493},
}
Figure