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

用领域不变奖励模型对齐大语言模型

Aligning LLMs with Domain Invariant Reward Models

Cornell University(康奈尔大学)

David Wu, Sanjiban Choudhury

AI总结:

本文提出领域不变奖励模型框架,通过领域损失与源损失双重优化,利用源领域偏好数据训练可迁移到目标领域的奖励模型,并在跨语言、噪声、少样本和任务复杂度四种迁移设置中验证了有效性。

摘要:

在偏好数据不可用的领域中,将大语言模型(LLMs)对齐到人类偏好是一项具有挑战性的任务。我们通过利用从较简单的源领域收集的反馈来解决为目标领域学习奖励模型的问题,在源领域中人类偏好更容易获得。我们的核心见解是,尽管领域之间可能存在显著差异,但人类偏好传达的是与领域无关的概念,这些概念可以被奖励模型有效捕捉。我们提出 \method,这是一个通过优化双重损失来训练领域不变奖励模型的框架:一个领域损失用于最小化源分布与目标分布之间的差异,一个源损失用于在源领域上优化偏好。我们表明 \method 是一种通用方法,并在 4 种不同设置中对其进行了评估和分析:(1)跨语言迁移(准确率:$0.621 \rightarrow 0.661$),(2)干净到噪声(准确率:$0.671 \rightarrow 0.703$),(3)少样本到全量迁移(准确率:$0.845 \rightarrow 0.920$),以及(4)简单到复杂任务迁移(相关性:$0.508 \rightarrow 0.556$)。我们的代码、模型和数据可在 \url{https://github.com/portal-cornell/dial} 获取。

英文摘要:

Aligning large language models (LLMs) to human preferences is challenging in domains where preference data is unavailable. We address the problem of learning reward models for such target domains by leveraging feedback collected from simpler source domains, where human preferences are easier to obtain. Our key insight is that, while domains may differ significantly, human preferences convey \emph{domain-agnostic} concepts that can be effectively captured by a reward model. We propose \method, a framework that trains domain-invariant reward models by optimizing a dual loss: a domain loss that minimizes the divergence between source and target distribution, and a source loss that optimizes preferences on the source domain. We show \method is a general approach that we evaluate and analyze across 4 distinct settings: (1) Cross-lingual transfer (accuracy: $0.621 \rightarrow 0.661$), (2) Clean-to-noisy (accuracy: $0.671 \rightarrow 0.703$), (3) Few-shot-to-full transfer (accuracy: $0.845 \rightarrow 0.920$), and (4) Simple-to-complex tasks transfer (correlation: $0.508 \rightarrow 0.556$). Our code, models and data are available at \url{https://github.com/portal-cornell/dial}.

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

↑