mlsanityData to 7 Oct 2026

GFlowPO: Generative Flow Network as a Language Model Prompt Optimizer

arXiv 2602.03358 ↗First posted 3 Feb 2026cs.AI cs.CL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Finding effective prompts for language models (LMs) is critical yet notoriously difficult: the prompt space is combinatorially large, rewards are sparse due to expensive target-LM evaluation. Yet, existing RL-based prompt optimizers often rely on on-policy updates and a meta-prompt sampled from a fixed distribution, leading to poor sample efficiency. We propose GFlowPO, a probabilistic prompt optimization framework that casts prompt search as a posterior inference problem over latent prompts regularized by a meta-prompted reference-LM prior. In the first step, we fine-tune a lightweight prompt-LM with an off-policy Generative Flow Network (GFlowNet) objective, using a replay-based training policy that reuses past prompt evaluations to enable sample-efficient exploration. In the second step, we introduce Dynamic Memory Update (DMU), a training-free mechanism that updates the meta-prompt by injecting both (i) diverse prompts from a replay buffer and (ii) top-performing prompts from a small priority queue, thereby progressively concentrating the search process on high-reward regions. Across few-shot text classification, instruction induction benchmarks, and question answering tasks, GFlowPO consistently outperforms recent discrete prompt optimization baselines.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 47 of its 55 references that are in the map. First posted on arXiv 3 Feb 2026.

Builds on

47 of 55 references.

References · 47

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  5. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  6. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  7. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  8. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  9. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  10. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
  11. 2016Variational Inference: A Review for Statisticianscited by 1,466
  12. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
35 more
  1. 2023Large Language Models as Optimizerscited by 830
  2. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
  3. 2023The Falcon Series of Open Language Modelscited by 526
  4. 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
  5. 2021Flow Network based Generative Models for Non-Iterative Diverse Candidate Generationcited by 384
  6. 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
  7. 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
  8. 2021GFlowNet Foundationscited by 286
  9. 2022Trajectory balance: Improved credit assignment in GFlowNetscited by 244
  10. 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 226
  11. 2017Bridging the Gap Between Value and Policy Based Reinforcement Learningcited by 178
  12. 2022Instruction Induction: From Few Examples to Natural Language Task Descriptionscited by 152
  13. 2022Learning GFlowNets from partial episodes for improved convergence and stabilitycited by 129
  14. 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Modelscited by 127
  15. 2024Large Language Models to Enhance Bayesian Optimizationcited by 127
  16. 2022Generative Flow Networks for Discrete Probabilistic Modelingcited by 113
  17. 2024The Butterfly Effect of Altering Prompts: How Small Changes and Jailbreaks Affect Large Language Model Performancecited by 97
  18. 2023Amortizing intractable inference in large language modelscited by 94
  19. 2023Better Training of GFlowNets with Local Credit and Incomplete Trajectoriescited by 83
  20. 2020VarGrad: A Low-Variance Gradient Estimator for Variational Inferencecited by 73
  21. 2023Robust Scheduling with GFlowNetscited by 67
  22. 2025A Systematic Survey of Automatic Prompt Optimization Techniquescited by 61
  23. 2024POSIX: A Prompt Sensitivity Index For Large Language Modelscited by 56
  24. 2024Learning diverse attacks on large language models for robust red-teaming and safety tuningcited by 54
  25. 2023Prompt Engineering a Prompt Engineercited by 53
  26. 2022Toward Human Readable Prompt Tuning: Kubrick's The Shining is a good movie, and a good prompt too?cited by 49
  27. 2023Local Search GFlowNetscited by 45
  28. 2022PromptBoosting: Black-Box Text Classification with Ten Forward Passescited by 36
  29. 2025Trajectory Balance with Asynchrony: Decoupling Exploration and Learning for Fast, Scalable LLM Post-Trainingcited by 27
  30. 2023Pre-Training and Fine-Tuning Generative Flow Networkscited by 16
  31. 2025Learning to Sample Effective and Diverse Prompts for Text-to-Image Generationcited by 16
  32. 2024Revisiting OPRO: The Limitations of Small-Scale LLMs as Optimizerscited by 14
  33. 2024GReaTer: Gradients over Reasoning Makes Smaller Language Models Strong Prompt Optimizerscited by 12
  34. 2025PRL: Prompts from Reinforcement Learningcited by 9
  35. 2025Active Attacks: Red-teaming LLMs via Adaptive Environmentscited by 5

Built on by

Not cited yet.