Abstract
Controlling deep generative models often requires users to provide absolute numerical values for specific attributes, a task humans find difficult. We present PrefGen, a framework that enables intuitive image editing through simple pairwise preference queries. By combining a Bayesian preference model with an active learning strategy, PrefGen efficiently navigates the continuous attribute space of models like StyleGAN2 to reach a user's target image.
Introduction
Generative models like StyleGAN2 have achieved remarkable success in producing high-fidelity images. However, precisely controlling these models remains a significant challenge. Traditional interfaces rely on numerical sliders where users must specify absolute values for attributes—for instance, setting an "anger" level to a specific decimal.
This approach is counter-intuitive because humans struggle with absolute quantification of subjective traits. In contrast, humans excel at relative comparisons, easily identifying which of two images better represents a concept like "sadness" or "professionalism." PrefGen bridges this gap by replacing the "slider" interface with a sequence of pairwise comparisons, making image editing more intuitive and aligned with human psychology.
The PrefGen Framework
PrefGen addresses the controllability problem by reframing image generation as a search problem guided by pairwise preferences. Instead of adjusting sliders, the user is presented with two images and asked to choose the one closer to their desired outcome. The system operates through several key components:
- Bayesian Preference Model: The framework maintains a probability distribution over the user's "ideal point" ($a^*$) in the attribute space. Each user choice updates this belief using a likelihood function that assumes the user prefers the image closer to their internal target.
- Active Query Selection (MCMV): To minimize user effort, PrefGen employs a "Mean-Cut Max-Variance" strategy. This active learning approach selects pairs of images that maximize information gain, effectively bisecting the search space with each query to resolve uncertainty quickly.
- Continuous Attribute Sampling: Unlike methods restricted to a fixed gallery, PrefGen can sample new images from any point in the continuous latent space of the generative model, enabling high-precision convergence.
- Flexible Attribute Mapping: The system can use supervised regressors for well-defined labels (e.g., age, pose) or leverage CLIP to define latent directions from natural language prompts, such as "a person with red hair," allowing for the editing of abstract concepts without pre-labeled data.
Experimental Results
The researchers evaluated PrefGen against standard baselines, demonstrating significant improvements in both efficiency and precision. In simulations, the active querying method achieved a Mean Squared Error (MSE) of $1.69 \times 10^{-5}$, vastly outperforming LSTM-based approaches which scored $5.86 \times 10^{-2}$.
Qualitative results show a smooth "morphing" effect as the system narrows down the user's preferences. By the 30th query, the estimated attribute vector is typically closer to the target than 99.99% of random samples, proving the framework's ability to navigate complex latent spaces effectively. Because the framework is Bayesian, it remains robust to "noise," such as occasional incorrect user clicks, requiring only a few additional queries to correct the path.
Discussion and Future Work
PrefGen represents a shift toward more human-centric AI interfaces. By treating the user as a "noisy oracle" rather than a precise measurement tool, the system becomes more accessible to non-experts. However, several challenges remain. The current implementation assumes linear attribute paths in latent space, which may not hold for highly complex or abstract concepts. Furthermore, the ease of control offered by PrefGen raises ethical concerns regarding the creation of deepfakes, highlighting the need for responsible deployment strategies like digital watermarking.
Future research will focus on real-world human studies to account for user fatigue and subjective biases, as well as exploring non-linear mapping techniques to handle more nuanced image transformations.
Summary updated