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

面向文本到图像扩散模型的判别式类别 Token

Discriminative Class Tokens for Text-to-Image Diffusion Models

Tel Aviv University(特拉维夫大学);University of Copenhagen(哥本哈根大学);ETH Zürich(苏黎世联邦理工学院)

Idan Schwartz, Vésteinn Snæbjarnarson, Hila Chefer, Ryan Cotterell, Serge Belongie, Lior Wolf, Sagie Benaim

AI总结:

本文提出一种非侵入式微调方法,通过预训练分类器的判别信号迭代优化新增类别 token 嵌入,在保留自由文本控制的同时提升文本到图像扩散模型的生成准确性、质量与低资源数据增强能力。

摘要:

文本到图像扩散模型的最新进展已经能够生成多样化且高质量的图像。尽管成果令人印象深刻,但这些图像往往难以描绘细微细节,并且容易因输入文本中的歧义而产生错误。缓解这些问题的一种方法是在带有类别标签的数据集上训练扩散模型。然而,这种方法有两个缺点:(i)与文本到图像模型所训练的大规模抓取文本-图像数据集相比,有监督数据集通常较小,这会影响生成图像的质量和多样性;或者(ii)输入是硬编码标签,而非自由形式文本,这限制了对生成图像的控制能力。在本研究中,我们提出了一种非侵入式微调技术,该技术利用自由形式文本的表达潜力,同时通过来自预训练分类器的判别信号实现高准确率。具体而言,我们根据分类器将生成图像引导至给定目标类别,从而迭代地修改文本到图像扩散模型中一个新增输入 token 的嵌入。与以往的微调方法相比,我们的方法速度更快,并且不需要收集同类图像,也不需要重新训练一个噪声鲁棒分类器。我们对该方法进行了广泛评估,结果表明生成图像:(i)比标准扩散模型更准确且质量更高;(ii)可用于在低资源场景下增强训练数据;以及(iii)能够揭示用于训练引导分类器的数据的相关信息。代码可在 https://github.com/idansc/discriminative_class_tokens 获取。

英文摘要:

Recent advances in text-to-image diffusion models have enabled the generation of diverse and high-quality images. While impressive, the images often fall short of depicting subtle details and are susceptible to errors due to ambiguity in the input text. One way of alleviating these issues is to train diffusion models on class-labeled datasets. This approach has two disadvantages: (i) supervised datasets are generally small compared to large-scale scraped text-image datasets on which text-to-image models are trained, affecting the quality and diversity of the generated images, or (ii) the input is a hard-coded label, as opposed to free-form text, limiting the control over the generated images. In this work, we propose a non-invasive fine-tuning technique that capitalizes on the expressive potential of free-form text while achieving high accuracy through discriminative signals from a pretrained classifier. This is done by iteratively modifying the embedding of an added input token of a text-to-image diffusion model, by steering generated images toward a given target class according to a classifier. Our method is fast compared to prior fine-tuning methods and does not require a collection of in-class images or retraining of a noise-tolerant classifier. We evaluate our method extensively, showing that the generated images are: (i) more accurate and of higher quality than standard diffusion models, (ii) can be used to augment training data in a low-resource setting, and (iii) reveal information about the data used to train the guiding classifier. The code is available at \url{https://github.com/idansc/discriminative_class_tokens}.

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

↑