Skip to main content
QUICK 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 Science被引用 3
一句话总结

NoisyTwins 提出了一种简单但有效的类别嵌入增强策略,通过在 StyleGAN 的 W 空间中解耦潜在变量,缓解了长尾图像生成中的模式崩溃和类别混淆问题。通过在类别嵌入上应用自监督孪生增强,即使每个尾部类别的样本极少,也能实现多样化且类别一致的图像生成,在 ImageNet-LT 和 iNaturalist 2019 上相比 SOTA 方法实现了 19% 的 FID 改进。

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.

研究动机与目标

  • 解决 StyleGAN 在大规模长尾数据集(如 ImageNet-LT 和 iNaturalist 2019)上生成多样化、类别一致图像时的性能退化问题。
  • 识别并解决类条件潜在变量在 W 空间中发生模式崩溃的根本原因,即类条件潜在变量对随机噪声变得不变,尤其在尾部类别中更为显著。
  • 开发一种轻量级、无需预训练模型的无架构依赖方法,以在不引入类别混淆的前提下保持类内多样性。
  • 通过共享参数实现从头部类别到尾部类别的有效知识迁移,提升少样本和细粒度类别的泛化能力。
  • 提出一种新的评估指标——基于 CLIP 的类内 FID,以更准确地捕捉长尾 GAN 基准中的模式崩溃与类别混淆问题。

提出的方法

  • 提出 NoisyTwins,一种自监督增强策略,通过随机噪声和数据增强生成类别嵌入的孪生增强,提升条件输入的多样性。
  • 在训练过程中应用这些增强后的类别嵌入,以促使映射网络为不同的随机噪声向量生成不同的 W 空间潜在变量,从而实现潜在变量的解耦,防止崩溃。
  • 采用对比自监督目标,最大化由孪生增强类别嵌入生成的 W 空间潜在变量之间的互信息,确保潜在变量的变化对应于有意义的图像变化。
  • 将 NoisyTwins 正则化器无缝集成到标准的 StyleGAN2-ADA 训练流程中,无需预训练模型或网络架构修改,实现即插即用的部署。
  • 利用所有类别共享的生成器权重,将高资源头部类别的知识有效迁移至低资源尾部类别,即使每类仅 30 张图像,也能生成高质量、多样化且类别一致的样本。
  • 提出基于 CLIP 特征的类内 FID 作为更敏感的评估指标,以检测长尾设置下的模式崩溃与类别混淆,替代标准 FID(后者无法捕捉此类问题)。
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

实验结果

研究问题

  • RQ1为何类条件 StyleGAN 在 ImageNet-LT 和 iNaturalist 2019 等长尾数据集上对尾部类别无法生成多样化图像?
  • RQ2类条件 StyleGAN 中 W 空间潜在变量崩溃的根本原因是什么?其与潜在变量对随机噪声的不变性有何关联?
  • RQ3能否将自监督表示学习的原理适配到 W 空间潜在变量的解耦中,以在无需预训练模型的前提下恢复类内多样性?
  • RQ4与现有正则化和条件机制相比,NoisyTwins 在缓解长尾生成中的模式崩溃与类别混淆方面表现如何?
  • RQ5所提方法是否能泛化至少样本和细粒度图像生成基准?是否提升训练稳定性和收敛性?

主要发现

  • 与 StyleGAN2-ADA 基线相比,NoisyTwins 在 ImageNet-LT 和 iNaturalist 2019 上将 FID 降低了约 19%,创下新的 SOTA 记录。
  • 在 iNaturalist 2019 数据集上,NoisyTwins 使用基于 CLIP 的类内 FID 时,FID 达到 1.93,显著优于基线的 2.18。
  • 即使每类仅提供 30 张图像,NoisyTwins 仍能生成多样化、高质量且类别一致的样本,证明了从头部类别到尾部类别的有效知识迁移。
  • 在 128×128 分辨率下,将该方法应用于 Transitional-cGAN 时,AnimalFaces 数据集的 FID 从 22.59 降低至 16.79,改善了 5.8 个点,表明其在不同架构间的可扩展性。
  • 在 CIFAR10-LT 的微调实验中,NoisyTwins 将 FID 从 31.73 降低至 19.46,成功恢复了模式崩溃,而 BigGAN-AM 因领域偏移而失败。
  • NoisyTwins 的收敛速度优于基线,在中间训练阶段(如 80k 次迭代)即表现出更低的 FID,表明其训练稳定性与优化动力学得到显著改善。
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.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。