Skip to main content
QUICK REVIEW

[Paper Review] FuseDream: Training-Free Text-to-Image Generation with Improved CLIP+GAN Space Optimization

Xingchao Liu, Chengyue Gong|arXiv (Cornell University)|Dec 2, 2021
Generative Adversarial Networks and Image SynthesisComputer Science36 citations
TL;DR

FuseDream improves CLIP+GAN text-to-image generation with AugCLIP, an initialization/over-parameterization strategy, and a composed generation approach, achieving strong MS COCO metrics without training a generator.

ABSTRACT

Generating images from natural language instructions is an intriguing yet highly challenging task. We approach text-to-image generation by combining the power of the retrained CLIP representation with an off-the-shelf image generator (GANs), optimizing in the latent space of GAN to find images that achieve maximum CLIP score with the given input text. Compared to traditional methods that train generative models from text to image starting from scratch, the CLIP+GAN approach is training-free, zero shot and can be easily customized with different generators. However, optimizing CLIP score in the GAN space casts a highly challenging optimization problem and off-the-shelf optimizers such as Adam fail to yield satisfying results. In this work, we propose a FuseDream pipeline, which improves the CLIP+GAN approach with three key techniques: 1) an AugCLIP score which robustifies the CLIP objective by introducing random augmentation on image. 2) a novel initialization and over-parameterization strategy for optimization which allows us to efficiently navigate the non-convex landscape in GAN space. 3) a composed generation technique which, by leveraging a novel bi-level optimization formulation, can compose multiple images to extend the GAN space and overcome the data-bias. When promoted by different input text, FuseDream can generate high-quality images with varying objects, backgrounds, artistic styles, even novel counterfactual concepts that do not appear in the training data of the GAN we use. Quantitatively, the images generated by FuseDream yield top-level Inception score and FID score on MS COCO dataset, without additional architecture design or training. Our code is publicly available at \url{https://github.com/gnobitab/FuseDream}.

Motivation & Objective

  • Motivate training-free text-to-image generation using CLIP+GAN without training new generators.
  • Address CLIP vulnerabilities to adversarial optimization in GAN latent space.
  • Propose AugCLIP, an augmentation-robust scoring function to improve semantic alignment.
  • Introduce initialization/over-parameterization to navigate non-convex GAN latent spaces more effectively.
  • Develop a composed generation framework to create out-of-distribution images and reduce data biases.

Proposed method

  • Define AugCLIP by averaging CLIP scores over random image augmentations to resist adversarial attacks.
  • Use an over-parameterized, multi-initialization optimization where the top-k initial latent codes are combined linearly and optimized jointly.
  • Formulate a bi-level optimization for composed generation that jointly maximizes AugCLIP and minimizes perceptual loss via a dynamic barrier gradient descent.
  • Implement a two-image composition (foreground/background) with spatial placement and size scaling, followed by Poisson blending to produce a fused image.
  • Brute-force over discrete composition parameters and optimize continuous latent codes with an augmented objective.
  • Compare against baseline CLIP+GAN methods and report MS COCO metrics (IS, FID, CLIP R-prec, R-prec).

Experimental results

Research questions

  • RQ1Can AugCLIP provide robustness against CLIP-based adversarial maximization in GAN latent space?
  • RQ2Does an initialization/over-parameterization strategy improve optimization outcomes in CLIP+GAN text-to-image generation?
  • RQ3Can composed generation expand GAN space to produce coherent multi-object images and reduce data-bias artifacts?
  • RQ4How does FuseDream perform quantitatively on MS COCO compared to prior methods?
  • RQ5Is the composition framework capable of generating counterfactual or out-of-distribution images while maintaining semantic relevance?

Key findings

  • AugCLIP significantly reduces adversarially driven artifacts and yields more semantically aligned images than standard CLIP scores.
  • An initialization with top-k latent codes and over-parameterization improves optimization, aiding escape from local maxima.
  • Composed generation with bi-level optimization enables coherent fusion of foreground/background objects and reduces boundary discontinuities.
  • FuseDream achieves state-of-the-art-like Inception Score on MS COCO and competitive FID and CLIP-based metrics without training a new generator.
  • Quantitative results on MS COCO show FuseDream (k=5/256) IS=34.26, FID=21.16, CLIP R-prec=96.43, R-prec=65.56; (k=10/256) IS=34.67, FID=21.89, CLIP R-prec=98.46, R-prec=66.06; (k=5/512) IS=34.19, FID=21.52, CLIP R-prec=98.38, R-prec=63.67; (k=10/512) IS=32.88, FID=25.24, CLIP R-prec=98.44, R-prec=63.80.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.