arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.04378cs.CVcs.LG
收藏

Latent Consistency Models:通过少步推理合成高分辨率图像

Latent Consistency Models: Synthesizing High-Resolution Images with Few-Step Inference

Institute for Interdisciplinary Information Sciences, Tsinghua University(清华大学交叉信息研究院)

Simian Luo, Yiqin Tan, Longbo Huang, Jian Li, Hang Zhao

AI总结:

针对潜在扩散模型迭代采样慢的问题,提出潜在一致性模型,通过在潜在空间直接预测增广概率流ODE解实现少步高保真采样,还提出适配自定义数据集的微调方法,在少步文本生成图像任务上达SOTA。

摘要:

Latent Diffusion models(LDMs,潜在扩散模型)已在高分辨率图像合成方面取得了显著成果。但其迭代采样过程计算量巨大,导致生成速度缓慢。受Consistency Models(一致性模型,song等人提出)启发,我们提出Latent Consistency Models(LCMs,潜在一致性模型),可在包括Stable Diffusion(rombach等人提出)在内的任意预训练LDM上实现最少步数的快速推理。我们将有引导的反向扩散过程视为求解增广概率流ODE(PF-ODE)的过程,LCM被设计为在潜在空间中直接预测该ODE的解,从而减少大量迭代需求,实现快速、高保真的采样。通过从预训练的无分类器引导扩散模型高效蒸馏,一个高质量的768×768分辨率、2~4步推理的LCM仅需32个A100 GPU小时即可完成训练。此外,我们提出了Latent Consistency Fine-tuning(LCF,潜在一致性微调),这是一种专为在自定义图像数据集上微调LCM设计的新方法。在LAION-5B-Aesthetics数据集上的评估表明,LCM在少步推理的文本到图像生成任务上取得了当前最优性能。项目页面:https://latent-consistency-models.github.io/

英文摘要:

Latent Diffusion models (LDMs) have achieved remarkable results in synthesizing high-resolution images. However, the iterative sampling process is computationally intensive and leads to slow generation. Inspired by Consistency Models (song et al.), we propose Latent Consistency Models (LCMs), enabling swift inference with minimal steps on any pre-trained LDMs, including Stable Diffusion (rombach et al). Viewing the guided reverse diffusion process as solving an augmented probability flow ODE (PF-ODE), LCMs are designed to directly predict the solution of such ODE in latent space, mitigating the need for numerous iterations and allowing rapid, high-fidelity sampling. Efficiently distilled from pre-trained classifier-free guided diffusion models, a high-quality 768 x 768 2~4-step LCM takes only 32 A100 GPU hours for training. Furthermore, we introduce Latent Consistency Fine-tuning (LCF), a novel method that is tailored for fine-tuning LCMs on customized image datasets. Evaluation on the LAION-5B-Aesthetics dataset demonstrates that LCMs achieve state-of-the-art text-to-image generation performance with few-step inference. Project Page: https://latent-consistency-models.github.io/

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

↑