Introduction
Generative Adversarial Networks (GANs) have achieved remarkable success in synthesizing high-resolution, realistic images. However, training these models from scratch requires massive datasets. Domain adaptation offers a solution by "recycling" pre-trained models for new tasks. A particularly challenging frontier in this field is one-shot generative domain adaptation, where a model must adapt to a new target domain (e.g., transforming human faces into 19th-century oil paintings) using only a single reference image.
This paper introduces DiFa, a novel framework designed to address the dual challenges of faithfulness—capturing the specific textures and styles of the reference—and diversity—preserving the structural variety (poses, expressions, identities) of the original source model.
The Challenge of One-Shot Adaptation
Existing methods for one-shot adaptation often rely on Contrastive Language-Image Pre-training (CLIP) to guide the transformation. However, these methods typically face two major hurdles:
- Coarse Style Transfer: Relying on global CLIP embeddings often fails to capture local, fine-grained textures, leading to generic results.
- Mode Collapse: Forcing the generator to match a single reference image often causes the model to lose its original diversity, resulting in a "collapsed" state where every generated image looks nearly identical to the reference.
The DiFa Framework
DiFa (Diverse and Faithful) overcomes these limitations through three core technical innovations that balance global alignment with local detail and structural preservation.
1. Global-level Adaptation via Mean Embeddings
Instead of calculating the "domain gap" by comparing a single source image to the target reference, DiFa compares the target image's CLIP embedding to the mean embedding of the entire source domain. This provides a more stable and representative anchor for the domain shift, preventing the model from over-fitting to the specific features of a single source image.
2. Attentive Style (AS) Loss
To capture the nuances of artistic style—such as specific brushstrokes or fur patterns—DiFa moves beyond global vectors. It utilizes the intermediate layers (tokens) of the CLIP image encoder. Through an attentive mechanism, the model aligns patches of the generated image with the most relevant patches in the reference image. This allows for the transfer of localized textures without distorting the overall structure of the generated object.
3. Selective Cross-domain Consistency (SCC)
To maintain diversity, DiFa introduces a mechanism to identify which "channels" in the GAN's latent space ($W+$) represent domain-sharing attributes (like head pose or hair length) versus domain-specific attributes (like skin texture). By enforcing consistency only on the domain-sharing channels, the model ensures that changing the input latent code still results in varied outputs (e.g., different poses), rather than a static copy of the reference image.
Experimental Evaluation
The researchers evaluated DiFa across several high-resolution benchmarks, using source domains like FFHQ (faces), AFHQ (cats/dogs), and LSUN (cars/churches). Target domains included various artistic styles (Artstation, MetFaces, Raphael) and cross-species adaptations (Cat → Tiger).
Quantitative Results
DiFa consistently outperformed state-of-the-art methods like StyleGAN-NADA and Mind The Gap in terms of Kernel Inception Distance (KID) and Frechet Inception Distance (FID). For example, in the FFHQ → Raphael adaptation task, DiFa achieved a KID of 112.72, significantly lower than NADA’s 149.19, indicating higher image quality and better alignment with the target distribution.
Qualitative Results
Visual comparisons demonstrate that DiFa maintains distinct facial identities and poses much more effectively than its competitors. While other methods often suffer from "ghosting" artifacts or complete mode collapse when the source and target shapes differ, DiFa produces clean, diverse, and stylistically faithful images. Furthermore, the framework extends naturally to zero-shot adaptation, where the target is defined by a text prompt (e.g., "A sketch with black pencils") rather than an image.
Conclusion and Future Work
DiFa represents a significant step forward in making GAN adaptation more efficient and robust. By combining global anchors, local attentive alignment, and selective latent consistency, it achieves a superior balance between style faithfulness and structural diversity.
One remaining limitation is the "semantic gap" problem: when the source and target domains are extremely different (e.g., Churches → Tigers), the number of shared structural attributes decreases, making diversity harder to maintain. Future research will likely focus on bridging these wider semantic gaps to enable even more flexible generative modeling.
Summary updated