[Paper Review] CLIP-GEN: Language-Free Training of a Text-to-Image Generator with CLIP
CLIP-GEN trains a general text-to-image generator using unlabeled images and CLIP priors, without any paired text-image data, by learning to map CLIP image embeddings to VQGAN token sequences via a 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.
Motivation & Objective
- Motivate training a general text-to-image generator without paired text-image data.
- Leverage CLIP’s joint language-vision embedding as a prior for generation.
- Develop an image tokenizer and a conditional autoregressive transformer to map embeddings to discrete image tokens.
- Demonstrate that language-free training achieves competitive image quality and text-image alignment.
Proposed method
- Use CLIP to obtain a unified image/text embedding in a shared space.
- Train a VQ-GAN-based image tokenizer to convert images into discrete tokens.
- Train a conditional autoregressive transformer to predict image tokens from CLIP embeddings (p(s|c)).
- During training, optimize token reconstruction and an embedding-CLIP consistency loss to align decoded images with CLIP embeddings.
- Inference maps input text to CLIP text embedding and generates image tokens via the transformer, which are decoded into images.
Experimental results
Research questions
- RQ1Can a high-quality, general-domain text-to-image generator be trained without any paired text-image data?
- RQ2Does leveraging CLIP’s language-vision priors enable coherent text-to-image generation from unlabeled image collections?
- RQ3How does the proposed method compare to optimization-based and fully supervised text-to-image models in image quality and text-image relevance?
- RQ4Is a discrete-token, transformer-based approach viable for general-domain generation when trained with unlabeled data?
Key findings
- On MS-COCO, the method achieves strong FID scores (best FID-0 and FID-1) and competitive IS and CapS relative to baselines.
- On ImageNet, the approach yields favorable FID scores, indicating high image quality and coherent semantic distribution.
- Qualitatively, the method produces high-fidelity images with detailed textures and can generalize to out-of-distribution and stylized prompts.
- The model can approach the performance of CogView, a supervised transformer-based model trained on large paired datasets, while using only unlabeled images and CLIP priors.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.