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

好种子出好苗:发现文本到图像扩散模型中的秘密种子

Good Seed Makes a Good Crop: Discovering Secret Seeds in Text-to-Image Diffusion Models

University of Pennsylvania(宾夕法尼亚大学);Adobe Inc.(奥多比公司)

Katherine Xu, Lingzhi Zhang, Jianbo Shi

AI总结:

该研究探索文本到图像扩散模型中随机种子的影响,发现黄金种子FID达21.60(劣质种子为31.97),种子可通过生成图像高度区分,且影响视觉维度与构图,为图像生成提供实用价值。

摘要:

近年来,文本到图像(T2I)扩散模型的进展推动了创意性和照片级真实感图像合成的发展。通过改变随机种子,我们可以为固定文本提示生成大量图像。从技术上讲,种子控制初始噪声,并且在多步扩散推理中,控制反向扩散过程中间时间步用于重参数化的噪声。然而,随机种子对生成图像的具体影响仍未得到充分探索。在这项工作中,我们对扩散推理过程中随机种子的影响进行了大规模科学研究。值得注意的是,我们发现最佳‘黄金’种子的FID达到了21.60,而最差‘劣质’种子的FID为31.97。此外,一个分类器在仅几个 epoch 内就能以超过99.9%的准确率预测生成图像所用的种子编号,这表明基于生成图像可以高度区分种子。受这些发现的启发,我们研究了种子对可解释视觉维度的影响。我们发现某些种子会持续生成灰度图像、突出的天空区域或图像边框。种子还会影响图像构图,包括物体位置、大小和深度。此外,通过利用这些‘黄金’种子,我们展示了改进的图像生成,例如高保真推理和多样化采样。我们的研究扩展到修复任务,发现一些种子倾向于插入不需要的文本伪影。总体而言,我们的广泛分析强调了选择好种子的重要性,并为图像生成提供了实用价值。

英文摘要:

Recent advances in text-to-image (T2I) diffusion models have facilitated creative and photorealistic image synthesis. By varying the random seeds, we can generate many images for a fixed text prompt. Technically, the seed controls the initial noise and, in multi-step diffusion inference, the noise used for reparameterization at intermediate timesteps in the reverse diffusion process. However, the specific impact of the random seed on the generated images remains relatively unexplored. In this work, we conduct a large-scale scientific study into the impact of random seeds during diffusion inference. Remarkably, we reveal that the best 'golden' seed achieved an impressive FID of 21.60, compared to the worst 'inferior' seed's FID of 31.97. Additionally, a classifier can predict the seed number used to generate an image with over 99.9% accuracy in just a few epochs, establishing that seeds are highly distinguishable based on generated images. Encouraged by these findings, we examined the influence of seeds on interpretable visual dimensions. We find that certain seeds consistently produce grayscale images, prominent sky regions, or image borders. Seeds also affect image composition, including object location, size, and depth. Moreover, by leveraging these 'golden' seeds, we demonstrate improved image generation such as high-fidelity inference and diversified sampling. Our investigation extends to inpainting tasks, where we uncover some seeds that tend to insert unwanted text artifacts. Overall, our extensive analyses highlight the importance of selecting good seeds and offer practical utility for image generation.

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

↑