Lune

CVPR2025Top-tier venue

Learning to Sample Effective and Diverse Prompts for Text-to-Image Generation

Taeyoung Yun, Dinghuai Zhang, Jinkyoo Park, Ling Pan

Abstract

Recent advances in text-to-image diffusion models have achieved impressive image generation capabilities. However, it remains challenging to control the generation process with desired properties (e.g., aesthetic quality, user intention), which can be expressed as black-box reward functions. In this paper, we focus on prompt adaptation, which refines the original prompt into model-preferred prompts to generate desired images. While prior work uses reinforcement learning (RL) to optimize prompts, we observe that applying RL often results in generating similar postfixes and deterministic behaviors. To this end, we introduce Prompt Adaptation with GFlowNets (PAG), a novel approach that frames prompt adaptation as a probabilistic inference problem. Our key insight is that leveraging Generative Flow Networks (GFlowNets) allows us to shift from reward maximization to sampling from an unnormalized density function, enabling both high-quality and diverse prompt generation. However, we identify that a naive application of GFlowNets suffers from mode collapse and uncovers a previously overlooked phenomenon: the progressive loss of neural plasticity in the model, which is compounded by inefficient credit assignment in sequential prompt generation. To address this critical challenge, we develop a systematic approach in PAG with flow reactivation, reward-prioritized sampling, and reward decomposition for prompt adaptation. Extensive experiments validate that PAG successfully learns to sample effective and diverse prompts for text-toimage generation. We also show that PAG exhibits strong robustness across various reward functions and transferability to different text-to-image models.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
  • BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation cites Learning Transferable Visual Models From Natural Language Supervision
  • RePrompt: Reasoning-Augmented Reprompting for Text-to-Image Generation via Reinforcement Learning cites High-Resolution Image Synthesis with Latent Diffusion Models
  • RePrompt: Reasoning-Augmented Reprompting for Text-to-Image Generation via Reinforcement Learning cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • Discovering Latent Graphs with GFlowNets for Diverse Conditional Image Generation cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Discovering Latent Graphs with GFlowNets for Diverse Conditional Image Generation cites Learning Transferable Visual Models From Natural Language Supervision
  • Discovering Latent Graphs with GFlowNets for Diverse Conditional Image Generation cites Denoising Diffusion Probabilistic Models
  • Nabla-R2D3: Effective and Efficient 3D Diffusion Alignment with 2D Rewards cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Nabla-R2D3: Effective and Efficient 3D Diffusion Alignment with 2D Rewards cites Learning Transferable Visual Models From Natural Language Supervision
  • Nabla-R2D3: Effective and Efficient 3D Diffusion Alignment with 2D Rewards cites Denoising Diffusion Probabilistic Models
  • Value Gradient Guidance for Flow Matching Alignment cites Learning Transferable Visual Models From Natural Language Supervision
  • Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Learning Transferable Visual Models From Natural Language Supervision
  • Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Denoising Diffusion Probabilistic Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. FlowRL: Matching Reward Distributions for LLM ReasoningXuekai Zhu, Daixuan Cheng, Dinghuai Zhang, Hengli Li et al.ICLR 2026 · 41 citations
  2. RePrompt: Reasoning-Augmented Reprompting for Text-to-Image Generation via Reinforcement LearningMingrui Wu, Lu Wang, Pu Zhao, Fangkai Yang et al.ICLR 2026 · 19 citations
  3. Value Gradient Guidance for Flow Matching AlignmentZhen Liu, Tim Z. Xiao, Carles Domingo-Enrich, Weiyang Liu et al.NeurIPS 2025 · 15 citations
  4. Nabla-R2D3: Effective and Efficient 3D Diffusion Alignment with 2D RewardsQingming Liu, Zhen Liu, Dinghuai Zhang, Kui JiaNeurIPS 2025 · 10 citations
  5. Discovering Latent Graphs with GFlowNets for Diverse Conditional Image GenerationBailey Trang Nguyen, Parham Saremi, Alan Q. Wang, Fangrui Huang et al.NeurIPS 2025 · 2 citations

Builds on31

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  3. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
  4. Photorealistic Text-to-Image Diffusion Models with Deep Language UnderstandingChitwan Saharia, William Chan, Saurabh Saxena, Lala Li et al.NeurIPS 2022 · 8,965 citations
  5. BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and GenerationJunnan Li, Dongxu Li, Caiming Xiong, Steven C. H. HoiICML 2022 · 6,549 citations

Related papers

  1. Efficient Diversity-Preserving Diffusion Alignment via Gradient-Informed GFlowNetsZhen Liu, Tim Z. Xiao, Weiyang Liu, Yoshua Bengio et al.ICLR 2025
  2. Optimizing Prompts for Text-to-Image GenerationYaru Hao, Zewen Chi, Li Dong, Furu WeiNeurIPS 2023 · 303 citations
  3. PromptRL: Prompt Matters in RL for Flow-Based Image GenerationFu-Yun Wang, Han Zhang, Michaël Gharbi, Hongsheng Li et al.ICML 2026 · 8 citations
  4. Dynamic Prompt Optimizing for Text-to-Image GenerationWenyi Mo, Tianyu Zhang, Yalong Bai, Bing Su et al.CVPR 2024 · 15 citations
  5. RewardFlow: Generate Images by Optimizing What You RewardOnkar Susladkar, Dong-Hwan Jang, Tushar Prakash, Adheesh Sunil Juvekar et al.CVPR 2026 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines