Introduction
Few-shot image synthesis (FSIS) represents a significant challenge in generative modeling: the ability to generate a diverse and realistic set of images for a novel category based on only a handful of examples. While Generative Adversarial Networks (GANs) have historically dominated this field, they often suffer from instability and "mode collapse" when training data is scarce, resulting in limited diversity. Conversely, while Diffusion Models have set new benchmarks for image quality and diversity, they typically require massive datasets to learn the underlying distribution of a concept.
This paper introduces Conditional Distribution Modelling (CDM), a framework designed to bridge the gap between the high-quality generation of Latent Diffusion Models (LDMs) and the data-constrained requirements of few-shot learning. By leveraging the statistical properties of known classes and employing a novel inversion-based optimization, CDM enables the synthesis of high-fidelity, diverse images from as few as one to five samples.
The Challenge of Few-Shot Synthesis
The primary difficulty in few-shot synthesis lies in defining the distribution of a new class without sufficient data to map its variance. In standard Diffusion Models, the latent space is often unstructured, making it difficult to "interpolate" or "extrapolate" new features from a single image without overfitting. Existing GAN-based solutions often produce "doppelgangers"—images that are nearly identical to the input samples—failing to capture the broader potential variations in pose, lighting, or background.
Methodology: Conditional Distribution Modelling (CDM)
The authors propose a multi-stage pipeline that transitions from broad category knowledge to specific few-shot refinement.
1. Conditioning Space Construction
The process begins by training a ResNet-based classifier on a large set of "seen" (training) classes. The penultimate layer of this network is utilized as a conditioning latent space ($f$). This space is structured such that similar semantic concepts are clustered together, providing a foundation for distribution estimation.
2. Distribution Calibration and the "Borrowing" Heuristic
To handle "unseen" classes at test time, the model must estimate a distribution (mean and variance) from very few samples. CDM employs a "borrowing" strategy: while the mean is calculated directly from the available few-shot samples, the variance is estimated by identifying the nearest "seen" classes in the latent space and borrowing their statistical spread. This heuristic rests on the insight that similar categories (e.g., different species of birds) likely share similar levels of intra-class variation.
3. Latent Diffusion Training
A Latent Diffusion Model (LDM) is trained on the seen data, but with a critical modification: it is conditioned on samples drawn from these Gaussian distributions rather than static class labels. This teaches the model to map regions of the latent distribution space to realistic image features, rather than just memorizing specific instances.
4. Inversion-Based Optimization
To ensure the generated images remain faithful to the specific few-shot examples (fidelity), the authors implement a test-time optimization. By freezing the LDM and back-propagating denoising gradients, the model refines the mean and variance of the unseen class's distribution. This step ensures the model captures the unique nuances of the new category while retaining the generative prior of the diffusion process.
Experimental Results
The CDM framework was evaluated on four diverse benchmarks: Flowers (102 categories), Animal Faces (149 categories), VGGFace (2,299 categories), and NABirds (555 categories).
Fidelity and Diversity
CDM demonstrated superior performance in balancing image quality and variety. On the Animal Faces 3-shot benchmark, CDM achieved a state-of-the-art Fréchet Inception Distance (FID) of 40.04. More importantly, the model consistently outperformed GAN-based baselines in Learned Perceptual Image Patch Similarity (LPIPS), a metric for diversity. Qualitatively, CDM generates images with varied poses and backgrounds, avoiding the "carbon copy" effect seen in methods like DeltaGAN.
Downstream Utility
To validate the semantic integrity of the generated images, the authors used synthetic data from CDM to train few-shot classifiers. On the Flowers 5-shot task, the classifier achieved 78.99% accuracy, demonstrating that the synthetic images successfully capture the essential characteristics required for recognition tasks.
Conclusion and Future Work
Conditional Distribution Modelling (CDM) successfully adapts the power of Diffusion Models to the few-shot regime. By modeling class distributions rather than individual points, it achieves a level of diversity that previous GAN-based methods struggled to reach.
However, limitations remain. As a diffusion-based method, CDM is computationally more expensive during inference than GANs due to the iterative denoising process. Additionally, while the primary objects are rendered with high fidelity, background generation in complex datasets like Flowers remains an area for improvement. Future research will likely focus on accelerating the sampling process and refining the cross-class statistical borrowing mechanisms.
Summary updated