PixelMoE: Scaling Pixel-Space Diffusion with LLM-Style Mixture-of-Experts
Organizations: University of Science and Technology of China · KlingAI Research · Peking University
Abstract
Pixel-space diffusion models provide an appealing alternative to latent-space diffusion models by directly modeling raw images without relying on a learned tokenizer. However, scaling pixel-space models has predominantly followed dense strategies, tightly coupling model capacity with active computation. In this work, we show that standard LLM-style Mixture-of-Experts (MoE) architectures can be effectively transferred to pixel-space diffusion. Building on this finding, we introduce PixelMoE, a pixel-space generative framework that sparsely scales model capacity with standard LLM-style MoE, without diffusion-specific routing mechanisms or auxiliary routing objectives. Specifically, PixelMoE combines standard Token-Choice (TC) routing with fine-grained routed experts for input-adaptive sparse computation, a shared expert for capturing common representations, and a bias-based load-balancing strategy. To complement sparse capacity scaling, PixelMoE further introduces Pixel-Space Hierarchical Flow Matching, which varies spatial resolution along the denoising trajectory from global structure formation to fine-grained detail refinement. At comparable active parameter counts, PixelMoE consistently outperforms its dense counterparts across model scales, demonstrating effective sparse capacity scaling in pixel space. On class-conditional ImageNet-1K, PixelMoE achieves FID scores of 1.47 at 256x256 and 1.53 at 512x512 without representation alignment or perceptual losses, comparing favorably with leading pixel-space and latent-space generative models. Code and models will be released soon.
Figures & tables
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Depth | Hidden Dim. | Heads | DDT Depth | DDT Dim. | Routed Dim. | Shared Dim. | #Dense |
|---|---|---|---|---|---|---|---|---|
| PixelMoE-B-E32A4 | 12 | 768 | 12 | 2 | 1536 | 384 | 632 | 4 |
| PixelMoE-L-E32A4 | 24 | 1024 | 16 | 2 | 2048 | 512 | 836 | 4 |
| PixelMoE-H-E32A4 | 32 | 1280 | 16 | 4 | 2560 | 640 | 1048 | 4 |
| Configuration | Base | Large | Huge | Base | Large | Huge |
|---|---|---|---|---|---|---|
| Input and training | ||||||
| Training resolution | ||||||
| Patch size | ||||||
| Noise scale | ||||||
| Crop range | – | – | – | – | ||
| Configuration | Setting |
|---|---|
| Sampling solver | Heun |
| Global timestep grid | |
| Global grid spacing | Uniform |
| Timestep shifting | None |
| CFG scale | Swept per model |
| CFG interval | Swept per model |
Diffusion-Based Image Generation
Diffusion-based image generation creates images by progressively denoising noise, with controls for content, style, and structure.
See all 328 papers