Abstract
One-shot domain adaptation for Generative Adversarial Networks (GANs) aims to transfer a pre-trained generator to a new target domain using only a single reference image. Existing methods often struggle with overfitting, where the generator loses the diversity of the source domain and collapses toward the single reference. We present a novel framework that precisely models the "domain gap" by identifying a specific "analog" image in the source domain that matches the target reference. By employing novel CLIP-based regularizers, our method ensures that the adapted generator preserves the identity and semantic structure of the source images while successfully adopting the target style.
Introduction
Generative Adversarial Networks, particularly architectures like StyleGAN2, have achieved remarkable success in high-fidelity image synthesis. However, training these models typically requires thousands of images. Domain adaptation techniques attempt to leverage pre-trained models to learn new styles with less data. The most extreme case, one-shot adaptation, uses only a single target image.
Previous state-of-the-art approaches, such as StyleGAN-NADA, frequently encounter "mode collapse." In these scenarios, the GAN becomes overly specialized to the single reference image, causing all generated outputs to look identical to the reference, thereby losing the rich identity and attribute diversity of the original source domain (e.g., real faces).
Methods
Our approach builds upon StyleGAN2, the CLIP (Contrastive Language-Image Pre-training) embedding space, and the II2S inversion method. The core innovation is the precise definition and control of the domain gap.
Modeling the Domain Gap
Instead of calculating a shift from a generic source average, we find a specific analog image ($I_A$) in the source domain that corresponds to the target reference image ($I_B$) using II2S inversion. The domain shift is then defined as the vector between these two specific images in CLIP’s embedding space.
Novel Regularization
To maintain the integrity of the latent space, we introduce three key loss functions:
- $L_{clip\_across}$: Forces the shift from Domain A to Domain B to be parallel to the calculated gap vector.
- $L_{clip\_within}$: Ensures that semantic variations (e.g., changes in pose or expression) in the source domain are mirrored exactly in the target domain, preserving the "logic" of the latent space.
- $L_{ref\_rec}$: A combination of LPIPS and L2 losses that ensures the generator can perfectly reconstruct the reference image.
Finally, we utilize style mixing in the $W+$ latent space, allowing for fine-grained control over how much of the new style is applied to the original image structure.
Results
The proposed method significantly outperforms baseline approaches in both visual quality and identity preservation.
Visual Quality and User Preference
Qualitative evaluations demonstrate a substantial reduction in artifacts compared to StyleGAN-NADA. In user studies, participants preferred our method 73% to 77% of the time for overall visual quality. Furthermore, over 80% of users found our method superior at maintaining the identity of the source subjects.
Downstream Editing Compatibility
A key advantage of our approach is that it preserves the semantic structure of the original latent space. Consequently, existing latent-based editing tools remain functional in the new domain. For instance, a "pose" slider trained on real faces can be used to rotate the head of a generated sketch or painting.
Conclusion
We have introduced a robust method for one-shot GAN domain adaptation that mitigates overfitting by precisely modeling the domain gap. While highly effective for related domains (e.g., faces to artistic portraits), the method is limited by the proximity of the source and target domains and the quality of the initial inversion. Future work will explore more explicit semantic control to selectively transfer specific attributes.
Summary updated