TL;DR
Mixing & Matching scenes (M&Ms) introduces a label-free conditional generative framework that synthesizes coherent, realistic images directly from user-assembled visual collages. By extending Instance-Conditioned GANs (IC-GAN) with dual image- and object-level discriminators, M&Ms achieves fine-grained spatial and appearance control while beating DALL-E in zero-shot MS-COCO FID—despite using over $100\times$ fewer parameters and training images.
What Problem Does This Paper Address?
Existing controllable image generation tools face a tradeoff between semantic richness and ease of specification:
- Text-to-image models require long, intricate prompts to dictate precise object placement and appearance, and models frequently ignore fine spatial instructions.
- Layout-to-image models (e.g., bounding boxes or semantic masks) offer explicit spatial positioning but constrain appearance to coarse class labels (e.g., "dog"), omitting specific textures, styles, or detailed visual cues.
- Exemplar-based models often produce literal copy-pastes with poor contextual blending or fail to handle multiple objects simultaneously.
M&Ms bridges this gap with collage-based conditioning: users define a scene using a background image and roughly placed foreground image crops. The model must visually harmonize these elements into a single coherent scene without relying on class labels or text captions.
Methods
M&Ms builds upon the BigGAN architecture and extends Instance-Conditioned GAN (IC-GAN) to handle multiple spatially grounded instances:
[Background Image s] --> Pre-trained SwAV ResNet --> h_s \
[Foreground Objects {o_c}] --> Pre-trained SwAV ResNet --> {h_o} --> Spatial Replication into H_i --> Generator G(Z_i, H_i) --> Synthetic Image x̂
[Bounding Boxes {b_c}] ---------------------------------------/
- Collage Representation ($H_i$): A pre-trained, self-supervised encoder (SwAV ResNet50) extracts feature vectors for the background scene ($h^s_i$) and each foreground object ($h^o_{i,c}$). These vectors are spatially broadcast into a continuous feature tensor $H_i$ based on their bounding box coordinates ($b_{i,c}$). Overlapping boxes place smaller elements in front.
- Spatially Arranged Noise ($Z_i$): Latent noise is sampled separately for the scene background ($z^s$) and each foreground instance ($z^o_c$) and arranged into a spatial tensor $Z_i$, enabling localized stochastic variations.
- Dual Adversarial Discriminators:
- Global Discriminator ($D^g$): Evaluates overall realism and semantic coherence against the nearest neighbors of the conditioning scene in SwAV feature space.
- Object Discriminator ($D^o$): Uses RoI pooling across four intermediate feature layers to score each generated object crop against real nearest-neighbor objects in feature space.
- Fully Unsupervised Pipeline: M&Ms requires neither text descriptions nor class labels. The training collages are extracted automatically from natural images using bounding boxes or off-the-shelf open-world object proposal networks (e.g., OLN).
Datasets
- OpenImages (v4): Used for primary training and evaluation (~1.7M images; 1.5M images with 5.7M objects filtered for full training, and a 500k subset for ablations).
- MS-COCO / COCO-Stuff: Used strictly in a zero-shot setting to evaluate out-of-distribution transfer and generalization to unseen datasets and layouts.
Key Insights and Ideas
- Local density blending over copy-pasting: Instead of memorizing or copy-pasting image patches, M&Ms conditions generation on the neighborhoods of collage elements in self-supervised feature space. This encourages the generator to blend styles, lighting, and textures coherently.
- Decoupled control via interpolation: Because representations and noise are spatially compartmentalized, users can interpolate features or noise vectors for a single object (e.g., morphing a person or changing a house style) while leaving the rest of the generated image unchanged.
- Label-free scalability: Relying on self-supervised embeddings (SwAV) and class-agnostic proposals removes the bottleneck of human annotation, paving the way for training on raw, unannotated web imagery.
Key Results
- OpenImages Benchmark: M&Ms matches IC-GAN in global image fidelity ($\text{FID}_x$ of $6.1$ vs. $5.9$) while dramatically improving object fidelity ($\text{FID}_o$ drops from $23.8$ to $8.3$).
- Out-of-Distribution Collages: When foreground objects are swapped with random dataset objects, M&Ms preserves object identity and quality ($\text{FID}_o = 9.2$–$11.4$) whereas IC-GAN deteriorates ($\text{FID}_o = 30.9$–$33.0$).
- Zero-Shot Transfer to MS-COCO: M&Ms achieves an $\text{FID}$ of $16.7$, outperforming DALL-E (~$28$) despite being trained on $147\times$ less data (1.7M vs. 250M images) and utilizing $131\times$ fewer parameters (91M vs. 12B).
- Comparison to Bounding-Box Generative Baselines: On COCO-Stuff zero-shot evaluations with randomized collages, M&Ms surpasses LostGANv2 in both image FID ($51.49$ vs. $58.42$) and object FID ($30.25$ vs. $37.12$).
Limitations and Future Work
- Dependency on Frozen Encoders: Features rely on an offline SwAV extractor; training the feature extractor jointly with the generator and discriminators remains open.
- Dense Clutter and Overlaps: Heavily occluded or crowded bounding boxes can cause objects to merge into ambiguous visual artifacts.
- Infrequent Classes and Faces: Classes rarely seen during training (e.g., skis, skateboards) and detailed distant human faces exhibit noticeable blurriness or artifacts.
- Coarse Mask Adherence: While the model accommodates non-rectangular masks at inference, it approximates overall silhouette shapes rather than strictly following pixel-level boundaries.
Summary updated