
GALIP
Diffusion and generative2,180 ops233.9M params
Text-to-image GAN with a frozen CLIP vision transformer inside both the generator and the discriminator.
Diffusion and generative · 52 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
menagerie.classics.galip_netg:build_galip_netg: build({}) This model is the generator only, in a compact build with reduced widths and resolution and randomly initialized weights; the paper's generator takes a sentence vector and a noise vector as its two inputs.
About this model's family
GALIP (Generative Adversarial CLIPs) is a text-to-image GAN that uses the pretrained CLIP model in both its generator and its discriminator. The paper sets it against large autoregressive and diffusion models, which it says require tremendous training data and parameters and synthesize slowly because of their multi-step generation design.
The discriminator pairs a frozen ViT-based CLIP image encoder with a learnable mate-discriminator (Mate-D), which works on CLIP image features collected from different layers. In the generator, a learnable mate-generator (Mate-G) first predicts bridge features from text and noise, and the frozen CLIP-ViT maps them to visual concepts. Text-conditioned prompts are added to the CLIP-ViT for task adaptation, and an image generator then fuses the sentence and noise vectors into the visual features to produce an RGB image. The CLIP model chosen in the paper is ViT-B/32.
The paper reports that GALIP needs about 3% of the training data and 6% of the learnable parameters of large pretrained autoregressive and diffusion models to reach comparable results. It counts 320M parameters in total, 0.08B trainable and 0.24B in the frozen CLIP. On COCO the paper reports an FID of 5.85, down from 8.21 for LAFITE. The authors list as a limitation that the model size and pretraining dataset are much smaller than those of other large pretrained models, which limits the synthesis of imaginary images.
Key idea. GALIP integrates a frozen CLIP-ViT into both the generator and the discriminator of a text-to-image GAN, cutting training data and learnable parameters relative to large pretrained models.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{tao2023galipgenerativeadversarialclips,
title={GALIP: Generative Adversarial CLIPs for Text-to-Image Synthesis},
author={Ming Tao and Bing-Kun Bao and Hao Tang and Changsheng Xu},
year={2023},
eprint={2301.12959},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2301.12959},
}