让大模型理解偏好程度差异,提升对人类偏好的感知能力
Self-supervised Preference Optimization: Enhance Your Language Model with Preference Degree Awareness
- 设计自监督偏好度损失,捕捉响应间的偏好强弱差异
- 在两个数据集上显著提升现有方法性能,达当前最优水平
- 适合希望增强模型对细微偏好差异理解的研究者
近期,为大型语言模型(LLMs)的强化学习与人类反馈(RLHF)方法中,出现了用直接偏好优化(DPO)及其变体替代奖励模型的趋势。这些方法通常基于成对样本的二元交叉熵机制,即根据偏好或不偏好响应分别最小化和最大化损失。然而,这种训练策略虽省去奖励模型,也忽略了不同响应间偏好程度的差异。我们假设这是限制大模型充分理解人类偏好的关键因素。为此,提出一种新的自监督偏好优化(SPO)框架,结合自监督偏好度损失与对齐损失,帮助大模型提升对偏好程度的理解能力。在两个不同任务的常用数据集上进行广泛实验,结果表明SPO可无缝集成至现有偏好优化方法,并显著提升其性能,达到最先进水平。通过详细分析进一步验证了其有效性。代码已公开于https://github.com/lijian16/SPO。
原文摘要 · Abstract (English)
Recently, there has been significant interest in replacing the reward model in Reinforcement Learning with Human Feedback (RLHF) methods for Large Language Models (LLMs), such as Direct Preference Optimization (DPO) and its variants. These approaches commonly use a binary cross-entropy mechanism on pairwise samples, i.e., minimizing and maximizing the loss based on preferred or dis-preferred responses, respectively. However, while this training strategy omits the reward model, it also overlooks the varying preference degrees within different responses. We hypothesize that this is a key factor hindering LLMs from sufficiently understanding human preferences. To address this problem, we propose a novel Self-supervised Preference Optimization (SPO) framework, which constructs a self-supervised preference degree loss combined with the alignment loss, thereby helping LLMs improve their ability to understand the degree of preference. Extensive experiments are conducted on two widely used datasets of different tasks. The results demonstrate that SPO can be seamlessly integrated with existing preference optimization methods and significantly boost their performance to achieve state-of-the-art performance. We also conduct detailed analyses to offer comprehensive insights into SPO, which verifies its effectiveness. The code is available at https://github.com/lijian16/SPO.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。