arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.14103cs.LG
收藏

在线自偏好语言模型

Online Self-Preferring Language Models

National University of Defense Technology(国防科技大学);State Key Laboratory of Complex & Critical Software Environment(复杂与关键软件环境国家重点实验室);Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳));Peng Cheng Laboratory(鹏城实验室)

Yuanzhao Zhai, Zhuo Zhang, Kele Xu, Hanyang Peng, Yue Yu, Dawei Feng, Cheng Yang, Bo Ding, Huaimin Wang

AI总结:

本文提出在线自偏好(OSP)语言模型,通过自生成响应配对与软偏好交叉熵损失利用偏好强度,实现更稳健、参数高效的对齐,并在多个数据集上达到最先进性能。

摘要:

与人类偏好数据集对齐对于大型语言模型(LLMs)的成功至关重要。基于人类反馈的强化学习(RLHF)采用成本高昂的奖励模型,为策略内采样的响应提供反馈。近期,直接在数据集中拟合具有二元偏好的响应的离线方法已成为替代方案。然而,现有方法并未显式建模偏好强度信息,而该信息对于区分不同的响应配对至关重要。为克服此局限,我们提出在线自偏好(OSP)语言模型,从自生成的响应配对和自评判的偏好强度中学习。对于每个提示及其对应的自生成响应,我们引入一种排序配对方法,构建多个带有偏好强度信息的响应配对。随后,我们提出软偏好交叉熵损失以利用此类信息。实验上,我们证明利用偏好强度对于避免过拟合和提升对齐性能至关重要。在两个广泛使用的人类偏好数据集上,OSP在多种指标上实现了最先进的对齐性能。在有限的离线数据可用及泛化到域外任务时,OSP参数高效且比主流在线方法RLHF更稳健。此外,由具备自偏好能力的LLMs建立的OSP语言模型,可在无外部监督的情况下高效自我改进。

英文摘要:

Aligning with human preference datasets has been critical to the success of large language models (LLMs). Reinforcement learning from human feedback (RLHF) employs a costly reward model to provide feedback for on-policy sampling responses. Recently, offline methods that directly fit responses with binary preferences in the dataset have emerged as alternatives. However, existing methods do not explicitly model preference strength information, which is crucial for distinguishing different response pairs. To overcome this limitation, we propose Online Self-Preferring (OSP) language models to learn from self-generated response pairs and self-judged preference strengths. For each prompt and corresponding self-generated responses, we introduce a ranked pairing method to construct multiple response pairs with preference strength information. We then propose the soft-preference cross-entropy loss to leverage such information. Empirically, we demonstrate that leveraging preference strength is crucial for avoiding overfitting and enhancing alignment performance. OSP achieves state-of-the-art alignment performance across various metrics in two widely used human preference datasets. OSP is parameter-efficient and more robust than the dominant online method, RLHF when limited offline data are available and generalizing to out-of-domain tasks. Moreover, OSP language models established by LLMs with proficiency in self-preferring can efficiently self-improve without external supervision.

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

↑