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

基于人类反馈的强化学习的自适应偏好缩放

Adaptive Preference Scaling for Reinforcement Learning with Human Feedback

Georgia Tech(佐治亚理工学院);Amazon(亚马逊公司);Texas A&M University(德克萨斯农工大学)

Ilgee Hong, Zichong Li, Alexander Bukharin, Yixiao Li, Haoming Jiang, Tianbao Yang, Tuo Zhao

AI总结:

本文提出一种基于分布鲁棒优化的自适应偏好损失方法,通过为不同偏好对分配自适应缩放参数提升奖励函数灵活性,并兼容DPO等框架,实验证明其能提高策略性能并简化超参调整。

摘要:

基于人类反馈的强化学习(RLHF)是一种通过从人类偏好数据中学习奖励来使AI系统与人类价值观对齐的流行方法。然而,由于各种原因,此类数据通常采用对轨迹段对进行排序的形式,这无法捕捉不同对之间偏好强度的变化。在本文中,我们提出了一种新颖的自适应偏好损失,以分布鲁棒优化(DRO)为基础,旨在解决这种偏好强度的不确定性。通过将自适应缩放参数纳入每对的损失中,我们的方法提高了奖励函数的灵活性。具体而言,它为偏好模糊的对分配较小的缩放参数,从而产生更可比的奖励;为偏好明确的对分配较大的缩放参数,从而产生更明显的奖励。在计算上,我们提出的损失函数相对于每个缩放参数是严格凸且单变量的,使其能够通过简单的二阶算法进行高效优化。我们的方法用途广泛,可以很容易地适应各种偏好优化框架,包括直接偏好优化(DPO)。我们在机器人控制和使用大语言模型(LLMs)的自然语言生成方面的实验表明,我们的方法不仅提高了策略性能,而且使奖励函数选择与策略优化更紧密地对齐,简化了超参数调整过程。

英文摘要:

Reinforcement learning from human feedback (RLHF) is a prevalent approach to align AI systems with human values by learning rewards from human preference data. Due to various reasons, however, such data typically takes the form of rankings over pairs of trajectory segments, which fails to capture the varying strengths of preferences across different pairs. In this paper, we propose a novel adaptive preference loss, underpinned by distributionally robust optimization (DRO), designed to address this uncertainty in preference strength. By incorporating an adaptive scaling parameter into the loss for each pair, our method increases the flexibility of the reward function. Specifically, it assigns small scaling parameters to pairs with ambiguous preferences, leading to more comparable rewards, and large scaling parameters to those with clear preferences for more distinct rewards. Computationally, our proposed loss function is strictly convex and univariate with respect to each scaling parameter, enabling its efficient optimization through a simple second-order algorithm. Our method is versatile and can be readily adapted to various preference optimization frameworks, including direct preference optimization (DPO). Our experiments with robotic control and natural language generation with large language models (LLMs) show that our method not only improves policy performance but also aligns reward function selection more closely with policy optimization, simplifying the hyperparameter tuning process.

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

↑