Introduction
Generating high-quality and diverse images from a limited dataset—Few-Shot Image Generation (FSIG)—remains a significant challenge in computer vision. Traditional approaches like Learning From Scratch (LFS) often lead to overfitting and a lack of diversity, while Transfer Learning (TL) depends heavily on the semantic proximity between the source and target domains. When a large domain gap exists, such as transitioning from human faces to pandas, TL performance degrades significantly. The Peer is Your Pillar (PIP) framework addresses these limitations by shifting the strategy from rigid knowledge transfer to collaborative co-training.
Methodology
The PIP pipeline introduces a novel co-training strategy that utilizes a small "peer" dataset (e.g., 1,000 images) to provide structural guidance for the target few-shot set (e.g., 10 images).
Data-Unbalanced Conditional Generation
Unlike standard transfer learning, PIP trains on both the target and peer datasets simultaneously. This unbalanced setup allows the model to learn general structural knowledge from the peer set while specializing in the unique features of the target set. This "structural scaffolding" prevents the model from collapsing into memorization of the few-shot samples.
Architecture and Modulation
The generator architecture incorporates several key innovations to facilitate effective knowledge sharing:
- Pretrained Class Embedding: Utilizing a pre-trained VGG-19 network to generate "soft" embeddings allows the model to perceive semantic similarities between classes (e.g., shared features like eyes or fur), facilitating better adaptation.
- Separable Class Modulation: The network decouples style (latent code $z$) and class information (label $c$). A specialized Key function $K(\cdot)$ acts as a gate, controlling the injection of class-specific data into the synthesis network to maintain flexibility.
CLIP-based Direction Loss
To ensure generated images are not mere copies of the training data, PIP employs a CLIP-based direction loss. This loss enforces that the visual "direction" between a peer image and a target image in the model's latent space matches the semantic direction between their text descriptions in CLIP's embedding space, effectively regularizing diversity.
Experimental Results
The authors evaluated PIP across several challenging few-shot scenarios, including Panda, Grumpy Cat, and Sunglasses datasets, using FFHQ or AFHQ-Cat as peer sets.
Fidelity and Diversity
PIP consistently outperformed existing methods in both image quality (FID) and diversity (Intra-LPIPS). In the notorious "Panda Challenge," PIP achieved an FID of 21.80, significantly outperforming the Transfer Learning baseline CDC (32.48). Furthermore, on the Sunglasses dataset, PIP nearly tripled the diversity of the LFS baseline, achieving an Intra-LPIPS of 0.668.
Robustness to Domain Gaps
A defining characteristic of PIP is its robustness to large domain gaps. Even when using human faces as a "peer" to generate pandas, PIP maintained high performance and structural integrity, whereas traditional transfer learning methods often failed to bridge the semantic distance.
Conclusion
Peer is Your Pillar (PIP) offers a robust alternative to traditional transfer learning for few-shot image generation. By leveraging a small, diverse peer dataset through co-training and specialized modulation, PIP achieves state-of-the-art results across various domains, effectively bridging large domain gaps while maintaining high sample diversity and fidelity.
Summary updated