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