arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.07471cs.CL
收藏

桥接并建模成对数据中的相关性以用于直接偏好优化

Bridging and Modeling Correlations in Pairwise Data for Direct Preference Optimization

The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));The Hong Kong University of Science and Technology(香港科技大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Yuxin Jiang, Bo Huang, Yufei Wang, Xingshan Zeng, Liangyou Li, Yasheng Wang, Xin Jiang, Lifeng Shang, Ruiming Tang, Wei Wang

AI总结:

针对DPO中成对胜负响应彼此孤立、相关性弱的问题,提出BMC框架,通过构造伪获胜响应并动态利用策略模型置信度学习token级相关性,在多类任务上显著优于DPO等基线。

摘要:

直接偏好优化(DPO)是一种被广泛采用的离线偏好优化算法,旨在利用成对偏好数据使大型语言模型(LLM)与人类期望的行为对齐。然而,成对数据中获胜响应和失败响应的生成通常是相互孤立的,导致二者之间的相关性较弱,并造成次优的对齐性能。为解决这一问题,我们提出了一个用于桥接并建模成对数据中相关性的有效框架,名为 BMC。首先,我们通过有针对性的修改提升成对偏好信号的一致性和信息量:以获胜响应为参考来改进失败响应,从而合成一个伪获胜响应。其次,我们发现仅靠 DPO 不足以建模这些相关性并捕捉细微变化。因此,我们提出在训练过程中动态利用策略模型的置信度来学习 token 级相关性。在问答、数学和指令遵循任务上的综合实验证明了我们方法的有效性,其显著优于包括 DPO 在内的强基线。此外,我们深入的定量分析揭示了本方法性能优于 DPO 的原因,并展示了其对其他 DPO 变体的通用性。我们在 https://github.com/YJiangcm/BMC 发布了代码仓库。

英文摘要:

Direct preference optimization (DPO), a widely adopted offline preference optimization algorithm, aims to align large language models (LLMs) with human-desired behaviors using pairwise preference data. However, the generation of the winning response and the losing response within pairwise data are typically isolated, leading to weak correlations between them as well as suboptimal alignment performance. To address this issue, we propose an effective framework for Bridging and Modeling Correlations in pairwise data, named BMC. Firstly, we increase the consistency and informativeness of the pairwise preference signals through targeted modifications, synthesizing a pseudo-winning response by improving the losing response with the winning response as a reference. Secondly, we identify that DPO alone is insufficient to model these correlations and capture nuanced variations. Therefore, we propose learning token-level correlations by dynamically leveraging the policy model's confidence during training. Comprehensive experiments on QA, math, and instruction-following tasks demonstrate the effectiveness of our approach, significantly surpassing competitive baselines, including DPO. Additionally, our in-depth quantitative analysis reveals the reasons behind our method's superior performance over DPO and showcases its versatility to other DPO variants. We release our repository at https://github.com/YJiangcm/BMC.

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

↑