DiT2MoE: Learnable Non-Exclusive MoEfication for Diffusion Transformers

Weiyu Huang, Ziteng Wang, Jun Zhu, Jianfei ChenarXiv 2026

TL;DR

Diffusion Transformers generate stunning images, but running every neuron at every denoising step makes them painfully expensive to deploy. DiT2MoE takes a pretrained dense model and carves its feed-forward networks into sparse Mixture-of-Experts (MoE) layers—using only text prompts, zero real training images, and a modest compute budget. By letting hard-working neurons belong to multiple experts simultaneously, it slashes active FFN parameters by nearly two-thirds while keeping almost 100% of the original visual quality.

What Problem Does This Paper Address?

Generating an image with a Diffusion Transformer (DiT) requires running a massive neural network repeatedly as noise resolves into a picture. Even with recent "few-step" samplers cutting the process down to 4 or 8 steps, each individual step still fires the entire dense network.

One promising remedy is MoEfication: slicing dense feed-forward networks (FFNs) into smaller, specialized "experts" and training a router to activate only a few per token. However, existing MoEfication tricks (mostly borrowed from LLMs) enforce strict, disjoint partitions—each neuron gets assigned to at most one expert.

Figure 1. Neuron contribution patterns in the image FFN of Qwen- Image-2512 (block 29). Left (cross-token): Contributions of 16 neurons sampled from the top quartile by average contribution and 32 randomly sampled neurons across eight calibration prompts at denoising step 2. Right (cross-timestep): Contributions of top- quartile candidate neurons at each timestep exhibiting pronounced variations across denoising steps. Colors are relative to the all- neuron mean per token (left) or timestep (right).

As the authors show above, DiT neurons don't follow an egalitarian distribution:

  1. Extreme inequality: A tiny fraction of neurons do the heavy lifting across almost all image tokens, while many contribute very little. Locking a star neuron into a single expert starves other routing contexts, while deadweight neurons waste expert capacity.
  2. Shifting priorities: A neuron's importance fluctuates dramatically from early (noisy) to late (clean) denoising steps.

Furthermore, existing diffusion MoEfication methods usually require massive datasets of real images and rely on simple output-matching (MSE) losses, which tend to blur fine visual textures.

Methods

DiT2MoE converts a dense DiT into a sparse MoE in two distinct, image-free stages using synthetic trajectories generated from text prompts:

Figure 2. Overview of DiT2MoE. Stage 1 efficiently initializes the sparse model through joint expert assignment and routing optimization with frozen FFN weights. Stage 2 fixes the learned sparse structure and recovers generation quality through prompt-only distribution matching and perceptual supervision.
  • Stage 1: Structural Initialization (Frozen Weights). First, the universally critical neurons (measured via Taylor importance) are placed into "always-on" shared experts. For the remaining neurons, DiT2MoE learns non-exclusive assignments alongside a Top-$K$ router. Using a differentiable Limited Multi-Label (LML) relaxation with a straight-through estimator, each expert independently picks its top-$m$ neurons—meaning MVP neurons can be drafted by multiple experts, while useless ones are left on the bench. To handle shifting denoising dynamics and softmax attenuation, the authors add a fixed scaling factor ($\alpha = K$) and a lightweight timestep adapter that rescales expert outputs based on the current noise level. Everything here is trained cheaply by matching the frozen dense teacher's velocity predictions.
  • Stage 2: Quality Recovery (Frozen Structure). Once the sparse wiring is locked in, the FFN weights (with duplicated neurons now fine-tuned independently per expert), router, and adapters are unfrozen. Instead of blurry MSE reconstruction, the student generates its own trajectories ("on-policy") and learns via Distribution Matching Distillation (DMD) to align global realism with the teacher, paired with LPIPS perceptual loss on VAE-decoded latents to snap fine textures back into focus.

Datasets

  • Training: Prompt-only! No real images are used for DiT2MoE. Text prompts are sampled from JourneyDB.
  • Evaluation: Tested across GenEval (object-focused text-to-image alignment) and DPG-Bench (complex semantic alignment), generating 6,472 images per method. Those exact generated images and prompts are also scored using CLIP similarity and ImageReward. No new benchmarks are introduced.

Key Insights and Ideas

  • Sharing doesn't mean redundant work: You might worry that letting experts share neurons defeats the purpose of sparsity. In practice, over 52% of non-shared candidate neurons are dropped completely, ~26% are placed in multiple experts, and under Top-2 routing, only 3.30% of active FFN slots end up duplicated on a given token. Plus, because duplicated neurons get fine-tuned separately in Stage 2, they specialize for their new expert homes.
  • MSE is a trap for visual recovery: In Stage 2 ablations, swapping DMD out for standard velocity MSE tanks generation quality—and even adding MSE alongside DMD + LPIPS slightly hurts performance, likely because pointwise regression averages out sharp high-frequency details.
  • A good blueprint beats brute-force tuning: Even before unfreezing a single FFN weight, DiT2MoE's Stage 1 initialization generates coherent, well-composed images, giving Stage 2 a massive head start over baselines like CMoE and Dense2MoE.

Key Results

Tested on three few-step backbones (Qwen-Image-2512, Qwen-Image-2.1-Turbo, and FLUX.1-schnell) at 37.5% active FFN weights and ~400 A800 GPU-hours of training:

  • Near-lossless quality: On Qwen-Image-2512 (4-step Lightning), DiT2MoE retains 94.9%–99.8% of the dense teacher's scores across all four benchmarks (e.g., 0.7399 vs. 0.7560 on GenEval; 85.52 vs. 86.11 on DPG-Bench), beating CMoE and Dense2MoE on 11 out of 12 metrics across all models.
  • Real-world speedups: Replacing standard Python loops with a ScatterMoE grouped-GEMM kernel yields a 1.98$\times$ FFN speedup and a 1.25$\times$ end-to-end latency speedup (including text encoding and VAE decoding at $1328 \times 1328$ resolution, batch size 8 on an A800 GPU), cutting total FLOPs by roughly one-third.
Sample output from DiT2MoE showing crisp fine-grained textures

Limitations and Future Work

The authors do not include a dedicated limitations or future work section, though two practical constraints are apparent from their experimental findings:

  • Unchanged peak VRAM: While active compute drops by ~62.5% in converted layers, all experts still reside in memory—and overlapping neurons are materialized separately—meaning peak GPU memory usage remains comparable to the dense model.
  • Amdahl's Law on end-to-end speed: Because attention layers, the first and last transformer blocks, text encoders, and the VAE remain dense, a nearly 2$\times$ speedup in the FFN layers translates to a more modest 1.21$\times$–1.25$\times$ wall-clock speedup for the full pipeline.

Summary updated

BibTeX
@misc{huang2026dit,
  author = {Weiyu Huang and Ziteng Wang and Jun Zhu and Jianfei Chen},
  title = {{DiT2MoE: Learnable Non-Exclusive MoEfication for Diffusion Transformers}},
  year = {2026},
  eprint = {2611.38039},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38039},
}
Figure