TL;DR
Diff-MoE introduces a highly scalable Diffusion Transformer architecture that integrates Mixture-of-Experts (MoE) to dynamically allocate compute based on both spatial content and the temporal denoising stage. By equipping spatial experts with dedicated timestep conditioning and global context awareness, it achieves state-of-the-art image generation quality while drastically reducing active parameters compared to dense models.
What Problem Does This Paper Address?
Diffusion Transformers (DiTs) are the new gold standard for generative modeling, powering state-of-the-art models like Stable Diffusion 3 and FLUX. However, scaling these dense architectures requires activating billions of parameters for every single image patch (token) at every single denoising step. This uniform processing is highly inefficient.
Early denoising stages require coarse structural modeling, while late stages focus on fine-grained high-frequency details. Similarly, a complex object edge requires different processing than a flat background patch. While Mixture-of-Experts (MoE) has been used to scale language models, existing MoE adaptations for diffusion models usually partition experts either by time (denoising stage) or by space (tokens). Forcing a model to choose between temporal adaptability and spatial flexibility leads to entangled routing decisions, suboptimal expert utilization, and capped representational capacity.
Methods
The authors build on the standard DiT architecture (enhancing it with Rotary Position Embeddings, Gated Linear Units, and depthwise convolutions) and replace the dense MLPs with a novel spatiotemporal MoE framework.
- Spatial MoE with Shared Experts: Tokens are dynamically routed to a subset of specialized experts. To prevent redundant knowledge from eating up capacity, the model also uses "shared experts" that process every token deterministically.
- Expert-Specific Timestep Conditioning: Instead of feeding the diffusion timestep into the router—which forces the router to juggle both spatial and temporal routing logic—timestep embeddings are fed directly into the individual experts. This decouples the routing decision (based purely on spatial features) from the expert's processing behavior (which adapts to the denoising stage).
- Global Feature Recalibration: Spatial MoEs process tokens locally, which can hurt global image coherence. Diff-MoE extracts a global context vector via average pooling and uses it to recalibrate the feature channels inside each expert's forward pass.
- Low-Rank Decomposition: To prevent the new timestep conditioning and global recalibration modules from bloating the model size, the authors project these operations into a compact, low-rank subspace.
Datasets
- ImageNet 256×256: All models were trained and evaluated on class-conditional image generation using the standard ImageNet dataset.
Key Insights and Ideas
- Decoupling Space and Time is Crucial: In standard MoE-DiTs, time-dependent layers create entangled routing decisions. Temporal and spatial factors compete for optimization priority, leading to imbalanced expert workloads. Giving experts their own time-conditioning resolves this conflict, allowing routers to develop sharper discriminative capabilities for spatial tokens.
- Local Experts Need Global Context: In image generation, processing a patch of pixels in isolation can break structural coherence. Injecting a pooled global representation directly into the experts acts as a lightweight guide, ensuring that locally specialized processing still aligns with the overall image structure.
- MoE is a Massive Efficiency Unlock for Diffusion: By activating only 1 task-specific expert and 1 shared expert per token, Diff-MoE achieves a ~3x reduction in active parameters compared to dense counterparts, while actually improving generation quality.
Key Results
Diff-MoE consistently outperforms both dense DiTs and existing expert-based DiTs at matched active parameter counts (evaluated at 400K training iterations):
- Small Scale: Diff-MoE-S/2 (36M active parameters) achieves a Fréchet Inception Distance (FID) of 44.27, a massive 17.8% improvement over the state-of-the-art dense SiT-LLaMA-S/2 (53.90).
- Large Scale: Diff-MoE-XL/2 (1.5B active parameters) achieves an impressive FID of 2.69, outperforming the spatial-only DiT-MoE-XL/2 (3.42 FID) by 27%.
- Ablation on Time Conditioning: Adding expert-specific time conditioning to a baseline spatial MoE dropped the FID from 32.74 to 28.71, proving that spatial experts desperately need to know when they are operating in the diffusion process.
Limitations and Future Work
- Compute Constraints on Extreme Scaling: The authors acknowledge that computational resource limits restricted their evaluation to 400K training iterations. They were unable to test the massive-scale variants (like Diff-MoE-XL) at the extreme training lengths (e.g., 7 million steps) used to align the original DiT models.
- Future Work: The authors leave the full exploration of Diff-MoE's potential at these extreme scales for future research, which will be critical to see if the MoE routing remains stable and performant when pushed to the absolute limits of compute.
Summary updated