arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.05239cs.CV
收藏

SwiftBrush:基于变分分数蒸馏的单步文本到图像扩散模型

SwiftBrush: One-Step Text-to-Image Diffusion Model with Variational Score Distillation

VinAI Research(VinAI研究院)

Thuan Hoang Nguyen, Anh Tran

AI总结:

针对文本到图像扩散模型采样慢且现有蒸馏方法需大量训练图像的问题,提出无图像蒸馏方案SwiftBrush,通过复用文本到3D合成的损失函数,将预训练多步模型蒸馏为单步生成网络,在COCO-30K上达到FID 16.67、CLIP 0.29,性能超越现有蒸馏技术。

摘要:

尽管文本到图像扩散模型能够根据文本提示生成高分辨率且多样化的图像,但其通常面临缓慢的迭代采样过程。模型蒸馏是加速这些模型的最有效方向之一。然而,以往的蒸馏方法在保持生成质量方面存在不足,同时需要大量图像进行训练,这些图像要么来自真实数据,要么由教师模型合成生成。针对这一局限性,我们提出了一种名为SwiftBrush的无图像蒸馏方案。受文本到3D合成的启发——在该任务中,无需使用任何3D数据真实值,即可通过特定损失从2D文本到图像扩散先验中获得与输入提示对齐的3D神经辐射场——我们的方法将该损失重新用于将预训练的多步文本到图像模型蒸馏为学生网络,该网络仅需单次推理步骤即可生成高保真图像。尽管方法简单,我们的模型仍是最早能够在不依赖任何训练图像数据的情况下,生成与Stable Diffusion质量相当图像的单步文本到图像生成器之一。值得注意的是,SwiftBrush在COCO-30K基准测试上取得了16.67的FID分数和0.29的CLIP分数,取得了具有竞争力的结果,甚至大幅超越了现有的最先进蒸馏技术。

英文摘要:

Despite their ability to generate high-resolution and diverse images from text prompts, text-to-image diffusion models often suffer from slow iterative sampling processes. Model distillation is one of the most effective directions to accelerate these models. However, previous distillation methods fail to retain the generation quality while requiring a significant amount of images for training, either from real data or synthetically generated by the teacher model. In response to this limitation, we present a novel image-free distillation scheme named $\textbf{SwiftBrush}$. Drawing inspiration from text-to-3D synthesis, in which a 3D neural radiance field that aligns with the input prompt can be obtained from a 2D text-to-image diffusion prior via a specialized loss without the use of any 3D data ground-truth, our approach re-purposes that same loss for distilling a pretrained multi-step text-to-image model to a student network that can generate high-fidelity images with just a single inference step. In spite of its simplicity, our model stands as one of the first one-step text-to-image generators that can produce images of comparable quality to Stable Diffusion without reliance on any training image data. Remarkably, SwiftBrush achieves an FID score of $\textbf{16.67}$ and a CLIP score of $\textbf{0.29}$ on the COCO-30K benchmark, achieving competitive results or even substantially surpassing existing state-of-the-art distillation techniques.

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

↑