Skip to main content
QUICK REVIEW

[Paper Review] Feature Quantization Improves GAN Training

Yang Zhao, Chunyuan Li|arXiv (Cornell University)|Apr 5, 2020
Generative Adversarial Networks and Image SynthesisComputer Science40 references14 citations
TL;DR

This paper proposes Feature Quantization (FQ) for GANs, where the discriminator uses a dynamic, moving-average dictionary of recent feature prototypes to quantize real and fake features into discrete tokens. By enabling robust, compact feature matching in a shared discrete space, FQ stabilizes training and improves generation quality, achieving state-of-the-art FID scores across multiple GAN architectures and benchmarks including StyleGAN2 (3.19 FID on FFHQ) and U-GAT-IT on image translation tasks.

ABSTRACT

The instability in GAN training has been a long-standing problem despite remarkable research efforts. We identify that instability issues stem from difficulties of performing feature matching with mini-batch statistics, due to a fragile balance between the fixed target distribution and the progressively generated distribution. In this work, we propose Feature Quantization (FQ) for the discriminator, to embed both true and fake data samples into a shared discrete space. The quantized values of FQ are constructed as an evolving dictionary, which is consistent with feature statistics of the recent distribution history. Hence, FQ implicitly enables robust feature matching in a compact space. Our method can be easily plugged into existing GAN models, with little computational overhead in training. We apply FQ to 3 representative GAN models on 9 benchmarks: BigGAN for image generation, StyleGAN for face synthesis, and U-GAT-IT for unsupervised image-to-image translation. Extensive experimental results show that the proposed FQ-GAN can improve the FID scores of baseline methods by a large margin on a variety of tasks, achieving new state-of-the-art performance.

Motivation & Objective

  • Address the instability in GAN training caused by non-stationary mini-batch statistics and fragile feature matching.
  • Overcome the limitations of relying on current mini-batch statistics for feature matching, which leads to poor generalization and training divergence.
  • Develop a method that enables stable, robust feature matching in high-dimensional, large-scale datasets without increasing computational overhead.
  • Improve training convergence and sample quality across diverse GAN architectures and tasks, including image generation, face synthesis, and image translation.

Proposed method

  • Construct a dynamic, moving-average dictionary of feature prototypes from recent training history, combining both real and fake samples.
  • Quantize continuous feature maps from the discriminator into discrete tokens from the evolving dictionary, effectively mapping features to shared discrete representations.
  • Use the quantized features as the basis for adversarial loss, enabling implicit feature matching in a compact, stable space.
  • Integrate the FQ module into existing GAN discriminators with minimal architectural changes and negligible computational cost.
  • Maintain the dictionary's consistency by updating it via exponential moving averages, ensuring alignment with the current data distribution.
  • Apply the FQ module to multiple GAN variants, including BigGAN, StyleGAN, StyleGAN2, and U-GAT-IT, with no hyperparameter tuning required.

Experimental results

Research questions

  • RQ1Can feature quantization into a shared discrete space stabilize GAN training by mitigating instability from non-stationary mini-batch statistics?
  • RQ2Does using a dynamic, moving-average dictionary of feature prototypes improve feature matching robustness in high-dimensional, large-scale datasets?
  • RQ3Can FQ be universally applied to existing GAN models to improve training stability and generation quality without architectural changes?
  • RQ4To what extent does FQ improve sample quality and convergence speed across diverse GAN tasks, including image generation, face synthesis, and image translation?
  • RQ5Does FQ achieve state-of-the-art performance on standard benchmarks such as ImageNet, FFHQ, and image translation datasets?

Key findings

  • FQ-GAN improves FID scores by a large margin across 9 benchmarks, achieving new state-of-the-art performance on all but one dataset.
  • On the FFHQ dataset, FQ-StyleGAN2 achieves a FID of 3.19, surpassing the reported 3.31 for standard StyleGAN2.
  • FQ improves U-GAT-IT on all five image translation datasets, with the best KID scores and higher human preference in perceptual studies (e.g., 78% preference on selfie2anime).
  • The FQ variant of BigGAN on ImageNet achieves a new SOTA FID score, demonstrating consistent gains across diverse architectures and tasks.
  • Qualitative results show that FQ produces sharper image regions due to consistent, semantically meaningful dictionary items (e.g., sky, grass, bird neck) being reused across images.
  • The method enables faster convergence and more stable training, as the discriminator’s feature matching becomes less sensitive to mini-batch variance.

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.