[Paper Review] Fine-Tuning Language Models with Advantage-Induced Policy Alignment
This paper proposes Advantage-Induced Policy Alignment (APA), a novel reinforcement learning algorithm for fine-tuning language models using human feedback. By minimizing a squared error loss between the policy and a target policy derived from estimated advantages, APA achieves superior sample efficiency, stable training, and reduced hyperparameter sensitivity compared to PPO and AWR, consistently outperforming them on the HH and StackExchange datasets while maintaining tighter control over policy divergence.
Reinforcement learning from human feedback (RLHF) has emerged as a reliable approach to aligning large language models (LLMs) to human preferences. Among the plethora of RLHF techniques, proximal policy optimization (PPO) is of the most widely used methods. Despite its popularity, however, PPO may suffer from mode collapse, instability, and poor sample efficiency. We show that these issues can be alleviated by a novel algorithm that we refer to as Advantage-Induced Policy Alignment (APA), which leverages a squared error loss function based on the estimated advantages. We demonstrate empirically that APA consistently outperforms PPO in language tasks by a large margin, when a separate reward model is employed as the evaluator. In addition, compared with PPO, APA offers a more stable form of control over the deviation from the model's initial policy, ensuring that the model improves its performance without collapsing to deterministic output. In addition to empirical results, we also provide a theoretical justification supporting the design of our loss function.
Motivation & Objective
- To address instability, poor sample efficiency, and high hyperparameter sensitivity in PPO-based reinforcement learning from human feedback (RLHF).
- To develop a more stable and efficient alternative to PPO and advantage-weighted regression (AWR) for aligning language models with human preferences.
- To provide theoretical justification for a new loss function based on advantage estimation that avoids importance ratio estimation.
- To empirically validate the method on standard benchmarks using both reward model scores and GPT-4 preference annotations.
Proposed method
- APA uses a squared error loss to directly align the language model's policy with a target policy composed of the initial policy and a correction term based on estimated advantages.
- The target policy is constructed using the initial policy and the advantage function estimated from online rollouts, enabling direct policy improvement without importance ratio estimation.
- The method avoids PPO’s clipping mechanism and AWR’s multiplicative reweighting by using a population loss that depends only on the current policy and the estimated advantage.
- The algorithm introduces a single hyperparameter λ to control KL divergence from the initial policy, simplifying hyperparameter tuning compared to PPO’s multiple clipping and coefficient parameters.
- The loss function is designed to provably converge to the optimal policy under fixed advantage estimation, providing theoretical grounding for its design.
- Training is performed in an online setting where new rollouts are generated during optimization, enabling continuous feedback and adaptation.
Experimental results
Research questions
- RQ1Can a loss function based on advantage estimation improve sample efficiency and training stability in RLHF for language models compared to PPO and AWR?
- RQ2Does avoiding importance ratio estimation in policy updates lead to more stable and reliable policy optimization in language model alignment?
- RQ3How does APA’s single-hyperparameter KL control compare to PPO’s multi-hyperparameter KL controller in terms of performance and robustness?
- RQ4To what extent does APA maintain policy diversity and avoid mode collapse compared to PPO, especially in smaller models?
- RQ5How does APA perform in offline RL settings where the dataset is fixed and distribution shift may occur?
Key findings
- APA achieves significantly higher reward scores on the HH and StackExchange datasets compared to PPO and AWR when fine-tuned on the same number of samples, demonstrating superior sample efficiency.
- APA maintains a more stable training trajectory than PPO, avoiding the sudden performance degradation observed in PPO when policy divergence exceeds safe thresholds.
- The KL divergence between the final policy and the initial policy is consistently lower and more predictable in APA than in PPO, indicating better control over policy deviation.
- APA requires only one major hyperparameter (λ for KL control), whereas PPO requires careful tuning of multiple parameters including clipping ranges and KL coefficient, making APA easier to calibrate.
- In offline settings, APA suffers from performance degradation due to distribution shift, while AWR remains more robust, indicating a key limitation of APA in offline RL scenarios.
- Empirical results using GPT-4 to label human preferences confirm that models fine-tuned with APA generate more preferred responses than those fine-tuned with PPO.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.