TL;DR
This paper introduces Prompt Adaptive Human Preference Inversion (PAHI), a novel method to significantly improve the quality of one-step text-to-image generation from diffusion models. PAHI achieves this by learning prompt-specific prior noise distributions that align with human preferences, without requiring any fine-tuning of the diffusion model itself. This approach offers a computationally efficient way to generate high-fidelity images that better match user expectations.
What Problem Does This Paper Address?
Diffusion models (DMs) have revolutionized text-to-image generation, but their practical adoption is hampered by the high computational cost associated with their multi-step sampling process. While distillation techniques have reduced the number of steps, generating images in very few steps often leads to a noticeable drop in quality. This paper tackles the challenge of achieving high-quality, one-step image generation that aligns with human preferences, specifically by investigating the often-overlooked role of the prior noise distribution in this process. The authors argue that current methods primarily focus on modifying the sampling process itself, but optimizing the initial noise input offers a complementary and effective avenue for improvement, especially for distilled models.
Methods
The core of the proposed method, Prompt Adaptive Human Preference Inversion (PAHI), lies in optimizing the prior noise distribution. The authors first explore optimizing a single noise distribution for all prompts, and then extend this to a prompt-adaptive approach.
- Human Preference Scoring: They leverage a pre-trained scoring model, PickScore, which is trained on human preferences for image-prompt pairs. This model acts as an evaluator, providing feedback on how well a generated image aligns with human expectations.
- Noise Distribution Optimization: The method treats the prior noise as a Gaussian distribution with learnable mean ($\mu$) and standard deviation ($\sigma$). The goal is to find $\mu$ and $\sigma$ that maximize the human preference score for generated images. This optimization is framed as minimizing an objective function that incorporates the scoring model's output.
- Reparameterization Trick: To enable gradient-based optimization of the Gaussian parameters, they employ the reparameterization trick.
- Prompt Adaptive Approach (PAHI): To further enhance performance, PAHI learns to predict prompt-specific $\mu(c_i)$ and $\sigma(c_i)$ distributions. This is achieved by training a lightweight, conditional noise prediction model. This model consists of a text encoder (repurposed from the diffusion model) and two MLPs that output the parameters for the Gaussian noise distribution based on the input text prompt.
- Pre-training the Noise Predictor: To stabilize the training of the noise predictor, it's pre-trained using a loss function that encourages its output to be close to a standard Gaussian and also includes a text embedding reconstruction loss.
Crucially, PAHI is model-agnostic, meaning it doesn't require fine-tuning the diffusion model itself, making it broadly applicable.
Datasets
- Training/Evaluation Data: The study utilizes a dataset of 35,000 text prompts and corresponding human preferences, as introduced by Kirstain et al. [12]. They randomly select 500 prompts for validation, 500 for testing, and the rest for training.
- Scoring Models: PickScore [12] is used as the primary scoring model. For evaluation, they also use ImageReward [32] to assess if PAHI-optimized images align with multiple human preference criteria.
Key Insights and Ideas
- The Prior Noise Matters Significantly: The paper strongly emphasizes that the choice of prior noise distribution has a substantial impact on the quality of generated images, especially in low-step generation scenarios. This is a less explored area compared to optimizing the sampling process itself.
- Prompt-Specific Noise is Key: Optimizing a single noise distribution for all prompts yields improvements, but tailoring the noise distribution to each individual prompt (PAHI) leads to even more significant gains in image quality. This highlights the nuanced relationship between text prompts and the optimal noise input for generation.
- Model-Agnostic Enhancement: The ability to improve image quality without fine-tuning the large diffusion models is a major advantage, making the approach computationally efficient and widely applicable to various pre-trained DMs.
- Bridging Efficiency and Quality: PAHI effectively bridges the gap between the computational efficiency of low-step generation and the high quality typically associated with more sampling steps.
Key Results
- Superior Image Quality: PAHI significantly outperforms the standard Gaussian prior, achieving a remarkable win rate of 98.4% when evaluated by PickScore. Even the simpler "HI" (Human Preference Inversion, non-adaptive) method shows a 65% win rate.
- Cross-Scorer Agreement: Interestingly, even when trained with PickScore, PAHI also achieves higher ImageReward scores, demonstrating its ability to generate images that align with multiple human preference criteria.
- Minimal Computational Overhead: The inference time for PAHI is only marginally higher than standard one-step generation (an increase of approximately 0.005s), making it highly efficient. The added parameters for the noise predictor (around 5 million) are negligible compared to the diffusion model's parameters.
- Comparable to Multi-Step Generation: The quality achieved by PAHI in one step is comparable to or better than two-step generation methods, while being significantly faster.
Limitations and Future Work
- Limitations: The paper acknowledges that while PAHI significantly improves quality, it doesn't entirely eliminate the quality gap compared to multi-step generation in all cases. The current implementation focuses on one-step generation, and its performance in multi-step scenarios is not explicitly detailed.
- Future Work: The authors suggest that their method is a general framework applicable to multi-step deterministic sampling scenarios, hinting at future extensions. They also note that alternative scoring models could be employed, suggesting flexibility in adapting to different human preference criteria. The exploration of noise optimization for other generative models beyond diffusion models could also be a future direction.
Summary updated