基于 CLIP 潜在向量的层次化文本条件图像生成

Hierarchical Text-Conditional Image Generation with CLIP Latents

普拉富拉·达里瓦尔 Prafulla Dhariwal · OpenAI · 2022-04-13 · arXiv:2204.06125 ↗ · 被引 9131

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

对比模型如 CLIP 已被证明能够学习同时捕捉语义和风格的鲁棒图像表示。为了利用这些表示进行图像生成,我们提出了一个两阶段模型:一个先验模型,根据文本描述生成 CLIP 图像嵌入;以及一个解码器,根据图像嵌入生成图像。我们表明,显式生成图像表示可以在几乎不损失逼真度和标题相似性的情况下提高图像多样性。基于图像表示的解码器还可以生成保留图像语义和风格的变体,同时改变图像表示中缺失的非必要细节。此外,CLIP 的联合嵌入空间支持零样本的语言引导图像操作。我们使用扩散模型作为解码器,并尝试了自回归和扩散模型作为先验,发现后者计算效率更高且能生成更高质量的样本。

Contrastive models like CLIP have been shown to learn robust representations of images that capture both semantics and style. To leverage these representations for image generation, we propose a two-stage model: a prior that generates a CLIP image embedding given a text caption, and a decoder that generates an image conditioned on the image embedding. We show that explicitly generating image representations improves image diversity with minimal loss in photorealism and caption similarity. Our decoders conditioned on image representations can also produce variations of an image that preserve both its semantics and style, while varying the non-essential details absent from the image representation. Moreover, the joint embedding space of CLIP enables language-guided image manipulations in a zero-shot fashion. We use diffusion models for the decoder and experiment with both autoregressive and diffusion models for the prior, finding that the latter are computationally more efficient and produce higher-quality samples.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 18)

阅读逐段中英对照全文 →