Exact Fusion via Feature Distribution Matching for Few-Shot Image Generation

Yingbo Zhou, Yutong Ye, Pengyu Zhang, Xian Wei, Mingsong Chen

Few-shot image generation aims to synthesize high-quality, diverse images of a specific category given only a handful of training samples. This task is notoriously difficult due to the "quality-diversity trade-off," where models often struggle to maintain visual consistency without sacrificing variety. Traditional fusion-based methods attempt to combine features from different input images using attention or similarity measurements. However, these point-to-point matching techniques are often noisy and error-prone when data is scarce, leading to visual artifacts like distorted textures and "melted" structures.

The F2DGAN Framework

To address these limitations, the authors propose F2DGAN (Exact Fusion via Feature Distribution matching Generative Adversarial Network). The core insight is that instead of matching individual feature points, the model should capture the global distribution of features within a category. By understanding what makes a category (e.g., a specific flower) look like itself across different instances, the model can generate more reliable and diverse samples.

Methodology

F2DGAN introduces two primary components to achieve stable feature fusion:

  1. Feature Distribution Matching Module (FDMM): Rather than calculating similarity scores, this module employs Empirical Cumulative Distribution Functions (eCDF) and a sort-matching algorithm. This process, essentially "Exact Histogram Matching" applied to deep feature maps, ensures that the statistical properties (mean, variance, and higher-order moments) of the fused features align perfectly with the target category.
  2. Variational Feature Learning Module (VFLM): Utilizing a Variational Autoencoder (VAE) architecture, the VFLM transforms deep image features into a latent distribution. Sampling from this distribution allows the model to "smooth out" the noise inherent in small datasets, providing a more representative "category-level" feature set for the fusion process.

To guide training, the model uses an Image-matching reconstruction loss ($L_{ir}$) to ensure valid image synthesis and a Feature reconstruction loss ($L_{fr}$). The latter combines KL-divergence with an orthogonal projection loss to ensure that features from the same category cluster together while remaining distinct from other categories.

Key Insights: Distribution over Points

The "aha moment" of this research is the realization that matching the distribution of features is far more stable than matching individual points when only 3 or 5 images are available. While many existing models use Gaussian approximations (matching only mean and variance), F2DGAN uses exact histogram matching to account for complex, non-Gaussian feature shapes.

Evolution of feature distributions from single samples (A, B, C) to a category-level distribution (E).

As shown in the figure above, individual samples (A, B, C) exhibit noisy, sparse distributions. However, as more samples are aggregated (D and E), a stable "category-level" distribution emerges. F2DGAN leverages this stability to produce higher-quality results.

Experimental Results

F2DGAN was evaluated on standard benchmarks including the Flowers dataset, Animal Faces, and VGGFaces. It consistently outperformed state-of-the-art (SOTA) models like LoFGAN and WaveGAN in both quality and diversity.

  • Higher Quality: On the Flowers dataset (3-shot), F2DGAN achieved an FID of 38.26, significantly better than WaveGAN (42.17) and HAE (50.10).
  • Data Augmentation Power: Beyond generating images, F2DGAN serves as a powerful tool for data augmentation. In low-data classification tests, augmenting the training set with F2DGAN-generated images boosted Top-1 accuracy to 84.02% on the Flowers dataset, compared to just 58.09% for a baseline without augmentation.
  • Qualitative Superiority: Visual results demonstrate that F2DGAN preserves category-specific details, such as petal textures and facial structures, much more effectively than previous methods.

Conclusion

By shifting the focus from point-to-point similarity to exact distribution matching, F2DGAN provides a more robust framework for few-shot image generation. While some transformation-based methods may occasionally offer higher diversity, F2DGAN excels in category consistency and practical utility for downstream tasks. Future work may explore integrating these exact distribution matching techniques into high-resolution Diffusion Model architectures.

Summary updated

BibTeX
@inproceedings{zhou2024exact,
  author = {Yingbo Zhou and Yutong Ye and Pengyu Zhang and Xian Wei and Mingsong Chen},
  title = {{Exact Fusion via Feature Distribution Matching for Few-Shot Image Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.00801},
}
Figure