Abstract
Generating high-quality images typically requires extensive datasets. However, real-world applications often involve "long-tail" categories where only a few examples are available. This paper introduces Disco-FUNIT (Discrete Content FUNIT), a framework that addresses the Few-Shot Image Generation (FSIG) challenge. By discretizing image structure into "content tokens" and using a style-conditioned Transformer to predict these tokens, Disco-FUNIT generates diverse, realistic images for entirely new categories using as little as a single reference example.
Introduction
The Few-Shot Image Generation (FSIG) task aims to produce novel images of a previously unseen category given only a few reference samples. Existing approaches often struggle with two primary issues: a lack of output diversity and the "incompatibility problem." The latter occurs when models attempt to map the structure of a known category (e.g., a standing dog) onto the style of an unseen category (e.g., a perched bird), resulting in unrealistic artifacts. Disco-FUNIT overcomes these hurdles by evolving image translation into a generative process that ensures structural compatibility with the target style.
Methodology: Disco-FUNIT
The proposed architecture transitions from a translation-based framework to a generative one through a two-stage training process involving disentanglement and autoregressive modeling.
1. Disentanglement with Quantization
The model first learns to decompose an image into a style vector and a content map. A key innovation is the quantization of the continuous content map into a discrete dictionary of local content vectors, similar to a VQ-VAE. This quantization acts as a filter, forcing the model to represent structure using a finite "vocabulary" of parts. This process improves the separation of style from content by ignoring pixel-level noise and focusing on essential geometric features.
2. Style-Conditioned Autoregression
To move beyond simple translation, a Transformer is trained to generate new content layouts from scratch. This Transformer is conditioned on the style vector of the target unseen category. It predicts the sequence of discrete content tokens autoregressively, ensuring that the generated layout is physically and visually compatible with the requested style.
At inference, a single image of a new category provides the style vector. The Transformer then "dreams up" a compatible layout, which the decoder combines with the style to produce a brand-new image.
Experiments and Results
The model was evaluated on three datasets: Flowers (102 categories), Animal Faces (149 categories), and NABirds (555 categories). In each case, a subset of categories was held out as "unseen" for testing.
Quantitative Performance
Disco-FUNIT demonstrates superior performance in both realism and diversity:
- Realism (FID): On the Animal Faces dataset (3-shot), Disco-FUNIT achieved an FID of 66.05, significantly better than the original FUNIT (86.54) and DeltaGAN (87.04).
- Diversity (LPIPS): The model consistently yielded higher LPIPS scores, indicating a broader variety of generated poses and compositions compared to baselines.
- Downstream Utility: Using generated images to augment few-shot classifiers improved accuracy (e.g., from ~73% to ~79% on the Flowers dataset), confirming the category-accuracy of the outputs.
Qualitative Comparison
Visual results highlight Disco-FUNIT's ability to maintain high fidelity and structural variety across different domains.
Conclusion
Disco-FUNIT represents a significant step forward in few-shot image generation by utilizing discrete content representations and style-conditioned autoregression. While the model currently faces challenges with extremely large domain gaps and slower inference speeds due to its autoregressive nature, it effectively solves the incompatibility problem and enhances output diversity. Future work may explore non-autoregressive sampling methods to improve generation efficiency.
Summary updated