arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.14548cs.LGcs.CV
收藏

轻松实现一致性模型

Consistency Models Made Easy

Westlake University(西湖大学)

Zhengyang Geng, Ashwini Pokle, William Luo, Justin Lin, J. Zico Kolter

AI总结:

本文提出Easy Consistency Tuning(ECT)方法,通过将扩散模型视为一致性模型特例进行微调,大幅缩短训练时间并提升生成质量,同时揭示了CM的幂律缩放特性。

摘要:

一致性模型(CMs)比传统扩散模型提供更快的采样速度,但其训练资源消耗大。例如,截至2024年,在CIFAR-10上训练最先进的CM需要8个GPU运行一周。本研究提出一种有效的CM训练方案,大幅提升构建此类模型的效率。具体而言,通过特定微分方程表达CM轨迹,我们论证扩散模型可视为CM的特例。因此,可从预训练扩散模型微调一致性模型,并在训练过程中逐步以更高程度逼近完全一致性条件。我们将由此产生的方法命名为Easy Consistency Tuning(ECT),在提升先前方法质量的同时大幅缩短训练时间:例如,ECT在单个A100 GPU上1小时内于CIFAR10上实现2.73的2步FID,与训练数百GPU小时的Consistency Distillation相媲美。得益于这种计算效率,我们研究了CM在ECT下的缩放定律,表明它们遵循经典幂律缩放,暗示其在更大规模下提升效率和性能的能力。我们的代码(https://github.com/locuslab/ect)已公开,使CM更易被广泛社区获取。

英文摘要:

Consistency models (CMs) offer faster sampling than traditional diffusion models, but their training is resource-intensive. For example, as of 2024, training a state-of-the-art CM on CIFAR-10 takes one week on 8 GPUs. In this work, we propose an effective scheme for training CMs that largely improves the efficiency of building such models. Specifically, by expressing CM trajectories via a particular differential equation, we argue that diffusion models can be viewed as a special case of CMs. We can thus fine-tune a consistency model starting from a pretrained diffusion model and progressively approximate the full consistency condition to stronger degrees over the training process. Our resulting method, which we term Easy Consistency Tuning (ECT), achieves vastly reduced training times while improving upon the quality of previous methods: for example, ECT achieves a 2-step FID of 2.73 on CIFAR10 within 1 hour on a single A100 GPU, matching Consistency Distillation trained for hundreds of GPU hours. Owing to this computational efficiency, we investigate the scaling laws of CMs under ECT, showing that they obey the classic power law scaling, hinting at their ability to improve efficiency and performance at larger scales. Our code (https://github.com/locuslab/ect) is publicly available, making CMs more accessible to the broader community.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑