Skip to main content
QUICK REVIEW

[Paper Review] Pairwise Proximal Policy Optimization: Harnessing Relative Feedback for LLM Alignment

Tianhao Wu, Banghua Zhu|arXiv (Cornell University)|Sep 30, 2023
Topic ModelingComputer Science4 citations
TL;DR

This paper proposes Pairwise Proximal Policy Optimization (P3O), a trajectory-wise reinforcement learning algorithm that directly optimizes on comparative rewards from human preference labels, eliminating the need for value function approximation and reward scaling. P3O achieves superior KL-reward trade-offs and human preference alignment compared to PPO and DPO, outperforming them in both proxy reward and GPT-4 win rates.

ABSTRACT

Large Language Models (LLMs) can acquire extensive world knowledge through pre-training on large corpora. However, due to exposure to low-quality data, LLMs may exhibit harmful behavior without aligning with human values. The dominant approach for steering LLMs towards beneficial behavior involves Reinforcement Learning with Human Feedback (RLHF), with Proximal Policy Optimization (PPO) serving as the default RL optimizer. Despite its effectiveness, PPO has limitations when optimizing rewards trained from comparison-based loss. Primarily, PPO is not invariant to equivalent reward functions containing identical preference information due to the need to calibrate the reward scale. Additionally, PPO's necessity for token-wise updates introduces complexity in both function approximation and algorithm design compared to trajectory-wise optimization. This paper proposes a new framework, reinforcement learning with relative feedback, and a novel trajectory-wise policy gradient algorithm, Pairwise Proximal Policy Optimization (P3O) that operates directly on comparative rewards. We show theoretically that P3O is invariant to equivalent rewards and avoids the complexity of PPO. Empirical evaluations demonstrate that P3O outperforms PPO in the KL-Reward trade-off and can align with human preferences as well as or better than prior methods. In summary, this work introduces a simpler yet effective approach for aligning LLMs to human preferences through relative feedback.

Motivation & Objective

  • To address the instability and reward scale sensitivity of PPO when optimizing reward models trained with comparative losses like Bradley-Terry.
  • To develop a reinforcement learning framework that natively operates on relative feedback from human preference comparisons, avoiding the need for absolute reward scaling.
  • To design a simpler, trajectory-wise policy gradient algorithm that avoids complex components like value function estimation and Generalized Advantage Estimation (GAE).
  • To improve the KL-reward trade-off in LLM alignment while maintaining strong alignment with human preferences.
  • To establish invariance to equivalent reward functions under preference-preserving transformations, ensuring consistent optimization outcomes.

Proposed method

  • Proposes a new framework, Reinforcement Learning with Relative Feedback, where the policy is updated using only pairwise reward differences between response pairs.
  • Introduces Pairwise Proximal Policy Optimization (P3O), a trajectory-wise policy gradient algorithm that directly optimizes on comparative rewards without requiring a value function $V$ or advantage estimation.
  • Employs a proximal policy update mechanism that maintains policy stability while operating on relative feedback, ensuring invariance to constant shifts in reward functions.
  • Uses a joint clipping strategy (P3O-V2) to balance policy update magnitude and improve KL control, outperforming separate clipping (P3O-V1).
  • Adapts the policy gradient update to work directly with proxy reward models trained via Bradley-Terry Loss, which are invariant to constant reward shifts.
  • Introduces online-DPO as a baseline for comparison, demonstrating that even online-DPO is not fully invariant to equivalent rewards, unlike P3O.

Experimental results

Research questions

  • RQ1Can a trajectory-wise policy gradient algorithm be designed that is invariant to equivalent reward functions derived from the same preference data?
  • RQ2Does eliminating value function approximation and reward scaling improve training stability and alignment performance in LLM alignment?
  • RQ3How does P3O compare to PPO and DPO in terms of the KL-reward trade-off and human preference alignment?
  • RQ4Can a pairwise, relative feedback-based RL algorithm achieve better alignment than token-wise, absolute feedback-based methods like PPO?
  • RQ5Is there a significant performance gap between proxy reward win rates and human preference evaluations (e.g., GPT-4), and can P3O close this gap?

Key findings

  • P3O-V2 achieves a higher reward than PPO and DPO while maintaining significantly lower KL-divergence, demonstrating superior KL-reward trade-off on both TL;DR and HH datasets.
  • P3O achieves a 57.0% GPT-4 win rate against PPO and a 69.3% win rate against SFT, outperforming DPO, which has a 45.4% GPT-4 win rate despite higher reward.
  • DPO achieves a higher proxy reward than P3O but suffers from 25% higher KL-divergence, indicating a trade-off between reward and policy consistency.
  • P3O-V1 achieves slightly higher reward than P3O-V2 but with worse KL efficiency, leading to the selection of P3O-V2 as the primary baseline for comparison.
  • The KL-Reward frontier shows that P3O-V2 dominates PPO and DPO across both model sizes on the HH dataset, with a consistent 0.1–0.3 higher reward in the optimal range.
  • Empirical results confirm that P3O is invariant to equivalent reward functions, while PPO is not, validating the theoretical claim of reward function invariance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.