Abstract
F2GAN (Fusing-and-Filling GAN) is a novel framework designed to generate high-quality, diverse images from just a few examples—a task known as few-shot image generation. By interpolating high-level features from multiple source images and "filling in" low-level details using a non-local attention mechanism, F2GAN produces more realistic and varied results than previous state-of-the-art methods.
Introduction
Deep generative models like GANs are data-hungry, typically requiring thousands of images to learn how to synthesize a specific category. However, real-world scenarios often involve "long-tail" or newly emerging categories where only a handful of examples exist. Existing few-shot generation methods struggle with two primary issues: realism and diversity. Images often turn out blurry or structurally inconsistent, and models frequently suffer from "mode collapse," generating repetitive outputs despite varying inputs. F2GAN addresses these challenges by learning to intelligently blend existing images to create entirely new, plausible ones.
Methodology
The authors propose a "Fusing-and-Filling" approach built on a U-Net-style architecture. The process consists of three main components:
- Feature Fusion: The generator takes a few "conditional images" from a category, encoding them into high-level bottleneck features. These are blended using random interpolation coefficients to create a "semantic blueprint" for a new image.
- Non-local Attentional Fusion (NAF): This is the "Filling" stage. As the generator upsamples fused features, it requires fine-grained details (e.g., textures). The NAF module searches globally across the low-level features of all input images to "borrow" the most relevant details. Unlike standard skip connections, NAF is non-local, allowing it to find matches regardless of position or pose.
- Diversity-Enforcing Losses: To prevent mode collapse, the framework employs a Mode Seeking Loss (maximizing distance between images generated with different weights) and an Interpolation Regression Loss (forcing the model to recover input weights from the generated image), ensuring a unique link between latent weights and visual output.
Experimental Results
The model was evaluated on five diverse datasets: Omniglot, EMNIST, VGGFace, Flowers, and Animal Faces. F2GAN consistently outperformed baselines like DAGAN and MatchingGAN across multiple metrics:
- Image Quality: F2GAN achieved the lowest Fréchet Inception Distance (FID) and highest Inception Score. For instance, on VGGFace, F2GAN reached an FID of 109.16, significantly better than MatchingGAN's 118.62.
- Diversity: High LPIPS scores confirmed that generated images were perceptually distinct rather than mere variations.
- Downstream Utility: Using F2GAN to augment training sets for few-shot classification improved accuracy significantly, reaching 82.69% on Animal Faces compared to approximately 80% for previous methods.
Key Insights and Discussion
The core innovation of F2GAN lies in the separation of semantics and details. While high-level concepts can be interpolated mathematically, low-level details must be retrieved from source material. The NAF module's ability to perform a global search across multiple reference images is critical for handling varying poses and positions.
Despite its success, F2GAN faces limitations with extreme intra-class variance. When input images feature wildly different poses, the generator may produce unnatural artifacts. Future work may involve explicit part alignment or 3D structural priors to handle complex pose transitions more gracefully, alongside optimizations for the computational overhead of non-local attention.
Summary updated