Dense2MoE: Restructuring Diffusion Transformer to MoE for Efficient Text-to-Image Generation

Youwei Zheng, Yuxi Ren, Xin Xia, Xuefeng Xiao, Xiaohua Xie
10/10/2025
cs.CV

No official code found. Best implementation: PixArt-alpha/PixArt-sigma (1,934 stars, Apache-2.0, last commit 2024-10-31).

Abstract

Diffusion Transformer (DiT) has demonstrated remarkable performance in text-to-image generation; however, its large parameter size results in substantial inference overhead. Existing parameter compression methods primarily focus on pruning, but aggressive pruning often leads to severe performance degradation due to reduced model capacity. To address this limitation, we pioneer the transformation of a dense DiT into a Mixture of Experts (MoE) for structured sparsification, reducing the number of activated parameters while preserving model capacity. Specifically, we replace the Feed-Forward Networks (FFNs) in DiT Blocks with MoE layers, reducing the number of activated parameters in the FFNs by 62.5\%. Furthermore, we propose the Mixture of Blocks (MoB) to selectively activate DiT blocks, thereby further enhancing sparsity. To ensure an effective dense-to-MoE conversion, we design a multi-step distillation pipeline, incorporating Taylor metric-based expert initialization, knowledge distillation with load balancing, and group feature loss for MoB optimization. We transform large diffusion transformers (e.g., FLUX.1 [dev]) into an MoE structure, reducing activated parameters by 60\% while maintaining original performance and surpassing pruning-based approaches in extensive experiments. Overall, Dense2MoE establishes a new paradigm for efficient text-to-image generation.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

PixArt-Σ: Weak-to-Strong Training of Diffusion Transformer for 4K Text-to-Image Generation

1,934100CSS, ShellFeb 29, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{zheng2025densemoe,
  title  = {Dense2MoE: Restructuring Diffusion Transformer to MoE for Efficient Text-to-Image Generation},
  author = {Youwei Zheng and Yuxi Ren and Xin Xia and Xuefeng Xiao and Xiaohua Xie},
  year   = {2025},
  eprint = {2510.09094},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.09094v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.09094.svg)](https://codeofpaper.com/paper/2510.09094)

Discussion