DyDiT++: Diffusion Transformers with Timestep and Spatial Dynamics for Efficient Visual Generation

Wangbo Zhao, Yizeng Han, Jiasheng Tang, Kai Wang, Hao Luo, Yibing Song, Gao Huang, Fan Wang, Yang You

TL;DR

This paper tackles the computational cost of Diffusion Transformers (DiTs), a powerful class of models for visual generation. They introduce DyDiT++, a dynamic architecture that intelligently adjusts computation based on the generation timestep and spatial regions, leading to significant speedups without sacrificing image quality. This work extends to flow-matching, video, and text-to-image generation, and even offers efficient fine-tuning methods.

What Problem Does This Paper Address?

Diffusion Transformers (DiTs) have shown impressive results in generating high-quality images, videos, and more. However, their inference process is computationally expensive. This is largely due to a "static" approach where the model performs the same amount of computation for every step of the diffusion process and for every part of the image. The authors observe that this leads to redundant computations, especially in later diffusion steps (when the image is already mostly formed) and in less complex image regions. This inefficiency hinders their practical application, especially in resource-constrained environments.

Methods

The core of DyDiT++ lies in making the DiT architecture dynamic. They achieve this through two main mechanisms:

  • Timestep-wise Dynamic Width (TDW): This approach dynamically adjusts the "width" of the model (specifically, the number of activated attention heads and MLP channel groups) based on the current diffusion timestep. The intuition is that earlier timesteps (more noise) require more complex processing, while later timesteps (closer to the final image) can be handled by a narrower model. This is achieved using lightweight "routers" that learn to control activation based on the timestep embedding.
  • Spatial-wise Dynamic Token (SDT): This strategy dynamically skips computation for image patches that are deemed "easy" to process. By identifying less complex regions, these patches can bypass computationally intensive blocks (like MLPs), further reducing redundant work. This is implemented using a token router that predicts which tokens to process.

DyDiT++ builds upon DyDiT by extending its capabilities:

  • Flow Matching Acceleration: DyDiT's dynamic principles are applied to flow-matching-based generative models, demonstrating similar speedup benefits.
  • Cross-Task Generalization: The architecture is adapted for video generation (DyLatte) and text-to-image generation (DyFLUX), showing its versatility.
  • Parameter-Efficient Fine-Tuning (PEFT): To address the high cost of full fine-tuning, they introduce Timestep-based Dynamic LoRA (TD-LoRA). This method adapts LoRA (a popular PEFT technique) to be timestep-aware, allowing for efficient fine-tuning with minimal trainable parameters.

Datasets

The paper uses standard datasets for evaluation, including:

  • ImageNet: For image generation tasks (256x256 and 512x512 resolutions).
  • Fine-grained datasets: Food, Artbench, Cars, Birds (for in-domain and cross-domain transfer learning).
  • Video datasets: UCF101, Taichi-HD, FaceForensics, SkyTimelapse (for video generation).
  • COCO: For text-to-image generation.

Key Insights and Ideas

  • Computational Redundancy is Ubiquitous: The paper convincingly shows that computational redundancy isn't just an artifact of diffusion models but is inherent in both the timestep and spatial dimensions. This is a crucial insight that justifies the need for dynamic architectures.
  • Timestep Matters: The difficulty of predicting noise varies significantly across diffusion timesteps. Early steps are harder, later steps are easier. This observation is key to the TDW mechanism.
  • Spatial Complexity Varies: Different parts of an image present different challenges for noise prediction. Focusing computation on complex regions and skipping easier ones (SDT) is a smart way to save resources.
  • Dynamic is Hardware-Friendly: Unlike some dynamic networks that struggle with batch inference due to per-sample graph adjustments, DyDiT's dynamic decisions are timestep-dependent (TDW) or token-independent (SDT for MLPs), making it efficient for batched processing.
  • TD-LoRA is a Game-Changer for Efficiency: The proposed TD-LoRA significantly reduces the cost of adapting large models, making advanced generative capabilities more accessible.

Key Results

  • Significant Speedup: DyDiT-XL reduces FLOPs by 51% (achieving 1.73x realistic speedup on hardware) compared to static DiT-XL, while maintaining a competitive FID score of 2.07 on ImageNet.
  • Versatility: DyDiT++ demonstrates acceleration for flow-matching (SiT), video generation (Latte, 1.62x speedup), and text-to-image generation (FLUX, 1.59x speedup).
  • Efficient Fine-Tuning: TD-LoRA reduces learnable parameters to <3% of the original model, with a 26% reduction in GPU memory usage, while achieving competitive performance.
  • Comparable Quality: Despite significant speedups, DyDiT++ generally maintains or even improves upon the FID scores of its static counterparts.

Limitations and Future Work

  • Training from Scratch: While fine-tuning is efficient, training DyDiT from scratch can be slightly slower to converge than static models due to the introduction of Gumbel noise for router training.
  • LCM Combination Challenges: Combining DyDiT with LCM at very low FLOPs ratios can lead to model collapse, suggesting that dynamic models and training strategies for distillation-based samplers need further development.
  • Future Work: The authors suggest extending DyDiT++ to applications like image editing and controllable image generation, as well as exploring dynamic architectures under different prediction modes (x-prediction, v-prediction) in diffusion models.

Summary updated

BibTeX
@article{zhao2026dydit,
  author = {Wangbo Zhao and Yizeng Han and Jiasheng Tang and Kai Wang and Hao Luo and Yibing Song and Gao Huang and Fan Wang and Yang You},
  title = {{DyDiT++: Diffusion Transformers with Timestep and Spatial Dynamics for Efficient Visual Generation}},
  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year = {2026},
  doi = {10.1109/tpami.2026.3654201},
}
Figure