Cache Me if You Can: Accelerating Diffusion Models through Block Caching
Felix Wimbauer, Bichen Wu, Edgar Schönfeld, Xiaoliang Dai, Ji Hou, Zijian He, Artsiom Sanakoyeu, Peizhao Zhang, Sam S. Tsai, Jonas Kohler, Christian Rupprecht, Daniel Cremers
摘要
Diffusion models have recently revolutionized the field of image synthesis due to their ability to generate photorealistic images. However, one of the major drawbacks of diffusion models is that the image generation process is costly. A large image-to-image network has to be applied many times to iteratively refine an image from random noise. While many recent works propose techniques to reduce the number of required steps, they generally treat the underlying denoising network as a black box. In this work, we investigate the behavior of the layers within the network and find that 1) the layers' output changes smoothly over time, 2) the layers show distinct patterns of change, and 3) the change from step to step is often very small. We hypothesize that many layer computations in the denoising network are redundant. Leveraging this, we introduce block caching, in which we reuse outputs from layer blocks of previous steps to speed up inference. Furthermore, we propose a technique to automatically determine caching schedules based on each block's changes over timesteps. In our experiments, we show through FID, human evaluation and qualitative analysis that Block Caching allows to generate images with higher visual quality at the same computational cost. We demonstrate this for different state-of-the-art models (LDM and EMU) and solvers (DDIM and DPM). Project page: fwmb.github.io/blockcaching
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 93 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- High-Resolution Image Synthesis with Latent Diffusion Models 引用了 Diffusion Models Beat GANs on Image Synthesis
- High-Resolution Image Synthesis with Latent Diffusion Models 引用了 Zero-Shot Text-to-Image Generation
- High-Resolution Image Synthesis with Latent Diffusion Models 引用了 Denoising Diffusion Probabilistic Models
- SP-VLA: A Joint Model Scheduling and Token Pruning Approach for VLA Model Acceleration 引用了 Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching
- Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching 引用了 Diffusion Models Beat GANs on Image Synthesis
- Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching 引用了 Denoising Diffusion Probabilistic Models
- Diffusion Models Beat GANs on Image Synthesis 引用了 Zero-Shot Text-to-Image Generation
- Diffusion Models Beat GANs on Image Synthesis 引用了 Denoising Diffusion Probabilistic Models
- Faster Diffusion: Rethinking the Role of the Encoder for Diffusion Model Inference 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- Faster Diffusion: Rethinking the Role of the Encoder for Diffusion Model Inference 引用了 Denoising Diffusion Probabilistic Models
- Faster Diffusion: Rethinking the Role of the Encoder for Diffusion Model Inference 引用了 Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
- dKV-Cache: The Cache for Diffusion Language Models 引用了 Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching
- dKV-Cache: The Cache for Diffusion Language Models 引用了 Denoising Diffusion Probabilistic Models
- MagCache: Fast Video Generation with Magnitude-Aware Cache 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- MagCache: Fast Video Generation with Magnitude-Aware Cache 引用了 Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching
- MagCache: Fast Video Generation with Magnitude-Aware Cache 引用了 Diffusion Models Beat GANs on Image Synthesis
- MagCache: Fast Video Generation with Magnitude-Aware Cache 引用了 Faster Diffusion: Rethinking the Role of the Encoder for Diffusion Model Inference
- MagCache: Fast Video Generation with Magnitude-Aware Cache 引用了 Denoising Diffusion Probabilistic Models
- MagCache: Fast Video Generation with Magnitude-Aware Cache 引用了 Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding 引用了 Diffusion Models Beat GANs on Image Synthesis
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding 引用了 Zero-Shot Text-to-Image Generation
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding 引用了 Denoising Diffusion Probabilistic Models
引用它的顶会 Paper93
- Learning-to-Cache: Accelerating Diffusion Transformer via Layer CachingXinyin Ma, Gongfan Fang, Michael Bi Mi, Xinchao WangNeurIPS 2024 · 167 次引用
- dKV-Cache: The Cache for Diffusion Language ModelsXinyin Ma, Runpeng Yu, Gongfan Fang, Xinchao WangNeurIPS 2025 · 145 次引用
- SP-VLA: A Joint Model Scheduling and Token Pruning Approach for VLA Model AccelerationYe Li, Yuan Meng, Zewen Sun, Kangye Ji 等ICLR 2026 · 60 次引用
- Faster Diffusion: Rethinking the Role of the Encoder for Diffusion Model InferenceSenmao Li, Taihang Hu, Joost van de Weijer, Fahad Shahbaz Khan 等NeurIPS 2024 · 50 次引用
- MagCache: Fast Video Generation with Magnitude-Aware CacheZehong Ma, Longhui Wei, Feng Wang, Shiliang Zhang 等NeurIPS 2025 · 41 次引用
它引用的 Paper33
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 次引用
- Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 次引用
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser 等CVPR 2022 · 13,123 次引用
- Photorealistic Text-to-Image Diffusion Models with Deep Language UnderstandingChitwan Saharia, William Chan, Saurabh Saxena, Lala Li 等NeurIPS 2022 · 8,965 次引用
- Zero-Shot Text-to-Image GenerationAditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray 等ICML 2021 · 6,356 次引用
相关 Paper
- BWCache: Accelerating Video Diffusion Transformers through Block-Wise CachingHanshuai Cui, Zhiqing Tang, Zhifei Xu, Zhi Yao 等ICLR 2026 · 11 次引用
- Budget-Constrained Step-Level Diffusion CachingMingkun Lei, Tong Zhao, Liangyu Yuan, Chi ZhangICML 2026 · 1 次引用
- DeepCache: Accelerating Diffusion Models for FreeXinyin Ma, Gongfan Fang, Xinchao WangCVPR 2024 · 87 次引用
- ReFrame: Layer Caching for Accelerated Inference in Real-Time RenderingLufei Liu, Tor M. AamodtICML 2025
- Approximate Caching for Efficiently Serving Text-to-Image Diffusion ModelsShubham Agarwal, Subrata Mitra, Sarthak Chakraborty, Srikrishna Karanam 等NSDI 2024 · 44 次引用
