Abstract
PluGeN (Plugin Generative Network) is a lightweight, flow-based add-on designed to provide precise, multi-label control over pre-trained generative models such as StyleGAN or VAEs without requiring retraining. By disentangling the latent space into independent attribute dimensions, PluGeN enables the generation of rare or out-of-distribution attribute combinations with high accuracy and minimal computational overhead.
Introduction
Modern generative models, including Generative Adversarial Networks (GANs) and Variational Autoencoders (VAEs), produce highly realistic images and complex data structures. However, controlling specific attributes in the generated output remains a significant challenge. Researchers typically face two suboptimal choices: retraining a conditional model from scratch, which is computationally expensive, or performing post-hoc latent space manipulation. The latter often suffers from "entanglement," where changing one feature (e.g., adding a smile) inadvertently alters others (e.g., age or gender). Furthermore, standard models struggle to generate "out-of-distribution" samples—combinations of attributes rarely seen in the training data. PluGeN addresses these issues by acting as a non-invasive, efficient plugin that disentangles these features.
Methodology
The core of PluGeN is an Invertible Normalizing Flow (INF), specifically utilizing the NICE architecture, inserted between the pre-trained model's latent space ($Z$) and a new, disentangled space ($D$).
- Latent Mapping: PluGeN learns a mapping from the entangled latent codes of the base model to a structured space where each dimension corresponds to a specific attribute (e.g., "glasses," "smile").
- Factorization: The probability distribution in the new space is modeled as a product of independent 1D distributions, allowing for independent "mixing and matching" of attributes.
- Gaussian Mixtures: For binary labels, the model uses a mixture of two Gaussians for each attribute dimension, enabling smooth interpolation and intensity control.
- Frozen Backbone: The original generative model remains frozen during training. Only the relatively small INF module is trained, significantly reducing computational costs while preserving the base model's generation quality.
Experimental Setup
The effectiveness of PluGeN was evaluated across three distinct domains:
- FFHQ (Flickr-Faces-HQ): 70,000 high-quality face images using a StyleGAN backbone.
- CelebA: Over 200,000 celebrity face images with 40 binary attributes, paired with a VAE backbone.
- ZINC 250k: 250,000 chemical compounds using a CharVAE backbone to demonstrate applications in drug discovery and molecular property optimization.
Results and Discussion
PluGeN demonstrates superior performance in attribute modification and disentanglement. On StyleGAN, it achieved an average attribute modification accuracy of 90%, outperforming the baseline StyleFlow (86%).
Qualitative analysis confirms that PluGeN can manipulate single attributes while maintaining the stability of other features such as identity, lighting, and background. For instance, adding a smile to a generated face does not alter the underlying identity or environmental factors.
A key insight from the results is the "FID trade-off." PluGeN often yields higher (worse) Frechet Inception Distance (FID) scores than some baselines. The authors argue this is a marker of success: since FID measures similarity to the training distribution, and PluGeN is designed to explore rare or unseen attribute combinations, a higher score reflects the model's ability to generate valid but out-of-distribution samples.
In chemical engineering tasks, PluGeN successfully shifted molecular property distributions (e.g., solubility and synthetic accessibility) toward target values, showcasing its utility for lead optimization in drug discovery.
Conclusion
PluGeN provides a universal, backbone-agnostic solution for multi-label conditional generation. Its efficiency is notable, offering a 100x speedup during inference and a 3x speedup during training compared to continuous flow models. Future work will focus on incorporating physical constraints for chemical generation to prevent impossible molecular combinations and refining the handling of continuous or highly correlated attributes.
Summary updated