Δ-DiT: A Training-Free Acceleration Method Tailored for Diffusion Transformers

Pengtao Chen, Mingzhu Shen, Peng Ye, Jianjian Cao, Chongjun Tu, Christos-Savvas Bouganis, Yiren Zhao, Tao ChenarXiv 2024 · DOI

Abstract

Diffusion Transformers (DiT) have emerged as powerful architectures for high-quality image and video generation, powering models like Sora and Stable Diffusion 3. However, their computational demands pose significant challenges for real-time applications. We present Δ-DiT, a training-free acceleration framework specifically designed for the isotropic structure of DiTs. By introducing a novel Δ-Cache mechanism that stores feature offsets and a stage-adaptive acceleration strategy, Δ-DiT achieves a 1.6x speedup on 20-step sampling. Notably, our method not only maintains but often improves image quality, outperforming existing UNet-centric acceleration techniques in both efficiency and robustness.

Introduction

The transition from UNet to Transformer-based diffusion models has set new benchmarks in generative modeling. Despite their success, Diffusion Transformers (DiT) are computationally intensive. Existing acceleration methods like DeepCache or Faster Diffusion, primarily designed for UNet architectures, struggle with DiTs due to their "isotropic" nature—a uniform sequence of blocks lacking explicit encoders or skip-connections. Simply skipping blocks in DiTs leads to significant information loss and artifacts. Δ-DiT addresses these limitations by leveraging the unique structural properties of Transformers to enable efficient, high-quality generation without requiring additional training.

Methodology

Δ-DiT introduces two core innovations to overcome the limitations of traditional block-skipping:

  1. Δ-Cache: Unlike traditional caching that reuses raw feature maps, Δ-Cache stores the difference (offset) between the input and output of a block sequence. This "delta" is applied to the new input in subsequent inference steps, allowing the model to skip heavy computations while still incorporating updated sampling information. This approach is particularly stable in DiTs because the feature map scale remains consistent across all blocks.
  2. Stage-adaptive Acceleration: The authors identified a functional divergence within DiT blocks: front blocks primarily handle image outlines, while rear blocks focus on fine details. Since diffusion processes naturally transition from global structure to local detail, Δ-DiT dynamically adjusts its cache. In early stages, it caches rear blocks to prioritize computation on outlines; in later stages, it caches front blocks to focus on detail refinement.

Experiments and Results

The framework was evaluated on PIXART-α, DiT-XL, and PIXART-α-LCM across MS-COCO 2017, PartiPrompts, and ImageNet-50k benchmarks.

Figure 1: Performance of Δ-DiT on PIXART-α for MS-COCO. The method achieves a 1.6x speedup while improving the FID score from 39.0 to 35.9.

Key results include:

  • Efficiency: A consistent 1.6x speedup across various models for 20-step generation.
  • Quality Improvement: Surprisingly, Δ-DiT often improves the Frechet Inception Distance (FID). For instance, on PIXART-α, the FID improved from 39.00 to 35.88. Similar gains were observed for DiT-XL on ImageNet.
  • Low-Step Robustness: In 4-step generation scenarios using Consistency Models, Δ-DiT significantly outperformed baselines like Faster Diffusion and TGATE, which often produced disastrous results at such high acceleration ratios.
Figure 2: Results for DiT-XL on ImageNet. Δ-DiT demonstrates consistent quality gains (FID 15.9 to 13.3) and speedup across different model architectures.

Conclusion

Δ-DiT provides a robust, training-free solution for accelerating Diffusion Transformers. By exploiting the isotropic structure and the "outline vs. detail" functional split of DiT blocks, it achieves significant speedups without sacrificing—and often enhancing—image quality. Future work will focus on more fine-grained, block-by-block analysis and automated hyperparameter optimization to further refine the caching strategy.

Summary updated

BibTeX
@misc{chen2024dit,
  author = {Pengtao Chen and Mingzhu Shen and Peng Ye and Jianjian Cao and Chongjun Tu and Christos-Savvas Bouganis and Yiren Zhao and Tao Chen},
  title = {{Δ-DiT: A Training-Free Acceleration Method Tailored for Diffusion Transformers}},
  year = {2024},
  eprint = {2406.01125},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.01125},
}
Figure