Skip to main content
QUICK REVIEW

[Paper Review] Towards Diverse and Faithful One-shot Adaption of Generative Adversarial Networks

Yabo Zhang, Mingshuai Yao|arXiv (Cornell University)|Jul 18, 2022
Domain Adaptation and Few-Shot LearningComputer Science11 citations
TL;DR

This paper proposes DiFa, a novel one-shot generative domain adaptation method that enables a pre-trained GAN to generate diverse, high-quality images in a new domain using only one reference image. By combining CLIP-based global style guidance, attentive style loss for local detail alignment, and selective cross-domain consistency in the W+ latent space, DiFa achieves state-of-the-art performance in both diversity and fidelity, especially under large domain gaps.

ABSTRACT

One-shot generative domain adaption aims to transfer a pre-trained generator on one domain to a new domain using one reference image only. However, it remains very challenging for the adapted generator (i) to generate diverse images inherited from the pre-trained generator while (ii) faithfully acquiring the domain-specific attributes and styles of the reference image. In this paper, we present a novel one-shot generative domain adaption method, i.e., DiFa, for diverse generation and faithful adaptation. For global-level adaptation, we leverage the difference between the CLIP embedding of reference image and the mean embedding of source images to constrain the target generator. For local-level adaptation, we introduce an attentive style loss which aligns each intermediate token of adapted image with its corresponding token of the reference image. To facilitate diverse generation, selective cross-domain consistency is introduced to select and retain the domain-sharing attributes in the editing latent $\mathcal{W}+$ space to inherit the diversity of pre-trained generator. Extensive experiments show that our method outperforms the state-of-the-arts both quantitatively and qualitatively, especially for the cases of large domain gaps. Moreover, our DiFa can easily be extended to zero-shot generative domain adaption with appealing results. Code is available at https://github.com/1170300521/DiFa.

Motivation & Objective

  • Address the challenge of generating diverse and faithful images when adapting a pre-trained GAN to a new domain with only one reference image.
  • Overcome limitations in existing CLIP-based methods that fail to preserve local-style details and introduce unwanted domain-sharing attribute shifts.
  • Maintain the diversity of the pre-trained generator while faithfully acquiring domain-specific attributes and styles from the reference image.
  • Enable effective zero-shot domain adaptation by extending the method to text-described target domains without reference images.

Proposed method

  • Leverage the difference between the CLIP embedding of the reference image and the mean CLIP embedding of source domain images to guide global-level domain adaptation.
  • Introduce an attentive style (AS) loss that aligns intermediate tokens from the adapted image with their nearest corresponding tokens in the reference image at the CLIP image encoder's intermediate layer.
  • Apply selective cross-domain consistency (SCC) in the W+ latent space to identify and retain domain-sharing attributes during image generation, preserving diversity from the pre-trained generator.
  • Use styleGAN inversion models to map source and target domain images into the W+ space, enabling computation of domain-sharing attribute directions.
  • Modify the training objective to encourage similarity between adapted and source images in domain-sharing attributes while allowing variation in domain-specific attributes.
  • Extend the framework to zero-shot GDA by removing the AS loss and using text prompts as the target domain description in CLIP space.

Experimental results

Research questions

  • RQ1How can one achieve both high diversity and faithful style transfer in one-shot GAN adaptation using only a single reference image?
  • RQ2To what extent can CLIP-based global guidance and attention-based local style alignment jointly improve adaptation fidelity?
  • RQ3Can selective retention of domain-sharing attributes in the W+ space preserve the diversity of the pre-trained generator without compromising domain adaptation quality?
  • RQ4How effective is the proposed method in zero-shot settings where no reference image is available, but only a text description of the target domain?
  • RQ5Does the method generalize well under large domain gaps, such as from human faces to animal sculptures?

Key findings

  • DiFa outperforms state-of-the-art methods in both quantitative metrics (e.g., FID, FID-100) and qualitative evaluation, especially on large domain gaps like Cat → Tiger.
  • The attentive style loss significantly improves local attribute fidelity, enabling faithful capture of fine-grained details such as hair color and texture from the reference image.
  • Selective cross-domain consistency successfully preserves the diversity of the pre-trained generator by selectively retaining domain-sharing attributes in the W+ space.
  • The adapted generator maintains strong latent space editing capabilities, as demonstrated by successful transfer of editing directions (e.g., age, gender) from the source domain to the target domain.
  • The method generalizes effectively to zero-shot GDA, producing more consistent and diverse results than StyleGAN-NADA when adapting from FFHQ to text-described domains like 'a sketch with black pencils'.
  • Ablation studies confirm that both the AS loss and SCC loss are essential for achieving high performance, with ablation of either component leading to significant drops in FID and visual quality.

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.