Skip to main content
QUICK REVIEW

[Paper Review] Improving GAN Training via Feature Space Shrinkage

Haozhe Liu, Wentian Zhang|arXiv (Cornell University)|Mar 2, 2023
Generative Adversarial Networks and Image SynthesisComputer Science5 citations
TL;DR

This paper proposes AdaptiveMix, a simple yet effective module that improves GAN training by shrinking the feature space of real images in the discriminator's representation space. By constructing hard samples through image mixing and reducing their distance to easy samples, AdaptiveMix stabilizes training and boosts generated image quality, achieving state-of-the-art results on multiple GAN architectures and generalizing to image classification and OOD detection.

ABSTRACT

Due to the outstanding capability for data generation, Generative Adversarial Networks (GANs) have attracted considerable attention in unsupervised learning. However, training GANs is difficult, since the training distribution is dynamic for the discriminator, leading to unstable image representation. In this paper, we address the problem of training GANs from a novel perspective, \emph{i.e.,} robust image classification. Motivated by studies on robust image representation, we propose a simple yet effective module, namely AdaptiveMix, for GANs, which shrinks the regions of training data in the image representation space of the discriminator. Considering it is intractable to directly bound feature space, we propose to construct hard samples and narrow down the feature distance between hard and easy samples. The hard samples are constructed by mixing a pair of training images. We evaluate the effectiveness of our AdaptiveMix with widely-used and state-of-the-art GAN architectures. The evaluation results demonstrate that our AdaptiveMix can facilitate the training of GANs and effectively improve the image quality of generated samples. We also show that our AdaptiveMix can be further applied to image classification and Out-Of-Distribution (OOD) detection tasks, by equipping it with state-of-the-art methods. Extensive experiments on seven publicly available datasets show that our method effectively boosts the performance of baselines. The code is publicly available at https://github.com/WentianZhang-ML/AdaptiveMix.

Motivation & Objective

  • To address the instability in GAN training caused by dynamic and scattered feature representations in the discriminator's latent space.
  • To improve GAN training by explicitly shrinking the regions occupied by real training data in the feature space of the discriminator.
  • To explore whether controlling feature space compactness through sample mixing can enhance training stability and generative quality.
  • To demonstrate that the proposed method generalizes beyond GANs to tasks like robust image classification and Out-of-Distribution (OOD) detection.
  • To provide a plug-and-play module that enhances baseline models without architectural changes or high computational cost.

Proposed method

  • AdaptiveMix constructs hard samples by linearly mixing pairs of real training images using a beta-distributed mixing coefficient.
  • The method minimizes the L2 distance between the feature representations of the mixed samples and their corresponding real images in the discriminator's feature space.
  • This distance minimization effectively shrinks the feature space occupied by real data, promoting compact and robust representations.
  • The module is differentiable and can be seamlessly integrated into existing GAN frameworks as a plug-in component.
  • The approach implicitly approximates Lipschitz continuity by constraining feature space expansion, enhancing discriminator robustness.
  • AdaptiveMix is applied during training with a learnable noise term and a beta distribution parameter α to control mixing intensity.

Experimental results

Research questions

  • RQ1Can shrinking the feature space of real images in the discriminator’s representation space improve GAN training stability and image quality?
  • RQ2Does constructing hard samples via image mixing and reducing their distance to real samples lead to more compact and robust feature representations?
  • RQ3Can AdaptiveMix be generalized beyond GANs to improve performance in image classification and OOD detection tasks?
  • RQ4How does AdaptiveMix compare to existing data augmentation and regularization techniques in terms of performance and efficiency?
  • RQ5What hyperparameter settings (e.g., σ for noise, α for beta distribution) yield optimal performance across different datasets and models?

Key findings

  • AdaptiveMix improves FID scores by up to 17.38% on CIFAR-100 compared to baseline Manifold Mixup, with a 7% absolute improvement.
  • On Tiny-ImageNet, AdaptiveMix achieves a 3% absolute accuracy gain (60.59% vs. 57.23%) over the baseline on clean image recognition.
  • In OOD detection, AdaptiveMix boosts the F1 score of '1DS w/o MC' from 0.890 to 0.922 on TIN-C, matching the performance of MC-sampling methods without the computational cost.
  • The optimal hyperparameters are σ = 0.05 for noise and α = 1.0 for the beta distribution, which yield the best performance across all evaluated tasks.
  • AdaptiveMix consistently improves state-of-the-art models across seven public datasets, including CIFAR-10, CIFAR-100, Tiny-ImageNet, and ImageNet, across image generation, classification, and OOD detection.
  • The method enhances both robustness and generalization, as evidenced by improved performance on corrupted and out-of-distribution data.

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.