Diffusion models have recently gained unprecedented attention in the field of image synthesis due to their remarkable generative capabilities. Notwithstanding their prowess, these models often incur substantial computational costs, primarily attributed to the sequential denoising process and cumbersome model size. Traditional methods for compressing diffusion models typically involve extensive retraining, presenting cost and feasibility challenges. In this paper, we introduce DeepCache, a novel training-free paradigm that accelerates diffusion models from the perspective of model architecture. DeepCache capitalizes on the inherent temporal redundancy observed in the sequential denoising steps of diffusion models, which caches and retrieves features across adjacent denoising stages, thereby curtailing redundant computations. Utilizing the property of the U-Net, we reuse the high-level features while updating the low-level features in a very cheap way. This innovative strategy, in turn, enables a speedup factor of 2.3$\times$ for Stable Diffusion v1.5 with only a 0.05 decline in CLIP Score, and 4.1$\times$ for LDM-4-G with a slight decrease of 0.22 in FID on ImageNet. Our experiments also demonstrate DeepCache's superiority over existing pruning and distillation methods that necessitate retraining and its compatibility with current sampling techniques. Furthermore, we find that under the same throughput, DeepCache effectively achieves comparable or even marginally improved results with DDIM or PLMS. The code is available at https://github.com/horseee/DeepCache
BWCache: Accelerating Video Diffusion Transformers through Block-Wise Caching
School of Artificial Intelligence, Beijing Normal University, Beijing 100875, China(人工智能学院,北京师范大学,北京);Institute of Artificial Intelligence and Future Networks, Beijing Normal University, Zhuhai 519087, China(人工智能与未来网络研究院,北京师范大学,珠海)
From Reusing to Forecasting: Accelerating Diffusion Models with TaylorSeers
Shanghai Jiao Tong University(上海交通大学);Shandong University(山东大学);University of Electronic Science and Technology of China(电子科技大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
Accelerating Diffusion Transformers with Token-wise Feature Caching
Shanghai Jiao Tong University(上海交通大学);University of Electronic Science & Technology of China(电子科技大学);Sichuan University(四川大学);National University of Defense Technology(国防科技大学);Zhejiang University(浙江大学)
针对 Diffusion Transformer 计算成本高的问题,提出逐 token 自适应特征缓存,并按层类型与深度设置缓存比例,在 PixArt-α、OpenSora 和 DiT 上免训练实现近无损加速。
Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization
Department of Computer Science, North Carolina State University(北卡罗来纳州立大学计算机科学系);National Center for Computational Science, Oak Ridge National Lab(橡树岭国家实验室计算科学中心);Department of Mechanical Engineering, Keio University(庆应大学机械工程系)
Accelerating Diffusion Sampling with Optimized Time Steps
Academy of Mathematics and Systems Science, Chinese Academy of Sciences(中国科学院数学与系统科学研究院);University of Electronic Science and Technology of China(电子科技大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)
AdaDiff: Accelerating Diffusion Models through Step-Wise Adaptive Computation
MBZUAI(穆罕默德·本·扎耶德人工智能大学);Google(谷歌公司);University of Minnesota, Twin Cities(明尼苏达大学双城分校);UNC at Chapel Hill(北卡罗来纳大学教堂山分校);North Carolina State University(北卡罗来纳州立大学)
Accelerating Parallel Diffusion Model Serving with Residual Compression
Southern University of Science and Technology(南方科技大学);Jiangnan University(江南大学);Shenzhen Technology University(深圳技术大学);The Chinese University of Hong Kong(香港中文大学)
SpeCa: Accelerating Diffusion Transformers with Speculative Feature Caching
Shanghai Jiao Tong University(上海交通大学);Shandong University(山东大学);University of Electronic Science and Technology of China(电子科学与技术大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科学与技术大学(广州));Tsinghua University(清华大学);National University of Singapore(新加坡国立大学)
LinCa: Accelerating Diffusion Models via Learnable Decomposed Feature Caching
Shanghai Jiao Tong University(上海交通大学);Shandong University(山东大学);Terminal Intelligent Computing Division, Alibaba Cloud(阿里云终端智能计算事业部);South China University of Technology(华南理工大学);Jilin University(吉林大学)