TL;DR
Polymorphic-GAN (PMGAN) is a multi-domain generative model that produces spatially aligned samples across datasets with significantly different geometries, such as human, cat, and dog faces. By introducing a "MorphNet" that learns to warp shared generator features into domain-specific shapes, the model enables applications like zero-shot segmentation transfer and cross-domain image editing where a single latent edit (e.g., rotating a head) applies consistently across all modeled species.
What Problem Does This Paper Address?
State-of-the-art generative models like StyleGAN excel at modeling single domains (e.g., human faces) but struggle to bridge multiple related domains that share semantics but differ in geometry. For instance, while a human, a dog, and a lion all have eyes, noses, and mouths, their spatial arrangements are vastly different.
Existing approaches to multi-domain generation usually involve fine-tuning a pre-trained model, which often causes the model to "forget" the original domain, or using domain-conditional inputs that lead to features becoming specialized rather than shared. This lack of feature alignment makes it impossible to perform "edit transfer"—where an edit in one domain (like adding glasses to a human) automatically translates to the correct geometric position in another (like a cat).
Methods
PMGAN builds upon the StyleGAN2 architecture but introduces a novel mechanism to handle geometric diversity:
- Shared Backbone: The core StyleGAN generator is shared across all domains, ensuring they all map to the same semantic latent space.
- MorphNet: This is the paper's key innovation. MorphNet takes intermediate feature maps from the generator and predicts domain-specific morph maps ($M_\Delta$). These maps are pixel-wise displacement vectors that define how to warp the shared features to fit a specific domain's geometry.
- Feature Morphing: Inspired by Spatial Transformer Networks, PMGAN uses these maps to differentiably warp the generator's feature tensors. Unlike standard STNs that use global affine transforms, PMGAN learns fine-grained, pixel-level deformations.
- Domain-Specific Rendering: After morphing, the features pass through shallow, domain-specific convolutional layers ($R^d$) that handle the final texture and style rendering (e.g., fur vs. skin).
Datasets
The authors evaluated PMGAN on two primary multi-domain datasets:
- Faces: A combination of FFHQ (human faces), MetFaces (artistic portraits), and the AFHQ dataset (Cats, Dogs, and Wildlife). This represents a high-difficulty task due to the extreme geometric differences between species.
- Cars: Five classes derived from LSUN-Car (Sedan, SUV, Sports Car, Van, and Truck), categorized using a pre-trained classifier.
Key Insights and Ideas
- Geometry as a First-Class Citizen: The "aha moment" is that semantic alignment (pose, expression) and geometric alignment (spatial layout) can be disentangled. By explicitly modeling the warp, the generator can keep its features semantically consistent across domains.
- The "Free" Edit Transfer: Because the domains share a latent space and a backbone, any latent space manipulation (like a rotation vector found via SeFa) applies to the shared features before they are morphed. This means a "rotate" edit correctly rotates a human, a dog, and a car simultaneously.
- Zero-Shot Label Propagation: The learned morph maps are interpretable. If you have a segmentation mask for a human face, you can use the relative displacement between the human and cat morph maps to warp that mask onto a cat. This allows for "zero-shot" segmentation of animal faces without ever seeing an animal training label.
Key Results
- Sample Quality: PMGAN achieved significantly better Frechet Inception Distance (FID) scores than baselines like Domain-Conditional StyleGAN2. For example, on the "Wild Life" domain, PMGAN reached an FID of 12.0, compared to 102.0 for the baseline.
- Alignment Accuracy: Using a pre-trained classifier, PMGAN showed nearly 100% accuracy in generating the correct domain, whereas fine-tuned baselines often failed to capture domain-specific information effectively.
- Low-Data Regime: PMGAN proved robust when training data was scarce. When trained on only 5% of the MetFaces dataset, PMGAN leveraged the shared FFHQ features to maintain high quality, while a standard StyleGAN2 mode-collapsed.
Limitations and Future Work
- 2D Constraints: The morph maps are 2D, meaning the model can only "mimic" 3D changes (like head rotation) rather than performing true 3D transformations.
- Domain Limits: The approach is designed for semantically related domains. It likely wouldn't work for vastly different categories, such as trying to morph a face into a toaster.
- Computational Cost: The current implementation requires a separate discriminator for every domain, which becomes computationally expensive as the number of domains grows. The authors suggest exploring more efficient discriminator sharing in future work.
Summary updated