Remix-DiT: Mixing Diffusion Transformers for Multi-Expert Denoising

Gongfan Fang, Xinyin Ma, Xinchao Wang

Abstract

Diffusion Transformers (DiTs) have established a new state-of-the-art in high-fidelity generative modeling but suffer from significant computational costs. While multi-expert denoising—partitioning the denoising process among specialized models—improves quality, training numerous independent models is often computationally prohibitive. This paper presents Remix-DiT, a framework that generates $N$ specialized diffusion experts by learnably mixing a small set of $K$ basis models ($K < N$). By adaptively allocating capacity across timesteps through parameter fusion, Remix-DiT reduces FID on ImageNet from 3.73 to 3.22 without the linear training overhead of traditional multi-expert systems.

Introduction

The denoising process in diffusion models is inherently a multi-task problem. Early stages (high noise) require models to capture global structure and low-frequency features, while later stages (low noise) demand focus on high-frequency textures and fine details. A single, monolithic "one-size-fits-all" model often fails to optimize for these divergent requirements simultaneously.

The Multi-Expert Challenge

Existing solutions involve training separate "expert" models for different time intervals. However, this approach faces two primary hurdles:

  1. Training Cost: The computational budget scales linearly with the number of independent models.
  2. Heuristic Partitioning: Timestep intervals are typically split into equal, arbitrary chunks, failing to account for the varying difficulty of different denoising stages.
Comparison of scaling strategies: (a) training a larger DiT, (b) using independent experts over timesteps, and (c) the proposed Remix-DiT approach.

Remix-DiT Methodology

Remix-DiT addresses these issues through a novel Mixing operation. Instead of training $N$ independent experts, the framework trains $K$ basis models and constructs experts via parameter fusion.

Parameter Fusion and Mixed Linear Layers

An expert model $\theta_i$ for a specific time interval is defined as a weighted average of the basis models' parameters: $\theta_i = \sum \alpha_{ik}\beta_k$. To implement this efficiently, the width of the DiT's linear layers is increased by a factor of $K$. Weights are fused dynamically during training based on learnable mixing coefficients ($\alpha$).

Implementation of Mixed Linear Experts where weights are fused based on learnable coefficients.

Learnable Coefficients and Regularization

The mixing coefficients are optimized alongside the model parameters, allowing the system to autonomously discover the optimal allocation of basis resources. To prevent basis models from collapsing into identical states early in training, a "prior regularization" cross-entropy loss is employed, encouraging initial specialization across the denoising timeline.

Experimental Results

Evaluated on the ImageNet-256x256 benchmark, Remix-DiT consistently outperforms both standard DiTs and traditional multi-expert baselines across various scales:

  • DiT-L (Large): Achieved an FID of 3.22, significantly better than the standard DiT-L (3.73) and an 8-expert baseline (3.41).
  • DiT-B (Base): Improved FID from 10.11 to 9.02.

Key Insights

  • Adaptive Allocation: The model naturally allocates more specialized capacity to low-noise timesteps, indicating that fine-detail generation is more computationally demanding than global structure formation.
  • Inference Efficiency: Since mixing occurs at the parameter level, the final expert maintains the same architecture as a standard DiT. Weights can be pre-computed for inference, providing multi-expert performance at single-model speeds.
  • Collaborative Training: Unlike independent experts, all basis models are updated throughout the training process, leading to superior data efficiency.

Conclusion

Remix-DiT demonstrates that architectural flexibility and learnable resource allocation are more effective for scaling diffusion models than simply increasing raw training steps or model size. By leveraging parameter mixing, it provides a scalable, efficient path toward higher-quality image synthesis.

Code is available at https://github.com/VainF/Remix-DiT.

Summary updated

BibTeX
@inproceedings{fang2024remix,
  author = {Gongfan Fang and Xinyin Ma and Xinchao Wang},
  title = {{Remix-DiT: Mixing Diffusion Transformers for Multi-Expert Denoising}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=vo5LONGAdo},
}
Figure