FasterDiT: Towards Faster Diffusion Transformers Training without Architecture Modification

Jingfeng Yao, Cheng Wang, Wenyu Liu, Xinggang Wang

Abstract

Diffusion Transformers (DiT) have set new benchmarks in generative modeling but suffer from prohibitive training costs. We introduce FasterDiT, a training strategy that achieves a 7x speedup on ImageNet-1k without architectural modifications. FasterDiT optimizes the training process through a data-dependent Signal-to-Noise Ratio (SNR) perspective and a novel directional supervision loss for velocity prediction.

Introduction

The computational demand of training Diffusion Transformers (DiT) is a significant barrier to research and deployment. For instance, standard DiT training on ImageNet at 256x256 resolution requires over 7,000k iterations. FasterDiT addresses this by identifying and mitigating inefficiencies in the training dynamics, specifically targeting strategy inconsistency and limited supervision.

Problem Statement: Strategy Inconsistency

A key challenge in diffusion training is that popular optimizations, such as specific timestep sampling strategies, are often not robust across different datasets or data signal intensities. As shown in Figure 1, the same sampling strategy can lead to diametrically opposite performance trends depending on the data's standard deviation (signal intensity).

Empirical evidence of strategy inconsistency: identical sampling strategies produce opposite FID trends across different data signal intensities (std).

Furthermore, standard training relies on Mean Squared Error (MSE) for noise or velocity prediction, which often provides insufficient supervision for rapid convergence.

Methodology

FasterDiT comprises three main components designed for ease of implementation and high impact.

Data-dependent SNR PDF

Standard SNR definitions often neglect the intensity of the data signal itself. We redefine SNR to be data-dependent and analyze its Probability Density Function (PDF). This provides a unified framework to understand the interplay between noise scheduling, loss weighting, and timestep sampling.

Optimal SNR Alignment

By visualizing the SNR PDF, we observe that training effectiveness is maximized when the model's focus is aligned with a specific SNR range. FasterDiT utilizes Data Shifting (adjusting input data standard deviation) to move the PDF and Concentrating (log-normal timestep sampling) to sharpen the focus within this optimal range.

Visualizing the SNR PDF: Adjusting signal strength shifts the PDF, while sampling strategies concentrate training density. FasterDiT aligns these to the model's effective learning range.

Improved Supervision

For models employing velocity prediction (flow matching), we introduce a velocity direction loss. While standard Mean Squared Error (MSE) supervises the magnitude of the predicted vector, our directional term uses cosine similarity to explicitly supervise the vector's orientation. This provides a more informative gradient, accelerating convergence.

Results and Insights

FasterDiT achieves an FID of 2.30 on ImageNet 256×256 in just 1,000k iterations, matching the performance of a standard DiT that requires 7,000k iterations. This represents a 7x speedup. Furthermore, the method is architecture-agnostic, providing significant FID improvements for U-ViT and LDM-UNet under identical training budgets.

Our analysis reveals a "no free lunch" trade-off: strategies that sharpen the model's focus on specific SNR levels can boost peak performance but increase sensitivity to the underlying data distribution. The SNR PDF serves as a vital diagnostic tool to navigate this trade-off.

Conclusion

FasterDiT offers a simple yet powerful suite of techniques to accelerate DiT training. By aligning training focus through an SNR PDF perspective and enhancing supervision with directional loss, we significantly reduce the computational barrier for high-quality generative modeling.

Summary updated

BibTeX
@inproceedings{yao2024fasterdit,
  author = {Jingfeng Yao and Cheng Wang and Wenyu Liu and Xinggang Wang},
  title = {{FasterDiT: Towards Faster Diffusion Transformers Training without Architecture Modification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=cqRgoDFaGN},
}
Figure