Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

FORA: Fast-Forward Caching in Diffusion Transformer Acceleration

About

Diffusion transformers (DiT) have become the de facto choice for generating high-quality images and videos, largely due to their scalability, which enables the construction of larger models for enhanced performance. However, the increased size of these models leads to higher inference costs, making them less attractive for real-time applications. We present Fast-FORward CAching (FORA), a simple yet effective approach designed to accelerate DiT by exploiting the repetitive nature of the diffusion process. FORA implements a caching mechanism that stores and reuses intermediate outputs from the attention and MLP layers across denoising steps, thereby reducing computational overhead. This approach does not require model retraining and seamlessly integrates with existing transformer-based diffusion models. Experiments show that FORA can speed up diffusion transformers several times over while only minimally affecting performance metrics such as the IS Score and FID. By enabling faster processing with minimal trade-offs in quality, FORA represents a significant advancement in deploying diffusion transformers for real-time applications. Code will be made publicly available at: https://github.com/prathebaselva/FORA.

Pratheba Selvaraju, Tianyu Ding, Tianyi Chen, Ilya Zharkov, Luming Liang• 2024

Related benchmarks

TaskDatasetResultRank
Class-conditional Image GenerationImageNet 256x256
Inception Score (IS)232.7
967
Class-conditional Image GenerationImageNet 256x256 (val)
Inception Score (IS)190
493
Text-to-Image GenerationMJHQ-30K
Overall FID10.33
239
Class-conditional Image GenerationImageNet
FID2.8
174
Class-conditional Image GenerationImageNet 512x512
FID42.43
126
Class-conditional Image GenerationImageNet (val)--
116
Class-conditional Image GenerationImageNet 512x512 (val)
FID (Val)12.13
102
Text-to-Image GenerationQwen-Image
Image Reward0.92
96
Text-to-Image GenerationPartiPrompts
ImageReward0.93
92
Class-conditional Image GenerationImageNet-1k (val)
FID3.88
79
Showing 10 of 43 rows

Other info

Follow for update