TL;DR
WeditGAN achieves state-of-the-art few-shot image generation by simply "relocating" the latent space of a pre-trained StyleGAN using a learned constant offset ($\Delta w$). By keeping the generator weights frozen and only shifting the latent distribution, the method preserves the rich diversity of the source domain while accurately capturing the style of a target domain using as few as 10 training images.
What Problem Does This Paper Address?
Generative Adversarial Networks (GANs) are notoriously data-hungry, typically requiring tens of thousands of images to produce high-fidelity, diverse results. When faced with "few-shot" scenarios—where only 5 or 10 images are available—standard training leads to severe overfitting and "mode collapse," where the model simply memorizes the few training samples.
Existing solutions usually involve transferring a model pre-trained on a large source domain (like human faces) to a small target domain (like sketches). However, fine-tuning-based methods often introduce artifacts, while regularization-based methods struggle to balance the diversity of the source with the specific characteristics of the target. WeditGAN aims to solve this by finding a middle ground: keeping the generative engine intact while shifting the "input" distribution to match the new domain.
Methods
The core innovation of WeditGAN is Latent Space Relocation. Instead of updating the millions of parameters in a StyleGAN2 generator, the authors freeze the entire network and learn a constant offset, $\Delta w$, in the extended latent space ($W+$).
Key components include:
- Constant Offset ($\Delta w$): A learned vector added to the source latent codes. Because the generator is fixed, this shift effectively "moves" the entire distribution of generated images from the source domain to the target domain.
- Perpendicular Regularization: To prevent the model from making unnecessary changes (like changing a person's gender when only a style shift to "sketches" is needed), the authors introduce a loss term that encourages $\Delta w$ to be perpendicular to the manifold of the source latent space.
- AlphaModules (Optional): For complex transfers, a single constant offset might be too rigid. AlphaModules are tiny, two-layer fully connected networks that learn to adjust the intensity of the shift based on the specific input latent code, helping handle edge cases like very young or very old faces.
- Parameter Efficiency: By only training $\Delta w$, WeditGAN updates only about 0.04% of the generator's parameters (roughly 10k vs 23M), making it extremely resistant to overfitting.
Datasets
The authors evaluated WeditGAN on several challenging source-to-target transfers, all using only 10 images for the target domain:
- FFHQ (Faces) $\rightarrow$ Sketches, Babies, Sunglasses, and artistic portraits by Amedeo Modigliani, Raphael, and Otto Dix.
- LSUN Church $\rightarrow$ Haunted houses.
- LSUN Car $\rightarrow$ Wrecked cars.
Key Insights and Ideas
- Manifold Similarity: The fundamental "aha moment" is the observation that related domains (e.g., real faces and sketches) share similar manifold shapes in the latent space. If you know how to move from one face to another in the source domain, that same "path" likely exists in the target domain.
- Diversity Inheritance: Because the mapping from source to target is one-to-one and the generator is frozen, the model perfectly inherits the diversity of the source dataset. If the source model can generate a million different faces, WeditGAN can generate a million different sketches.
- Discriminator Stability: The authors found that keeping the generator frozen actually helps the discriminator. Since the generator's output space is constrained to a shifted version of a well-trained manifold, the discriminator is less likely to overfit to the 10 target images.
Key Results
WeditGAN consistently outperformed recent state-of-the-art methods like CDC, DCL, and RICK across multiple metrics:
- Fidelity: It achieved lower FID (Fréchet Inception Distance) scores, indicating generated images were more similar to the target distribution. For example, on the FFHQ $\rightarrow$ Sketches task, WeditGAN achieved an FID of 35.41, significantly beating DCL's 57.72.
- Diversity: It maintained higher LPIPS scores, proving it doesn't suffer from the mode collapse common in other few-shot methods.
- Efficiency: Training is remarkably fast. WeditGAN reaches its best results in about 46 minutes on a single NVIDIA Titan RTX, whereas competing methods often take 2 to 5 hours.
Limitations and Future Work
- Semantic Relatedness: The method relies on the source and target domains being structurally or semantically related. Attempting to transfer from "Faces" to "Haunted Houses" using only a constant offset would likely fail because their latent manifolds do not share the same shape.
- Unified Style: WeditGAN assumes the target dataset has a unified style (e.g., all sketches by the same artist). If the target set contains multiple disparate styles, a single $\Delta w$ cannot capture them all.
- Future Directions: The authors suggest that exploring more complex, non-constant relocation methods that still preserve manifold structure could be a promising path for handling more diverse target datasets.
Summary updated