DeepCache: Accelerating Diffusion Models for Free

计算机科学 加速 计算 冗余(工程) 再培训 重新使用 人工智能 降噪 机器学习 算法 并行计算 生态学 国际贸易 业务 生物 操作系统
作者
Xinyin Ma,Gongfan Fang,Xinchao Wang
出处
期刊:Cornell University - arXiv 被引量:4
标识
DOI:10.48550/arxiv.2312.00858
摘要

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

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
Wxj246801发布了新的文献求助10
刚刚
科研通AI6.2应助俊俊采纳,获得30
2秒前
2秒前
2秒前
4秒前
4秒前
wanci应助贾子涵采纳,获得10
4秒前
lrrrrrr完成签到,获得积分10
5秒前
hyphen完成签到,获得积分10
5秒前
5秒前
passerby完成签到,获得积分10
6秒前
顾矜应助个性大米采纳,获得10
7秒前
核桃发布了新的文献求助10
7秒前
科研通AI6.2应助英吉利25采纳,获得10
7秒前
FashionBoy应助山沟沟采纳,获得10
8秒前
8秒前
顾矜应助Cordero采纳,获得10
9秒前
zhangrunbin123完成签到,获得积分10
9秒前
李爱国应助飞飞飞采纳,获得10
10秒前
神奇大药丸完成签到,获得积分10
10秒前
Cristianozy发布了新的文献求助10
10秒前
11秒前
童话发布了新的文献求助10
11秒前
11秒前
LukaMagic完成签到,获得积分10
14秒前
活力的巧凡完成签到 ,获得积分10
15秒前
16秒前
16秒前
oops完成签到,获得积分10
16秒前
幽默赛君完成签到 ,获得积分10
17秒前
21秒前
21秒前
咕嘟完成签到,获得积分10
21秒前
22秒前
龙龙不卷完成签到,获得积分20
23秒前
whm完成签到,获得积分10
24秒前
一丁雨发布了新的文献求助10
26秒前
26秒前
26秒前
26秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Les Mantodea de Guyane Insecta, Polyneoptera 2000
Leading Academic-Practice Partnerships in Nursing and Healthcare: A Paradigm for Change 800
基于非线性光纤环形镜的全保偏锁模激光器研究-上海科技大学 800
Pulse width control of a 3-phase inverter with non sinusoidal phase voltages 777
Signals, Systems, and Signal Processing 610
Research Methods for Business: A Skill Building Approach, 9th Edition 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6409535
求助须知:如何正确求助?哪些是违规求助? 8228686
关于积分的说明 17458081
捐赠科研通 5462406
什么是DOI,文献DOI怎么找? 2886390
邀请新用户注册赠送积分活动 1862790
关于科研通互助平台的介绍 1702243