Skip to main content
QUICK REVIEW

[论文解读] A Minimaximalist Approach to Reinforcement Learning from Human Feedback

Gokul Swamy, Christoph Dann|arXiv (Cornell University)|Jan 8, 2024
Experimental Behavioral Economics StudiesSocial Sciences被引用 3
一句话总结

本文提出自对弈偏好优化(SPO),一种极简但稳健的强化学习算法,通过直接使用人类反馈优化策略,无需训练奖励模型或对抗性训练。通过将偏好学习建模为策略与其自身之间的零和博弈,SPO 在非马尔可夫性、非传递性和随机性偏好下可证明收敛至最小最大胜者(Minimax Winner),在连续控制任务中展现出优于基于奖励模型方法的样本效率和鲁棒性。

ABSTRACT

We present Self-Play Preference Optimization (SPO), an algorithm for reinforcement learning from human feedback. Our approach is minimalist in that it does not require training a reward model nor unstable adversarial training and is therefore rather simple to implement. Our approach is maximalist in that it provably handles non-Markovian, intransitive, and stochastic preferences while being robust to the compounding errors that plague offline approaches to sequential prediction. To achieve the preceding qualities, we build upon the concept of a Minimax Winner (MW), a notion of preference aggregation from the social choice theory literature that frames learning from preferences as a zero-sum game between two policies. By leveraging the symmetry of this game, we prove that rather than using the traditional technique of dueling two policies to compute the MW, we can simply have a single agent play against itself while maintaining strong convergence guarantees. Practically, this corresponds to sampling multiple trajectories from a policy, asking a preference or teacher model to compare them, and then using the proportion of wins as the reward for a particular trajectory. We demonstrate that on a suite of continuous control tasks, we are able to learn significantly more efficiently than reward-model based approaches while maintaining robustness to the intransitive and stochastic preferences that frequently occur in practice when aggregating human judgments.

研究动机与目标

  • 解决基于奖励模型的 RLHF 的局限性,例如奖励模型误差导致的不稳定性,以及对非传递性或随机性人类偏好的处理能力差。
  • 开发一种简单、稳定且理论基础扎实的替代方法,用于现有基于偏好的强化学习方法,避免对抗性训练和奖励模型训练。
  • 在复杂偏好结构(包括非马尔可夫性和非传递性偏好)下实现高效且鲁棒的策略优化,这些偏好在人类反馈中普遍存在。
  • 在一般偏好条件下证明收敛至最小最大胜者,同时保持实际可实现性。

提出的方法

  • 该方法将偏好学习建模为策略与其自身之间的零和博弈,利用对称性避免双策略训练。
  • 将轨迹的奖励计算为:在与评分者或偏好模型的成对比较中,该轨迹被偏好于的同策略轨迹的比例。
  • 算法使用单一策略生成多条轨迹,收集成对偏好,并使用计算出的基于偏好的奖励,通过标准强化学习方法(如 SAC 或 PPO)更新策略。
  • 该方法基于社会选择理论,采用最小最大胜者(MW)作为任意偏好结构(包括非传递性和随机性)下的最优策略。
  • 在温和假设下证明了向 MW 的收敛性,即使偏好是非马尔可夫性或与单一奖励函数不一致时亦成立。
  • 该方法避免了奖励模型训练和对抗性不稳定性,因此比以往的两阶段或对偶方法更简单且更鲁棒。
Figure 1 : The standard pipeline (left) for preference-based RL / RLHF involves training a reward model based on a dataset of pairwise preferences and then optimizing it via RL. We introduce SPO (right), an iterative method that instead optimizes directly based on preference feedback provided by a r
Figure 1 : The standard pipeline (left) for preference-based RL / RLHF involves training a reward model based on a dataset of pairwise preferences and then optimizing it via RL. We introduce SPO (right), an iterative method that instead optimizes directly based on preference feedback provided by a r

实验结果

研究问题

  • RQ1我们能否在不训练奖励模型或使用不稳定的对抗性训练的情况下,实现从人类反馈中鲁棒且高效的策略优化?
  • RQ2当通过自对弈和成对偏好比较进行训练时,单一策略能否有效学习最小最大胜者?
  • RQ3该方法在非传递性、随机性和非马尔可夫性偏好下表现如何?这些偏好在现实世界的人类反馈中很常见。
  • RQ4自对弈形式是否在保持强理论收敛保证的同时,也具备实际有效性?
  • RQ5在复杂偏好结构下,所提出方法的样本效率与基于奖励模型的方法相比如何?

主要发现

  • SPO 在连续控制任务中显著优于基于奖励模型的方法,即使偏好具有随机性或非传递性,其样本效率也更高。
  • 该方法在非传递性偏好设置中成功学习到最小最大胜者,例如在类似石头剪刀布的三臂老虎机中,其结果与理论预测一致。
  • 在非马尔可夫性偏好设置中(例如 Ant-v3 中基于角度和距离的偏好),SPO 学习到的策略能最大化前四分之三轨迹的奖励,同时避免在最后四分之一轨迹中受到惩罚,尽管使用的是马尔可夫性策略。
  • SPO 对偏好噪声和随机性具有鲁棒性,避免了基于奖励模型方法中常见的多样性崩溃问题。
  • 实验结果表明,SPO 在复杂偏好结构下,无论是在离线还是在线设置中,其学习稳定性和最终性能均优于基线方法。
  • 理论分析证实,SPO 在一般偏好条件下(包括非传递性和非马尔可夫性偏好)收敛至最小最大胜者。
(a) Transitive Preferences
(a) Transitive Preferences

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。