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

逆向稳定扩散:生成这张图像时使用了什么提示词?

Reverse Stable Diffusion: What prompt was used to generate this image?

University of Bucharest(布加勒斯特大学);University of Central Florida(中佛罗里达大学)

Florinel-Alin Croitoru, Vlad Hondru, Radu Tudor Ionescu, Mubarak Shah

AI总结:

本文研究从Stable Diffusion生成图像反推提示词嵌入的任务,提出联合提示词回归与多标签词汇分类的学习框架,并结合课程学习降低标注噪声影响,在DiffusionDB上验证了方法有效性,同时发现该训练还能提升模型文生图时的图文对齐程度。

摘要:

文本到图像的扩散模型近来引起了许多研究者的兴趣,而对扩散过程进行反演可以在更好地理解生成过程以及如何设计提示词以获得期望图像方面发挥重要作用。为此,我们研究了在给定由生成式扩散模型生成的图像时预测提示词嵌入的任务。我们考虑了一系列白盒与黑盒模型(分别对应能否访问扩散网络权重的情形)来处理所提出的任务。我们提出了一个新的学习框架,该框架包含联合提示词回归与多标签词汇分类目标,从而生成改进的提示词。为了进一步改进我们的方法,我们采用了一种课程学习过程,该过程促进对标注噪声较低(即对齐程度更好)的图像-提示词对的学习。我们在DiffusionDB数据集上进行了实验,从Stable Diffusion生成的图像中预测文本提示词。此外,我们有一个有趣的发现:在提示词生成任务上训练扩散模型,当该模型被直接重新用于文本到图像生成时,可以使模型生成的图像与输入提示词的对齐程度显著提高。我们的代码已在https://github.com/CroitoruAlin/Reverse-Stable-Diffusion公开可供下载。

英文摘要:

Text-to-image diffusion models have recently attracted the interest of many researchers, and inverting the diffusion process can play an important role in better understanding the generative process and how to engineer prompts in order to obtain the desired images. To this end, we study the task of predicting the prompt embedding given an image generated by a generative diffusion model. We consider a series of white-box and black-box models (with and without access to the weights of the diffusion network) to deal with the proposed task. We propose a novel learning framework comprising a joint prompt regression and multi-label vocabulary classification objective that generates improved prompts. To further improve our method, we employ a curriculum learning procedure that promotes the learning of image-prompt pairs with lower labeling noise (i.e. that are better aligned). We conduct experiments on the DiffusionDB data set, predicting text prompts from images generated by Stable Diffusion. In addition, we make an interesting discovery: training a diffusion model on the prompt generation task can make the model generate images that are much better aligned with the input prompts, when the model is directly reused for text-to-image generation. Our code is publicly available for download at https://github.com/CroitoruAlin/Reverse-Stable-Diffusion.

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

↑