Skip to main content
QUICK REVIEW

[Paper Review] StyleGAN-T: Unlocking the Power of GANs for Fast Large-Scale Text-to-Image Synthesis

Axel Sauer, Tero Karras|arXiv (Cornell University)|Jan 23, 2023
Generative Adversarial Networks and Image SynthesisComputer Science61 citations
TL;DR

StyleGAN-T adapts StyleGAN-XL to large-scale text-to-image generation, achieving fast single-pass inference (about 0.1s per image) with strong text alignment and competitive quality at low resolutions, while trailblazing GAN-based performance against diffusion models in this regime.

ABSTRACT

Text-to-image synthesis has recently seen significant progress thanks to large pretrained language models, large-scale training data, and the introduction of scalable model families such as diffusion and autoregressive models. However, the best-performing models require iterative evaluation to generate a single sample. In contrast, generative adversarial networks (GANs) only need a single forward pass. They are thus much faster, but they currently remain far behind the state-of-the-art in large-scale text-to-image synthesis. This paper aims to identify the necessary steps to regain competitiveness. Our proposed model, StyleGAN-T, addresses the specific requirements of large-scale text-to-image synthesis, such as large capacity, stable training on diverse datasets, strong text alignment, and controllable variation vs. text alignment tradeoff. StyleGAN-T significantly improves over previous GANs and outperforms distilled diffusion models - the previous state-of-the-art in fast text-to-image synthesis - in terms of sample quality and speed.

Motivation & Objective

  • Motivate the need for fast, scalable text-to-image synthesis on very large datasets.
  • Increase GANs’ competitiveness by redesigning generator and discriminator for text-conditioned synthesis.
  • Improve text alignment while maintaining diverse image outputs under a fixed compute budget.
  • Enable controllable variation versus text conditioning and practical latent-space manipulation.

Proposed method

  • Base architecture inspired by StyleGAN-XL with a non-equivariant StyleGAN2-style generator backbone.
  • Enhance generator capacity using residual blocks with GroupNorm and Layer Scale to stabilize training.
  • Amplify text conditioning by bypassing the mapping network and using a 2nd-order style interaction s = s1 ⊗ s2 + s3.
  • Redesign discriminator using a ViT-S backbone with five parallel heads and differentiable augmentations.
  • Incorporate CLIP-based guidance in training to align images with text prompts (L_CLIP) with careful weighting.
  • Implement truncation in w = [f(z), c_text] by progressively moving toward per-prompt mean w̄ during inference, and employ a two-phase text-encoder strategy to further improve text alignment.

Experimental results

Research questions

  • RQ1Can GANs be made competitive with diffusion models for large-scale text-to-image synthesis on practical budgets?
  • RQ2What generator/discriminator design choices yield strong text alignment and controllable variation in GAN-based T2I?
  • RQ3How do CLIP-guided losses and truncation affect image fidelity and text alignment in GANs?
  • RQ4What is the impact of training phase strategies (text encoder training vs. generator training) on CLIP alignment and FID?

Key findings

  • StyleGAN-T achieves substantially better zero-shot MS COCO FID at 64x64 and halves the FID achieved by prior GAN-based methods at 256x256, while delivering high-speed inference.
  • The redesigned generator and discriminator improve FID and CLIP scores by roughly 10% over StyleGAN-XL baselines in lightweight settings.
  • A five-head discriminator with a DINO/Large ViT-S feature backbone, along with differentiable augmentations, yields ~40% extra gains in FID and CLIP performance over the prior discriminator design.
  • CLIP guidance improves text alignment by ~20% in FID/CLIP metrics, with truncation further boosting text alignment, though excessive guidance can hurt fidelity.
  • Training with a two-phase text encoder strategy allows very high CLIP guidance weights without artifacts, significantly enhancing text alignment without hurting FID.
  • At large scales, StyleGAN-T reaches around 1B parameters, trained on 250M image-text pairs within a four-week budget on 64 A100 GPUs; it achieves 0.1s per image inference on suitable hardware.

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.