Skip to main content
QUICK REVIEW

[Paper Review] NoisyTwins: Class-Consistent and Diverse Image Generation through StyleGANs

Harsh Rangwani, Lavish Bansal|arXiv (Cornell University)|Apr 12, 2023
Generative Adversarial Networks and Image SynthesisComputer Science3 citations
TL;DR

NoisyTwins proposes a simple yet effective augmentation strategy for class embeddings that decorrelates latents in the StyleGAN W space, mitigating mode collapse and class confusion in long-tailed image generation. By applying self-supervised twin augmentations to class embeddings, it enables diverse, class-consistent image generation even with few samples per tail class, achieving a 19% FID improvement over SOTA on ImageNet-LT and iNaturalist 2019.

ABSTRACT

StyleGANs are at the forefront of controllable image generation as they produce a latent space that is semantically disentangled, making it suitable for image editing and manipulation. However, the performance of StyleGANs severely degrades when trained via class-conditioning on large-scale long-tailed datasets. We find that one reason for degradation is the collapse of latents for each class in the $\mathcal{W}$ latent space. With NoisyTwins, we first introduce an effective and inexpensive augmentation strategy for class embeddings, which then decorrelates the latents based on self-supervision in the $\mathcal{W}$ space. This decorrelation mitigates collapse, ensuring that our method preserves intra-class diversity with class-consistency in image generation. We show the effectiveness of our approach on large-scale real-world long-tailed datasets of ImageNet-LT and iNaturalist 2019, where our method outperforms other methods by $\sim 19\%$ on FID, establishing a new state-of-the-art.

Motivation & Objective

  • Address the degradation of StyleGANs in generating diverse, class-consistent images on large-scale, long-tailed datasets such as ImageNet-LT and iNaturalist 2019.
  • Identify and resolve the root cause of mode collapse in the W latent space, where class-conditional latents become invariant to random noise, especially for tail classes.
  • Develop a lightweight, pre-trained model-free method to preserve intra-class diversity without introducing class confusion during generation.
  • Improve generalization to few-shot and fine-grained classes by enabling effective knowledge transfer from head to tail classes through shared parameters.
  • Propose a new evaluation metric—CLIP-based intra-class FID—to better capture both mode collapse and class confusion in long-tailed GAN benchmarks.

Proposed method

  • Introduce NoisyTwins, a self-supervised augmentation strategy that generates twin augmentations of class embeddings using random noise and data augmentation, increasing the diversity of conditioning inputs.
  • Apply these augmented class embeddings during training to encourage the mapping network to produce distinct W-space latents for different random noise vectors, thereby decorrelating latents and preventing collapse.
  • Use a contrastive self-supervision objective to maximize the mutual information between W-space latents generated from twin augmented class embeddings, ensuring that latent variations correspond to meaningful image variations.
  • Integrate the NoisyTwins regularizer into standard StyleGAN2-ADA training without requiring pre-trained models or architectural changes, enabling plug-and-play deployment.
  • Leverage the shared generator weights across all classes to transfer knowledge from high-resource head classes to low-resource tail classes, improving generation quality with as few as 30 images per tail class.
  • Propose intra-class FID using CLIP features as a more sensitive metric to detect mode collapse and class confusion in long-tailed settings, replacing standard FID which fails to capture these issues.
Figure 1 : Qualitative Comparison on tail classes (T1-T4) for iNaturalist 2019. We provide sample(s) from real class (with class frequency), generated by StyleGAN2-ADA and after adding proposed NoisyTwins. NoisyTwins achieves remarkable diversity, class-consistency and quality by just using 38 sampl
Figure 1 : Qualitative Comparison on tail classes (T1-T4) for iNaturalist 2019. We provide sample(s) from real class (with class frequency), generated by StyleGAN2-ADA and after adding proposed NoisyTwins. NoisyTwins achieves remarkable diversity, class-consistency and quality by just using 38 sampl

Experimental results

Research questions

  • RQ1Why do class-conditional StyleGANs fail to generate diverse images for tail classes on long-tailed datasets like ImageNet-LT and iNaturalist 2019?
  • RQ2What causes the collapse of W-space latents in class-conditional StyleGANs, and how does it relate to the invariance of latents to random noise?
  • RQ3Can self-supervised representation learning principles be adapted to decorrelate W-space latents and restore intra-class diversity without pre-trained models?
  • RQ4How does NoisyTwins compare to existing regularization and conditioning techniques in mitigating both mode collapse and class confusion in long-tailed generation?
  • RQ5Can the proposed method generalize to few-shot and fine-grained image generation benchmarks, and does it improve training stability and convergence?

Key findings

  • NoisyTwins reduces FID by approximately 19% on ImageNet-LT and iNaturalist 2019 compared to the StyleGAN2-ADA baseline, establishing a new state-of-the-art.
  • On the iNaturalist 2019 dataset, NoisyTwins achieves a FID of 1.93 using CLIP-based intra-class FID, significantly outperforming the baseline of 2.18.
  • Even with only 30 images per tail class, NoisyTwins generates diverse, high-quality, and class-consistent samples, demonstrating effective knowledge transfer from head to tail classes.
  • The method improves FID by 5.8 points on the AnimalFaces dataset at 128×128 resolution (from 22.59 to 16.79) when applied to Transitional-cGAN, showing scalability across architectures.
  • In fine-tuning experiments on CIFAR10-LT, NoisyTwins reduces FID from 31.73 to 19.46, successfully recovering from mode collapse, while BigGAN-AM fails due to domain shift.
  • NoisyTwins converges faster than the baseline, with lower FID at intermediate training stages (e.g., 80k iterations), indicating improved training stability and optimization dynamics.
Figure 2 : Schematic illustration of $\mathcal{W}$ space for different GANs. Existing conditioning methods either suffer from mode collapse [ 20 ] or lead to class confusion [ 36 ] in $\mathcal{W}$ space. With proposed NoisyTwins, we achieve intra class diversity while avoiding class confusion.
Figure 2 : Schematic illustration of $\mathcal{W}$ space for different GANs. Existing conditioning methods either suffer from mode collapse [ 20 ] or lead to class confusion [ 36 ] in $\mathcal{W}$ space. With proposed NoisyTwins, we achieve intra class diversity while avoiding class confusion.

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.