[论文解读] CLIP-GEN: Language-Free Training of a Text-to-Image Generator with CLIP
CLIP-GEN 通过使用未标注的图像和 CLIP 先验来训练一个通用的文本到图像生成器,在没有任何成对文本-图像数据的情况下,通过学习将 CLIP 图像嵌入映射到 VQGAN 令牌序列,使用一个 transformer。
Training a text-to-image generator in the general domain (e.g., Dall.e, CogView) requires huge amounts of paired text-image data, which is too expensive to collect. In this paper, we propose a self-supervised scheme named as CLIP-GEN for general text-to-image generation with the language-image priors extracted with a pre-trained CLIP model. In our approach, we only require a set of unlabeled images in the general domain to train a text-to-image generator. Specifically, given an image without text labels, we first extract the embedding of the image in the united language-vision embedding space with the image encoder of CLIP. Next, we convert the image into a sequence of discrete tokens in the VQGAN codebook space (the VQGAN model can be trained with the unlabeled image dataset in hand). Finally, we train an autoregressive transformer that maps the image tokens from its unified language-vision representation. Once trained, the transformer can generate coherent image tokens based on the text embedding extracted from the text encoder of CLIP upon an input text. Such a strategy enables us to train a strong and general text-to-image generator with large text-free image dataset such as ImageNet. Qualitative and quantitative evaluations verify that our method significantly outperforms optimization-based text-to-image methods in terms of image quality while not compromising the text-image matching. Our method can even achieve comparable performance as flagship supervised models like CogView.
研究动机与目标
- 激励在没有成对文本-图像数据的情况下训练一个通用的文本到图像生成器。
- 将 CLIP 的语言与视觉联合嵌入作为生成的先验。
- 开发一个图像分词器和一个条件自回归 transformer,将嵌入映射到离散的图像令牌。
- 证明语言无关的训练在图像质量和文本-图像对齐方面达到具有竞争力的效果。
提出的方法
- 使用 CLIP 在一个共享空间中获得统一的图像/文本嵌入。
- 训练基于 VQ-GAN 的图像分词器,将图像转换为离散令牌。
- 训练一个条件自回归 transformer,从 CLIP 嵌入 (p(s|c)) 预测图像令牌。
- 在训练过程中,优化令牌重建和嵌入-CLIP 一致性损失,以使解码后的图像与 CLIP 嵌入对齐。
- 推理阶段将输入文本映射到 CLIP 文本嵌入,通过 transformer 生成图像令牌,然后解码为图像。
实验结果
研究问题
- RQ1是否可以在没有任何成对文本-图像数据的情况下训练出高质量的通用领域文本到图像生成器?
- RQ2利用 CLIP 的语言-视觉先验是否能从未标注的图像集合中实现连贯的文本到图像生成?
- RQ3所提出的方法在图像质量和文本-图像相关性方面,与基于优化的方法和全监督的文本到图像模型相比有何差异?
- RQ4在使用未标注数据训练时,离散令牌、基于 transformer 的方法是否适用于通用领域的生成?
主要发现
- 在 MS-COCO 上,该方法实现了较强的 FID 值(最佳 FID-0 和 FID-1)以及相对于基线的有竞争力的 IS 和 CapS。
- 在 ImageNet 上,该方法得到有利的 FID 分数,表明图像质量高且语义分布连贯。
- 定性地看,该方法生成具有高保真度的图像,具有细致纹理,并且能够推广到分布外和风格化的提示。
- 该模型在使用仅未标记图像和 CLIP 先验的情况下,接近 CogView 的性能,CogView 是一个在大型成对数据集上训练的监督 transformer 模型。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。