arXiv:2603.19311cs.CL2026-03

用人类偏好优化提示词,无需标注数据且更简洁高效。

PrefPO: Pairwise Preference Prompt Optimization

  • 基于大模型判断输出优劣,迭代优化提示词
  • 在9个难题任务中达到或超越现有最优效果
  • 生成的提示更短、少重复,抗干扰能力更强

提示工程有效但耗时,现有方法多依赖标注数据且生成冗长重复的提示。本文提出PrefPO,受人类反馈强化学习启发,仅需初始提示和自然语言标准即可优化。它利用大模型判别器对输出进行成对偏好判断,并反馈给优化器迭代改进。在9个BIG-Bench Hard任务和新构建的IFEval-Hard子集上评估,PrefPO在6/9任务上达到或超过当前最优(如GEPA、MIPRO、TextGrad),在IFEval-Hard上表现接近TextGrad(82.4% vs 84.5%)。其优势在于可适配有无标注数据场景;无标签时仍能接近有标签性能。此外,相比其他方法,其提示长度减少3-5倍,重复内容降低至34%以下。人工与模型评分均显示其提示质量更高。最后发现部分优化器存在提示作弊现象,而PrefPO仅37%的脆弱性,远低于TextGrad的86%。

原文摘要 · Abstract (English)

Prompt engineering is effective but labor-intensive, motivating automated optimization methods. Existing methods typically require labeled datasets, which are often unavailable, and produce verbose, repetitive prompts. We introduce PrefPO, a minimal prompt optimization approach inspired by reinforcement learning from human feedback (RLHF). Its preference-based approach reduces the need for labeled data and hyperparameter tuning-only a starting prompt and natural language criteria are needed. PrefPO uses an LLM discriminator to express pairwise preferences over model outputs and provide feedback to an LLM optimizer, iteratively improving performance. We evaluate PrefPO on 9 BIG-Bench Hard (BBH) tasks and IFEval-Hard, a newly-curated, challenging subset of IFEval. PrefPO matches or exceeds SOTA methods, including GEPA, MIPRO, and TextGrad, on 6/9 tasks and performs comparably to TextGrad on IFEval-Hard (82.4% vs 84.5%). Unlike other methods, PrefPO can optimize in both labeled and unlabeled settings. Without labels, PrefPO closely matches its labeled performance on 6/9 tasks, proving effective without ground truth. PrefPO also improves prompt hygiene: we find existing methods produce prompts 14.7x their original length or with 34% repetitive content; PrefPO reduces these issues by 3-5x. Furthermore, both LLM and human judges rate PrefPO's prompts higher than TextGrad's. Finally, we identify prompt hacking in prompt optimizers, where methods game evaluation criteria, and find PrefPO is susceptible at half the rate of TextGrad (37% vs 86%), generating fewer brittle, misaligned prompts.

提示优化大模型偏好学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。