TL;DR
dMoE introduces a learnable block-level routing strategy for Diffusion Large Language Models (dLLMs) using Mixture-of-Experts (MoE). By aggregating token-level expert preferences into a unified block-level distribution, it slashes the number of uniquely activated experts by over 4x and reduces memory usage by ~75%, all while maintaining 99.55% of the original model's performance.
What Problem Does This Paper Address?
Diffusion Large Language Models (dLLMs) are gaining traction as an alternative to traditional autoregressive models because they can decode multiple tokens in parallel. To scale these models, researchers often turn to Mixture-of-Experts (MoE) architectures. However, a fundamental efficiency mismatch exists:
- Parallel Decoding: dLLMs process a whole block of tokens (e.g., 32 tokens) in a single forward pass.
- Token-Level Routing: Standard MoE layers route each token to its preferred experts independently.
When you combine these, a single forward pass might end up activating a huge number of unique experts across the entire block. Because loading expert weights from memory is slow, this creates a massive memory-bound bottleneck. As shown in the paper's empirical studies, MoE kernel latency increases linearly with the number of unique experts activated (see Figure 2c below).
Methods
The authors propose dMoE, a framework that shifts from independent token routing to a "coarse-to-fine" block-level strategy. The process works in three main steps:
- Aggregation: The model first calculates standard token-level expert scores. These are then aggregated (summed or averaged) to create a single block-level expert distribution.
- Coreset Selection: Instead of picking a fixed number of experts, dMoE uses a top-p (nucleus) selection on the block-level scores. This creates a "coreset" of experts that are deemed most important for that specific block of tokens.
- Constrained Routing: Finally, the original token-level routing is performed, but tokens are only allowed to choose experts from the pre-selected coreset.
To ensure the model maintains performance under these constraints, the authors use a self-distillation training paradigm. The model learns to approximate its original, unconstrained behavior while operating within the restricted coreset.
Datasets
The model was trained and evaluated using the following:
- Training: Approximately 700K samples generated via self-distillation using prompts from GSM8K, PRM12K, Numina-Math, and OpenThoughts.
- Evaluation: Four major benchmarks: MATH500, GSM8K, ARC-C, and MMLU (specifically the math portion).
Key Insights and Ideas
- Expert Importance is Informative: The authors found a clear positive correlation (Pearson = 0.462) between a token's router weights and how much the reconstruction loss increases if those experts are removed. This confirms that router scores are a reliable signal for expert selection.
- Dynamic Adaptability: By using a top-p threshold rather than a fixed top-k, dMoE adapts to the difficulty of the block. If a block is "easy" and experts are concentrated, the coreset is small. If the block is "hard" and needs diverse knowledge, the coreset naturally expands.
- The Memory-Latency Link: The paper quantifies the "memory wall." In their base model (LLaDA2.0-mini), MoE latency accounts for over 90% of the total latency in standard Transformers implementations. Reducing the unique expert count is the most direct way to speed up inference.
Key Results
dMoE achieves aggressive compression with negligible performance trade-offs:
- Expert Reduction: On average, the number of uniquely activated experts dropped from 69.5 to 16.5 (a 4.21x reduction).
- Performance Retention: The model retained 99.55% of its original accuracy across benchmarks.
- Efficiency Gains: Memory usage was reduced by 74.36% to 76.78%, leading to an end-to-end latency speedup of 1.36x to 2.04x.
Limitations and Future Work
- Modality: The current study focuses strictly on language. The authors suggest that the block-level routing idea could naturally extend to image and video diffusion models.
- Extreme Compression: Future work could explore even more aggressive strategies, such as forcing all tokens in a block to share the exact same set of experts to further minimize memory overhead.
- Hardware Alignment: While the method provides significant speedups, the authors note that the optimal top-p threshold may vary depending on specific hardware characteristics (e.g., VRAM bandwidth vs. compute power).
Summary updated