GFlowPO:将生成流网络用作语言模型提示优化器
GFlowPO: Generative Flow Network as a Language Model Prompt Optimizer
GFlowPO 提出一种概率式提示优化框架,把提示搜索建模为受 meta-prompt 参考语言模型先验约束的隐提示后验推断问题。该方法先用 off-policy 的 GFlowNet 目标微调轻量提示语言模型,并通过回放复用历史提示评估提升样本效率;再用免训练的 Dynamic Memory Update(DMU)机制更新 meta-prompt。
arXiv:2602.03358v2 Announce Type: replace 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org