Learning to Sample Effective and Diverse Prompts for Text-to-Image Generation
On the map: Diffusion models → Image generation, text-to-image and editing
Abstract (arXiv)
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-to-image generation. We also show that PAG exhibits strong robustness across various reward functions and transferability to different text-to-image models.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 63 of its 74 references that are in the map. First posted on arXiv 17 Feb 2025.
Builds on
63 of 74 references.
Closest ancestors · 4
Same direction, newest first
- 2024On Discrete Prompt Optimization for Diffusion Models27 Jun
- 2022DiffusionDB: A Large-scale Prompt Gallery Dataset for Text-to-Image Generative Models26 Oct
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latents13 Apr
Other references · 59
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,094
- 2022DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Stepscited by 1,961
- 2015Microsoft COCO Captions: Data Collection and Evaluation Servercited by 1,447
38 more
- 2023ImageReward: Learning and Evaluating Human Preferences for Text-to-Image Generationcited by 1,010
- 2023Training Diffusion Models with Reinforcement Learningcited by 939
- 2023Human Preference Score v2: A Solid Benchmark for Evaluating Human Preferences of Text-to-Image Synthesiscited by 847
- 2023Adversarial Diffusion Distillationcited by 741
- 2022Pseudo Numerical Methods for Diffusion Models on Manifoldscited by 695
- 2023Directly Fine-Tuning Diffusion Models on Differentiable Rewardscited by 431
- 2021Flow Network based Generative Models for Non-Iterative Diverse Candidate Generationcited by 384
- 2021GFlowNet Foundationscited by 286
- 2023Aligning Text-to-Image Diffusion Models with Reward Backpropagationcited by 284
- 2022Trajectory balance: Improved credit assignment in GFlowNetscited by 244
- 2022The Primacy Bias in Deep Reinforcement Learningcited by 242
- 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 240
- 2022Optimizing Prompts for Text-to-Image Generationcited by 204
- 2017Bridging the Gap Between Value and Policy Based Reinforcement Learningcited by 178
- 2023The Dormant Neuron Phenomenon in Deep Reinforcement Learningcited by 171
- 2022Bayesian Structure Learning with Generative Flow Networkscited by 153
- 2020Implicit Under-Parameterization Inhibits Data-Efficient Deep Reinforcement Learningcited by 134
- 2022Understanding and Preventing Capacity Loss in Reinforcement Learningcited by 124
- 2022Generative Flow Networks for Discrete Probabilistic Modelingcited by 113
- 2023A theory of continuous generative flow networkscited by 98
- 2023Amortizing intractable inference in large language modelscited by 94
- 2024Probabilistic Inference in Language Models via Twisted Sequential Monte Carlocited by 85
- 2023Better Training of GFlowNets with Local Credit and Incomplete Trajectoriescited by 83
- 2023Towards Understanding and Improving GFlowNet Trainingcited by 74
- 2020VarGrad: A Low-Variance Gradient Estimator for Variational Inferencecited by 73
- 2024Amortizing intractable inference in diffusion models for vision, language, and controlcited by 70
- 2023Robust Scheduling with GFlowNetscited by 67
- 2023Generative Flow Networks as Entropy-Regularized RLcited by 60
- 2024Learning diverse attacks on large language models for robust red-teaming and safety tuningcited by 54
- 2024Ant Colony Sampling with GFlowNets for Combinatorial Optimizationcited by 53
- 2024Progressive Knowledge Distillation Of Stable Diffusion XL Using Layer Level Losscited by 51
- 2022Generative Augmented Flow Networkscited by 48
- 2023Local Search GFlowNetscited by 45
- 2023Let the Flows Tell: Solving Graph Combinatorial Optimization Problems with GFlowNetscited by 40
- 2024Discrete Probabilistic Inference as Control in Multi-path Environmentscited by 40
- 2023Stochastic Generative Flow Networkscited by 32
- 2024Efficient Diversity-Preserving Diffusion Alignment via Gradient-Informed GFlowNetscited by 30
- 2024Confronting Reward Overoptimization for Diffusion Models: A Perspective of Inductive and Primacy Biasescited by 29
50 most cited of 59 All 59 (JSON)
Built on by
Citing papers per year: 2025: 9; 2026: 7.
16 papers.
Sort:
By area:
- 2025FlowRL: Matching Reward Distributions for LLM Reasoningcited by 38
- 2025RePrompt: Reasoning-Augmented Reprompting for Text-to-Image Generation via Reinforcement Learningcited by 22
- 2025Maestro: Self-Improving Text-to-Image Generation via Agent Orchestrationcited by 18
- 2025Measure gradients, not activations! Enhancing neuronal activity in deep reinforcement learningcited by 14
- 2025Value Gradient Guidance for Flow Matching Alignmentcited by 14
- 2025Nabla-R2D3: Effective and Efficient 3D Diffusion Alignment with 2D Rewardscited by 11
- 2025Reward-Agnostic Prompt Optimization for Text-to-Image Diffusion Modelscited by 5
- 2026TP-Blend: Textual-Prompt Attention Pairing for Precise Object-Style Blending in Diffusion Modelscited by 4
- 2025Discovering Latent Graphs with GFlowNets for Diverse Conditional Image Generationcited by 2
- 2025Anatomy-Aware Text-Visual Fusion with Dual-Perspective Prompts for Fine-Grained Lumbar Spine Segmentationcited by 1
- 2026Don't Settle at the Mode! Mitigating Diversity Collapse in Pretrained Flow Models via Feature Self-Guidancecited by 1
- 2026Controlling Exploration-Exploitation in GFlowNets via Markov Chain Perspectivescited by 0
4 more
- 2026GFlowPO: Generative Flow Network as a Language Model Prompt Optimizercited by 0
- 2026Curriculum Group Policy Optimization: Adaptive Sampling for Unleashing the Potential of Text-to-Image Generationcited by 0
- 2026ImageAuditor: Membership Inference Attack against Image-based Retrieval-Augmented Generationcited by 0
- 2026DOGS: Design-Space Sampling for Prompt-Driven Logo Generationcited by 0
- 2026DOGS: Design-Space Sampling for Prompt-Driven Logo Generation7 Oct 2026
- 2026Don't Settle at the Mode! Mitigating Diversity Collapse in Pretrained Flow Models via Feature Self-Guidance25 Jun 2026
- 2026ImageAuditor: Membership Inference Attack against Image-based Retrieval-Augmented Generation2 Jun 2026
- 2026Curriculum Group Policy Optimization: Adaptive Sampling for Unleashing the Potential of Text-to-Image Generation18 May 2026
- 2026GFlowPO: Generative Flow Network as a Language Model Prompt Optimizer3 Feb 2026
- 2026Controlling Exploration-Exploitation in GFlowNets via Markov Chain Perspectives2 Feb 2026
- 2026TP-Blend: Textual-Prompt Attention Pairing for Precise Object-Style Blending in Diffusion Models12 Jan 2026
- 2025Value Gradient Guidance for Flow Matching Alignment4 Dec 2025
- 2025Discovering Latent Graphs with GFlowNets for Diverse Conditional Image Generation25 Oct 2025
- 2025FlowRL: Matching Reward Distributions for LLM Reasoning18 Sep 2025
- 2025Maestro: Self-Improving Text-to-Image Generation via Agent Orchestration12 Sep 2025
- 2025Reward-Agnostic Prompt Optimization for Text-to-Image Diffusion Models20 Jun 2025
4 more
- 2025Nabla-R2D3: Effective and Efficient 3D Diffusion Alignment with 2D Rewards18 Jun 2025
- 2025Measure gradients, not activations! Enhancing neuronal activity in deep reinforcement learning29 May 2025
- 2025RePrompt: Reasoning-Augmented Reprompting for Text-to-Image Generation via Reinforcement Learning23 May 2025
- 2025Anatomy-Aware Text-Visual Fusion with Dual-Perspective Prompts for Fine-Grained Lumbar Spine Segmentation4 Apr 2025
- 2025Value Gradient Guidance for Flow Matching Alignmentcited by 14
- 2025Nabla-R2D3: Effective and Efficient 3D Diffusion Alignment with 2D Rewardscited by 11
- 2025Reward-Agnostic Prompt Optimization for Text-to-Image Diffusion Modelscited by 5
- 2026TP-Blend: Textual-Prompt Attention Pairing for Precise Object-Style Blending in Diffusion Modelscited by 4
- 2026TP-Blend: Textual-Prompt Attention Pairing for Precise Object-Style Blending in Diffusion Models12 Jan 2026
- 2025Value Gradient Guidance for Flow Matching Alignment4 Dec 2025
- 2025Reward-Agnostic Prompt Optimization for Text-to-Image Diffusion Models20 Jun 2025
- 2025Nabla-R2D3: Effective and Efficient 3D Diffusion Alignment with 2D Rewards18 Jun 2025
- 2025Measure gradients, not activations! Enhancing neuronal activity in deep reinforcement learningcited by 14
- 2025Discovering Latent Graphs with GFlowNets for Diverse Conditional Image Generationcited by 2
- 2025Anatomy-Aware Text-Visual Fusion with Dual-Perspective Prompts for Fine-Grained Lumbar Spine Segmentationcited by 1
- 2026Don't Settle at the Mode! Mitigating Diversity Collapse in Pretrained Flow Models via Feature Self-Guidancecited by 1
- 2026Controlling Exploration-Exploitation in GFlowNets via Markov Chain Perspectivescited by 0
- 2026GFlowPO: Generative Flow Network as a Language Model Prompt Optimizercited by 0
- 2026Curriculum Group Policy Optimization: Adaptive Sampling for Unleashing the Potential of Text-to-Image Generationcited by 0
- 2026DOGS: Design-Space Sampling for Prompt-Driven Logo Generationcited by 0
- 2026DOGS: Design-Space Sampling for Prompt-Driven Logo Generation7 Oct 2026
- 2026Don't Settle at the Mode! Mitigating Diversity Collapse in Pretrained Flow Models via Feature Self-Guidance25 Jun 2026
- 2026Curriculum Group Policy Optimization: Adaptive Sampling for Unleashing the Potential of Text-to-Image Generation18 May 2026
- 2026GFlowPO: Generative Flow Network as a Language Model Prompt Optimizer3 Feb 2026
- 2026Controlling Exploration-Exploitation in GFlowNets via Markov Chain Perspectives2 Feb 2026
- 2025Discovering Latent Graphs with GFlowNets for Diverse Conditional Image Generation25 Oct 2025
- 2025Measure gradients, not activations! Enhancing neuronal activity in deep reinforcement learning29 May 2025
- 2025Anatomy-Aware Text-Visual Fusion with Dual-Perspective Prompts for Fine-Grained Lumbar Spine Segmentation4 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2024Dynamic Prompt Optimizing for Text-to-Image Generation
- 2023BeautifulPrompt: Towards Automatic Prompt Engineering for Text-to-Image Synthesis
- 2025PromptEnhancer: A Simple Approach to Enhance Text-to-Image Models via Chain-of-Thought Prompt Rewriting
- 2026Evolutionary Token-Level Prompt Optimization for Diffusion Models
- 2026PromptRL: Prompt Matters in RL for Flow-Based Image Generation
- 2024Batch-Instructed Gradient for Prompt Evolution:Systematic Prompt Optimization for Enhanced Text-to-Image Synthesis
- 2025Diversifying Long Prompt Image Generation through Structured Prompt Embedding Space Sampling
- 2026Na"ive PAINE: Lightweight Text-to-Image Generation Improvement with Prompt Evaluation