arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.15477cs.LG

上下文内排序偏好优化

In-context Ranking Preference Optimization

UC San Diego(加州大学圣迭戈分校);Adobe Research(Adobe研究)

Junda Wu, Rohan Surana, Zhouhang Xie, Yiran Shen, Yu Xia, Tong Yu, Ryan A. Rossi, Prithviraj Ammanabrolu, Julian McAuley

AI总结:

针对上下文内稀疏成对反馈的排序任务,提出IRPO框架,通过可微的位置聚合目标优化离散排序指标,理论保证方差减少,实验优于标准DPO。

摘要:

近期直接偏好优化(DPO)的发展使得大型语言模型(LLMs)能够通过最大化偏好响应与非偏好响应之间的间隔,充当隐式排序模型。在实践中,用户对此类列表的反馈通常涉及在上下文中识别几个相关项目,而不是为每个可能的项目对提供详细的成对比较。此外,许多复杂的信息检索任务,如对话代理和摘要系统,关键依赖于将最高质量的输出排在顶部,这强调了支持自然且灵活的用户反馈形式的必要性。为了解决上下文设置中成对反馈有限且稀疏的挑战,我们提出了一个上下文内排序偏好优化(IRPO)框架,该框架基于推理过程中构建的排序列表直接优化LLMs。为了进一步捕获灵活的反馈形式,IRPO通过结合项目的相关性和它们在列表中的位置来扩展DPO目标。联合建模这些方面并非易事,因为排序指标本质上是离散且不可微的,使得直接优化变得困难。为了克服这一点,IRPO引入了一个基于成对项目偏好的位置聚合的可微目标,从而实现对离散排序指标的有效基于梯度的优化。我们进一步提供了理论见解,表明IRPO(i)自动强调模型与参考排序之间分歧较大的项目,并且(ii)将其梯度与重要性采样估计器联系起来,产生具有减少方差的无偏估计器。实证结果表明,IRPO在排序性能上优于标准DPO方法,突显了其在将LLMs与直接上下文内排序偏好对齐方面的有效性。

英文摘要:

Recent developments in Direct Preference Optimization (DPO) allow large language models (LLMs) to function as implicit ranking models by maximizing the margin between preferred and non-preferred responses. In practice, user feedback on such lists typically involves identifying a few relevant items in context rather than providing detailed pairwise comparisons for every possible item pair. Moreover, many complex information retrieval tasks, such as conversational agents and summarization systems, critically depend on ranking the highest-quality outputs at the top, emphasizing the need to support natural and flexible forms of user feedback. To address the challenge of limited and sparse pairwise feedback in the in-context setting, we propose an In-context Ranking Preference Optimization (IRPO) framework that directly optimizes LLMs based on ranking lists constructed during inference. To further capture flexible forms of feedback, IRPO extends the DPO objective by incorporating both the relevance of items and their positions in the list. Modeling these aspects jointly is non-trivial, as ranking metrics are inherently discrete and non-differentiable, making direct optimization difficult. To overcome this, IRPO introduces a differentiable objective based on positional aggregation of pairwise item preferences, enabling effective gradient-based optimization of discrete ranking metrics. We further provide theoretical insights showing that IRPO (i) automatically emphasizes items with greater disagreement between the model and the reference ranking, and (ii) links its gradient to an importance sampling estimator, yielding an unbiased estimator with reduced variance. Empirical results show IRPO outperforms standard DPO approaches in ranking performance, highlighting its effectiveness in aligning LLMs with direct in-context ranking preferences.

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

↑