Abstract
Training generative models, such as GANs, on a target domain containing limited examples (e.g., 10) can easily result in overfitting. In this work, we seek to utilize a large source domain for pretraining and transfer the diversity information from source to target. We propose to preserve the relative similarities and differences between instances in the source via a novel cross-domain distance consistency loss. To further reduce overfitting, we present an anchor-based strategy to encourage different levels of realism over different regions in the latent space. With extensive results in both photorealistic and non-photorealistic domains, we demonstrate qualitatively and quantitatively that our few-shot model automatically discovers correspondences between source and target domains and generates more diverse and realistic images than previous methods.
Introduction
Deep generative models like StyleGAN are notoriously data-hungry, often requiring tens of thousands of images to produce high-quality, diverse results. When researchers try to "fine-tune" these models on very small datasets—the "few-shot" regime, such as 10 portrait paintings—the model quickly overfits. The discriminator simply memorizes the few training images, and the generator collapses, producing only those exact images regardless of the input noise. The challenge addressed here is how to generate an infinite variety of new images in a target style when we only have a handful of examples to learn from.
Methods and Datasets
The proposed framework adapts a pre-trained GAN from a large source domain (e.g., Flickr-Faces-HQ or LSUN) to a target domain with minimal data by enforcing structural preservation.
Cross-domain Distance Consistency ($L_{dist}$)
The core innovation is the argument that while the appearance of images changes between domains, the relative relationships between instances should remain similar. If two latent vectors produce similar-looking faces in the source domain, they should produce similar-looking outputs in the target domain. By using a KL-divergence loss on the pairwise similarities of generated batches, the model is forced to preserve the diversity and structure of the original source manifold.
Relaxed Realism via Anchor Regions
To prevent the model from simply copying the training images, a dual-discriminator strategy is used:
- Image-level Discriminator ($D_{img}$): Applied only to "anchor" regions in the latent space that map closely to the few-shot training samples.
- Patch-level Discriminator ($D_{patch}$): Applied to the rest of the latent space. This encourages the model to capture the texture and style of the target domain without being forced to replicate the global structure of the training images.
Key Results and Insights
The method demonstrates that diversity is inherited rather than learned. By enforcing distance consistency, the model "borrows" the diversity of the source domain (e.g., different poses and expressions from FFHQ) and applies it to the target style. This leads to the automatic discovery of semantic correspondences; for example, when adapting from Cars to Caricatures, the model might map wheels to eyes to preserve relative distances efficiently.
Quantitatively, the method significantly outperforms baselines like TGAN and MineGAN in terms of Fréchet Inception Distance (FID) and diversity metrics (LPIPS). For example, on the "Babies" dataset, this method achieved an FID of 74.39, compared to TGAN's 104.79. Visual results show crisp, diverse samples that maintain the pose of the source "parent" image while perfectly adopting the target style.
Conclusion
While highly effective, the approach can face challenges with semantic mismatches between highly unrelated domains or "attribute leaking" where specific colors from the tiny training set dominate the output. Future work may explore improving domain relevance checks or extending these principles to non-image domains like 3D shape generation.
Summary updated