Skip to content

GFlowPO: Generative Flow Network as a Language Model Prompt Optimizer

Feb 2026 · arXiv.org · Vol abs/2602.03358 · 0 citations · 67 references
Computer Science

TL;DR

This work proposes 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 and consistently outperforms recent discrete prompt optimization baselines.

Abstract

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.

View source

Similar papers

#artificial intelligence Preprint Oct 2026

Not All Drift Is a Mechanism: Tracing Prompt Adaptation in LLMs

Prompt-based adaptation offers several ways to specialize a frozen language model, ranging from natural-language prompt optimization to learned continuous prompts. These methods are usually compared through downstream performance, although similar outputs need not arise from similar internal computations. We study how...

Mikhail Aleksandrov, Nail Bashirov, M. Ivanov et al. · 0 citations
Preprint Oct 2026

Diffusion Meta-Prompting and Steering for Generalizable Foundation Model Adaptation

Prompt learning is a popular method for adapting foundation models, but learned prompts are typically task-specific and fail to generalize to new classes, domains, or compositions of tasks. In this paper, we introduce a Diffusion Meta-Prompt (DMP) model , a framework that models the distribution of learned prompts usin...

Deepak Sridhar, Yi Li, K. Bhardwaj et al. · 0 citations
#machine learning Preprint Sep 2026

PE-OPSD: Internalizing Prompt Enhancement into Flow-matching Models via On-Policy Self-Distillation

Text-to-image users often provide concise and underspecified prompts, whereas generative models benefit from detailed textual conditions for reliable instruction following. Existing systems bridge this gap with Prompt Enhancers (PEs) that rewrite raw prompts at inference time, introducing additional latency and leaving...

Ming-Hung Lin, Cheng-Fei Cai, Lin Xu et al. · 0 citations
Preprint Oct 2026

TIDE: Trajectory-Informed Skill Distillation for Efficient Text-to-Video Prompt Optimization

Text-to-video (T2V) models are highly sensitive to prompt specificity, while iterative prompt optimization typically improves generation quality only through repeated video generation and vision-language model evaluation at inference time. We propose TIDE, a framework that distills this costly search process into an in...

Cheng-Xing Zhou, Yu-Liang Huang, Jing-Wei Song · 0 citations
Preprint Oct 2026

Learning Robust Personalized Prompts for LLM-Driven Sequential Recommendation

LLM-driven sequential recommendation formulates next-item prediction as autoregressive generation conditioned on natural-language prompts. However, minor wording changes in semantically equivalent prompts can cause substantial performance fluctuations, undermining robustness and requiring costly manual prompt engineeri...

Xiao-Lin Zheng, Qi-Yong Zhong, Jia-Jie Su et al. · 0 citations
#artificial intelligence Preprint Oct 2026

Prompt-agnostic Language Models

Despite their strong performance, large language models remain highly sensitive to prompt formulation. This issue is typically addressed at inference-time through manual prompt optimization, which introduces overhead and lacks scalability. Conversely, we focus on train-time approaches that build prompt robustness into...

Frederic Sadrieh · 0 citations

Related blog posts

MIT News · Artificial Intelligence Sep 29, 2026

Who we become when we talk to machines

Professor Sherry Turkle’s new book, “Artificial Intimacy,” offers a withering critique of chatbots and the antisocial dynamics she believes they encourage.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.