All models

GALIP

Text-to-image GAN with a frozen CLIP vision transformer inside both the generator and the discriminator.

Diffusion and generative · 2,180 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

This diagram has 2,180 operations (17 KB) and is drawn when you ask.

Open in a new tab

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.

At a glance

Family
GALIP
Parameters
233.9M
Operations
2,180
Framework
PyTorch
Recurrent
No
Published
CVPR 2023
Cited by
178 (as of 3 November 2026)
Authors
Ming Tao, Bing‐Kun Bao, Hao Tang, Changsheng Xu
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m16796
Graph hash
a04a01cec092979693bbde1d9eac951148aeb2d5752e449ef8ec7b7c516030a7
Skeleton hash
db82a300ffa6060c1caeb2bcdff51a68acedbb2bd37e6bc84e79e892abaa4fc9
Architecture hash
1311dc2c336b3481c5105d3dc5cdfbd5ca58e19ea32aeeb4ef612e83e5532de7
Diagram SHA-256
ed3ba72dcc992dde6eb357334b7f6372a9684badb7f869d753c8803d030e0f66
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

This model runs GALIP's CLIP-empowered generator and CLIP-based discriminator together, starting from a tokenized caption and a noise vector and ending in the discriminator's adversarial prediction.

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.

  • GALIP
  • Generative Adversarial CLIPs
  • text-to-image
  • text-to-image GAN
  • CLIP-based discriminator
  • CLIP-empowered generator
  • Mate-G
  • Mate-D
  • galip_netg

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}, 
}