mlsanityData to 7 Oct 2026

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

arXiv 2502.11477 ↗First posted 17 Feb 2025cs.CVcited by 16

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

  1. 2024On Discrete Prompt Optimization for Diffusion Models27 Jun
  2. 2022DiffusionDB: A Large-scale Prompt Gallery Dataset for Text-to-Image Generative Models26 Oct
  3. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
  4. 2022Hierarchical Text-Conditional Image Generation with CLIP Latents13 Apr

Other references · 59

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  4. 2022Training language models to follow instructions with human feedbackcited by 15,712
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2017Proximal Policy Optimization Algorithmscited by 14,441
  7. 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
  8. 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
  9. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
  10. 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,094
  11. 2022DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Stepscited by 1,961
  12. 2015Microsoft COCO Captions: Data Collection and Evaluation Servercited by 1,447
38 more
  1. 2023ImageReward: Learning and Evaluating Human Preferences for Text-to-Image Generationcited by 1,010
  2. 2023Training Diffusion Models with Reinforcement Learningcited by 939
  3. 2023Human Preference Score v2: A Solid Benchmark for Evaluating Human Preferences of Text-to-Image Synthesiscited by 847
  4. 2023Adversarial Diffusion Distillationcited by 741
  5. 2022Pseudo Numerical Methods for Diffusion Models on Manifoldscited by 695
  6. 2023Directly Fine-Tuning Diffusion Models on Differentiable Rewardscited by 431
  7. 2021Flow Network based Generative Models for Non-Iterative Diverse Candidate Generationcited by 384
  8. 2021GFlowNet Foundationscited by 286
  9. 2023Aligning Text-to-Image Diffusion Models with Reward Backpropagationcited by 284
  10. 2022Trajectory balance: Improved credit assignment in GFlowNetscited by 244
  11. 2022The Primacy Bias in Deep Reinforcement Learningcited by 242
  12. 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 240
  13. 2022Optimizing Prompts for Text-to-Image Generationcited by 204
  14. 2017Bridging the Gap Between Value and Policy Based Reinforcement Learningcited by 178
  15. 2023The Dormant Neuron Phenomenon in Deep Reinforcement Learningcited by 171
  16. 2022Bayesian Structure Learning with Generative Flow Networkscited by 153
  17. 2020Implicit Under-Parameterization Inhibits Data-Efficient Deep Reinforcement Learningcited by 134
  18. 2022Understanding and Preventing Capacity Loss in Reinforcement Learningcited by 124
  19. 2022Generative Flow Networks for Discrete Probabilistic Modelingcited by 113
  20. 2023A theory of continuous generative flow networkscited by 98
  21. 2023Amortizing intractable inference in large language modelscited by 94
  22. 2024Probabilistic Inference in Language Models via Twisted Sequential Monte Carlocited by 85
  23. 2023Better Training of GFlowNets with Local Credit and Incomplete Trajectoriescited by 83
  24. 2023Towards Understanding and Improving GFlowNet Trainingcited by 74
  25. 2020VarGrad: A Low-Variance Gradient Estimator for Variational Inferencecited by 73
  26. 2024Amortizing intractable inference in diffusion models for vision, language, and controlcited by 70
  27. 2023Robust Scheduling with GFlowNetscited by 67
  28. 2023Generative Flow Networks as Entropy-Regularized RLcited by 60
  29. 2024Learning diverse attacks on large language models for robust red-teaming and safety tuningcited by 54
  30. 2024Ant Colony Sampling with GFlowNets for Combinatorial Optimizationcited by 53
  31. 2024Progressive Knowledge Distillation Of Stable Diffusion XL Using Layer Level Losscited by 51
  32. 2022Generative Augmented Flow Networkscited by 48
  33. 2023Local Search GFlowNetscited by 45
  34. 2023Let the Flows Tell: Solving Graph Combinatorial Optimization Problems with GFlowNetscited by 40
  35. 2024Discrete Probabilistic Inference as Control in Multi-path Environmentscited by 40
  36. 2023Stochastic Generative Flow Networkscited by 32
  37. 2024Efficient Diversity-Preserving Diffusion Alignment via Gradient-Informed GFlowNetscited by 30
  38. 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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 9; 2026: 7.

16 papers.

Sort:

By area:

  1. 2025FlowRL: Matching Reward Distributions for LLM Reasoningcited by 38
  2. 2025RePrompt: Reasoning-Augmented Reprompting for Text-to-Image Generation via Reinforcement Learningcited by 22
  3. 2025Maestro: Self-Improving Text-to-Image Generation via Agent Orchestrationcited by 18
  4. 2025Measure gradients, not activations! Enhancing neuronal activity in deep reinforcement learningcited by 14
  5. 2025Value Gradient Guidance for Flow Matching Alignmentcited by 14
  6. 2025Nabla-R2D3: Effective and Efficient 3D Diffusion Alignment with 2D Rewardscited by 11
  7. 2025Reward-Agnostic Prompt Optimization for Text-to-Image Diffusion Modelscited by 5
  8. 2026TP-Blend: Textual-Prompt Attention Pairing for Precise Object-Style Blending in Diffusion Modelscited by 4
  9. 2025Discovering Latent Graphs with GFlowNets for Diverse Conditional Image Generationcited by 2
  10. 2025Anatomy-Aware Text-Visual Fusion with Dual-Perspective Prompts for Fine-Grained Lumbar Spine Segmentationcited by 1
  11. 2026Don't Settle at the Mode! Mitigating Diversity Collapse in Pretrained Flow Models via Feature Self-Guidancecited by 1
  12. 2026Controlling Exploration-Exploitation in GFlowNets via Markov Chain Perspectivescited by 0
4 more
  1. 2026GFlowPO: Generative Flow Network as a Language Model Prompt Optimizercited by 0
  2. 2026Curriculum Group Policy Optimization: Adaptive Sampling for Unleashing the Potential of Text-to-Image Generationcited by 0
  3. 2026ImageAuditor: Membership Inference Attack against Image-based Retrieval-Augmented Generationcited by 0
  4. 2026DOGS: Design-Space Sampling for Prompt-Driven Logo Generationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Dynamic Prompt Optimizing for Text-to-Image Generation
  2. 2023BeautifulPrompt: Towards Automatic Prompt Engineering for Text-to-Image Synthesis
  3. 2025PromptEnhancer: A Simple Approach to Enhance Text-to-Image Models via Chain-of-Thought Prompt Rewriting
  4. 2026Evolutionary Token-Level Prompt Optimization for Diffusion Models
  5. 2026PromptRL: Prompt Matters in RL for Flow-Based Image Generation
  6. 2024Batch-Instructed Gradient for Prompt Evolution:Systematic Prompt Optimization for Enhanced Text-to-Image Synthesis
  7. 2025Diversifying Long Prompt Image Generation through Structured Prompt Embedding Space Sampling
  8. 2026Na"ive PAINE: Lightweight Text-to-Image Generation Improvement with Prompt Evaluation