arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.20133cs.CLcs.AIcs.LG
收藏

Sem-DPO:缓解提示工程偏好优化中的语义不一致问题

Sem-DPO: Mitigating Semantic Inconsistency in Preference Optimization for Prompt Engineering

University of Minnesota(明尼苏达大学);Virginia Tech(弗吉尼亚理工大学);Xi’an University of Technology(西安理工大学);Lahore University of Management Sciences(拉合尔管理科学大学);University of California, Santa Cruz(加州大学圣克鲁兹分校)

Anas Mohamed, Azal Ahmad Khan, Xinran Wang, Ahmad Faraz Khan, Shuwen Ge, Saman Bahzad Khan, Ayaan Ahmad, Ali Anwar

AI总结:

针对DPO用于提示工程时存在的语义不一致问题,提出加入语义权重调整损失的Sem-DPO,证明其语义漂移有界,实验显示其在文本到图像提示优化任务上效果优于DPO及现有最优基线。

摘要:

生成式AI如今已能根据文本合成高度逼真的图像,但输出质量仍对提示的措辞方式高度敏感。直接偏好优化(DPO)为自动提示工程提供了一种轻量级的离策略替代方案,可替代强化学习,但它的令牌级正则化未能管控语义不一致问题——即获得更高偏好分数的提示仍可能偏离用户的预期含义。\n 我们提出了Sem-DPO,这是DPO的一种变体,既能保持语义一致性,又保留了DPO的简洁性与高效性。Sem-DPO基于获胜提示与原始提示的差异程度,使用权重调整DPO损失,降低语义错位训练样本的影响。我们首次给出了偏好调优提示生成器的语义漂移解析界,证明Sem-DPO能将学习到的提示限制在原始文本的可证明有界邻域内。在三个标准文本到图像提示优化基准以及两个语言模型上,Sem-DPO的CLIP相似度比DPO高8-12%,人类偏好分数(HPSv2.1、PickScore)比DPO高5-9%,同时性能也优于现有最优基线。这些发现表明,加入语义加权的强基线方法应成为提示优化研究的新标准,并为语言模型中更广泛的语义感知偏好优化奠定基础。

英文摘要:

Generative AI can now synthesize strikingly realistic images from text, yet output quality remains highly sensitive to how prompts are phrased. Direct Preference Optimization (DPO) offers a lightweight, off-policy alternative to RL for automatic prompt engineering, but its token-level regularization leaves semantic inconsistency unchecked as prompts that win higher preference scores can still drift away from the user's intended meaning. We introduce Sem-DPO, a variant of DPO that preserves semantic consistency yet retains its simplicity and efficiency. Sem-DPO adjusts the DPO loss using a weight based on how different the winning prompt is from the original, reducing the impact of training examples that are semantically misaligned. We provide the first analytical bound on semantic drift for preference-tuned prompt generators, showing that Sem-DPO keeps learned prompts within a provably bounded neighborhood of the original text. On three standard text-to-image prompt-optimization benchmarks and two language models, Sem-DPO achieves 8-12% higher CLIP similarity and 5-9% higher human-preference scores (HPSv2.1, PickScore) than DPO, while also outperforming state-of-the-art baselines. These findings suggest that strong flat baselines augmented with semantic weighting should become the new standard for prompt-optimization studies and lay the groundwork for broader, semantics-aware preference optimization in language models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑