[Paper Review] Generative Visual Prompt: Unifying Distributional Control of Pre-Trained Generative Models
This paper introduces Generative Visual Prompt (PromptGen), a novel framework for distributional control over pre-trained generative models using off-the-shelf models as control signals. By modeling control as an energy-based model approximated via invertible neural networks, PromptGen enables efficient, feed-forward sampling without optimization at inference, allowing controlled and de-biased generation across diverse models like StyleGAN2, diffusion autoencoders, and NVAE using CLIP, classifiers, or inverse graphics models.
Generative models (e.g., GANs, diffusion models) learn the underlying data distribution in an unsupervised manner. However, many applications of interest require sampling from a particular region of the output space or sampling evenly over a range of characteristics. For efficient sampling in these scenarios, we propose Generative Visual Prompt (PromptGen), a framework for distributional control over pre-trained generative models by incorporating knowledge of other off-the-shelf models. PromptGen defines control as energy-based models (EBMs) and samples images in a feed-forward manner by approximating the EBM with invertible neural networks, avoiding optimization at inference. Our experiments demonstrate how PromptGen can efficiently sample from several unconditional generative models (e.g., StyleGAN2, StyleNeRF, diffusion autoencoder, NVAE) in a controlled or/and de-biased manner using various off-the-shelf models: (1) with the CLIP model as control, PromptGen can sample images guided by text, (2) with image classifiers as control, PromptGen can de-bias generative models across a set of attributes or attribute combinations, and (3) with inverse graphics models as control, PromptGen can sample images of the same identity in different poses. (4) Finally, PromptGen reveals that the CLIP model shows a "reporting bias" when used as control, and PromptGen can further de-bias this controlled distribution in an iterative manner. The code is available at https://github.com/ChenWu98/Generative-Visual-Prompt.
Motivation & Objective
- To address the lack of controllability and bias in unsupervised pre-trained generative models such as GANs and diffusion models.
- To unify distributional control across diverse generative models without requiring model-specific fine-tuning or labeled data.
- To enable efficient, feed-forward sampling by avoiding optimization at inference time.
- To reveal and mitigate biases in pre-trained control models like CLIP through iterative control composition.
- To provide a modular, standalone framework that decouples control from the generative model after training.
Proposed method
- PromptGen formulates control as an energy-based model (EBM) defined by off-the-shelf models such as CLIP, classifiers, or inverse graphics networks.
- It approximates the EBM using an invertible neural network (INN), enabling fast, feed-forward sampling without iterative optimization.
- The framework keeps the pre-trained generative model’s weights fixed, ensuring no retraining is needed.
- Control signals are applied by composing the INN with the latent space of the generative model, forming a new differentiable distribution to sample from.
- Iterative control is enabled by treating the composed model as a new generative model, allowing refinement of biased distributions.
- The method is agnostic to the underlying generative model, supporting StyleGAN2, StyleNeRF, diffusion autoencoders, and NVAE.
Experimental results
Research questions
- RQ1Can we achieve efficient, feed-forward sampling from pre-trained generative models using off-the-shelf models as control signals?
- RQ2How can we unify control across diverse generative models (e.g., GANs, diffusion models, VAEs) without model-specific adaptation?
- RQ3Can PromptGen de-bias generative models across attributes like race or gender using pre-trained classifiers?
- RQ4Does CLIP’s inherent bias—such as reporting bias—manifest in controlled generation, and can it be mitigated?
- RQ5Can iterative control composition improve the quality and fairness of generated distributions?
Key findings
- PromptGen enables efficient, feed-forward sampling from pre-trained generative models using off-the-shelf models like CLIP, classifiers, and pose regressors, without optimization at inference.
- Using CLIP as a control signal, PromptGen successfully generates images aligned with text prompts such as 'a photo of a baby' with high fidelity.
- When guided by a race classifier, PromptGen achieves uniform sampling across racial groups, effectively de-biasing StyleGAN2’s default preference for white individuals.
- PromptGen enables identity-preserving generation across poses using an inverse graphics model, maintaining identity while varying pose.
- The framework reveals that CLIP exhibits 'reporting bias'—e.g., 'without makeup' is positively correlated with female—which PromptGen can iteratively de-bias.
- Failure modes are consistent between PromptGen and CLIP retrieval, indicating that observed failures (e.g., misinterpreting negation or numerical counts) stem from CLIP’s limitations, not PromptGen’s method.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.