NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Few-shot Image Generation via Cross-domain Correspondence

Utkarsh Ojha, Yijun Li, Jingwan Lu, Alexei A. Efros, Yong Jae Lee, Eli Shechtman, Richard Zhang

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.

The Challenge of Few-Shot Generation

State-of-the-art generative models like GANs are notoriously data-hungry, typically requiring thousands of images to produce high-quality, diverse results. When researchers attempt to "fine-tune" these models on very small datasets—such as 10 portrait paintings by a specific artist—the models suffer from extreme overfitting.

In this context, overfitting manifests as "mode collapse": the generator simply memorizes the few training images and loses the ability to generate novel content. The challenge is to perform transfer learning that adapts the appearance of images to the target domain while preserving the diversity and semantic richness of the original source domain.

Methods

We propose two primary innovations to bridge the gap between a large source domain ($G_s$) and a tiny target domain ($G_{s \to t}$):

  1. Cross-domain Distance Consistency ($L_{dist}$): This is the core contribution of the paper. Instead of just optimizing for realism, we force the model to maintain the relative relationships between images. If two latent vectors $z_1$ and $z_2$ produce two similar-looking faces in the source domain (e.g., FFHQ), the model is penalized if they do not produce similarly related images in the target domain (e.g., sketches). This is implemented using KL-divergence on the pairwise cosine similarities of feature activations across network layers.
  2. Relaxed Realism (Anchor-based Strategy): To prevent the discriminator from forcing the generator to strictly memorize the training images, we use a two-tiered approach. We define "anchor" regions in the latent space near the training samples where a full-image discriminator ($D_{img}$) is used. For all other regions, we use a patch-level discriminator ($D_{patch}$). This encourages the model to capture the texture and style of the target domain globally without being forced to replicate exact global structures everywhere.

Key Insights: Inheriting Diversity

A central finding of this work is that diversity is inherited, not learned. Because the target domain is too small to teach the model about diversity, the model "borrows" it from the source domain via distance consistency.

Few-shot generation of baby faces, inheriting the diversity and poses of the source adult face domain.

This leads to emergent semantic correspondence, where the model automatically discovers mappings between unrelated domains. For example, when adapting from "Cars" to "Caricatures," the model might map car wheels to eyes or bumpers to mouths. This happens because the model finds a mathematically consistent way to rearrange source features into the target style while maintaining relative distances.

Key Results

Our method significantly outperforms baselines like TGAN, FreezeD, and EWC across various domains:

  • Quantitative Performance: In the "Babies" domain, our method achieved a Fréchet Inception Distance (FID) of 74.39, compared to TGAN’s 104.79 (lower is better).
  • Diversity: Using LPIPS (a metric for image uniqueness), we demonstrated that our model maintains much higher intra-cluster diversity. While baselines often generated near-identical images for different noise vectors, our method produced distinct identities and features.
  • Artistic Adaptation: The framework successfully adapts to non-photorealistic domains, such as the unique elongated styles of Amedeo Modigliani.
Successful adaptation to the unique artistic style of Amedeo Modigliani paintings using only 10 examples.

Limitations and Future Work

While the results are impressive, some limitations remain. Correspondence mismatches can occur; for instance, adapting to "Sunglasses" might cause a blonde person's hair to turn dark if the model finds a closer distance match in the target data that happens to have dark hair. Additionally, color shifts can occur if the limited training set lacks specific colors present in the source. Future work may involve explicitly guiding these correspondences or developing more data-efficient ways to discover them to further improve realism in unrelated domains.

Summary updated

BibTeX
@inproceedings{ojha2021few,
  author = {Utkarsh Ojha and Yijun Li and Jingwan Lu and Alexei A. Efros and Yong Jae Lee and Eli Shechtman and Richard Zhang},
  title = {{Few-shot Image Generation via Cross-domain Correspondence}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=XVIsahLG0r-},
}
Figure