CPPO: Continual Learning for Reinforcement Learning with Human Feedback

Han Zhang, Yu Lei, Lin Gui, Min Yang, Yulan He, Hui Wang, Ruifeng Xu

Reinforcement Learning from Human Feedback (RLHF) is the engine behind modern AI alignment, enabling pre-trained Large Language Models (LLMs) to better match human preferences. However, traditional RLHF has a major flaw: it is static. In the real world, human preferences shift across different domains, topics, and time periods.

Currently, updating an LLM with new feedback typically requires retraining the model from scratch on a combined dataset. This process is computationally expensive, slow, and raises data privacy concerns. Conversely, simply fine-tuning the model on new data often leads to catastrophic forgetting, where the model loses its previous alignment while trying to learn the new one—a classic example of the stability-plasticity dilemma.

To address this, researchers have introduced Continual Proximal Policy Optimization (CPPO), a novel framework that allows LLMs to adapt to changing human preferences continuously without needing full retraining.

Continual Proximal Policy Optimization (CPPO)

CPPO modifies the standard PPO algorithm by introducing a sample-wise weighting strategy. Instead of treating every generated response (rollout) equally during training, CPPO assigns two distinct weights to each sample:

  1. $\alpha$ (Policy Learning Weight): Regulates how much the model should learn from this specific sample.
  2. $\beta$ (Knowledge Retention Weight): Regulates how strongly the model should anchor to its previous state for this sample to prevent forgetting.

The core innovation of CPPO lies in how these weights are determined. The framework categorizes rollout samples into five distinct types based on their received reward and generation probability:

Categorization of rollout samples based on reward and generation probability.
  • High-performance (High reward, high probability): Strengthen both learning and retention.
  • Overfitting (Low reward, high probability): Increase learning to "unlearn" the bad habit, but decrease retention.
  • High-variance (High reward, low probability): Increase learning to capture this rare, high-quality behavior.
  • Noisy (Low reward, low probability): Decrease both weights to safely ignore this "junk" data.
  • Normal: Apply standard updates.

Furthermore, to make this process memory-efficient, the authors replaced the standard KL-divergence penalty—which requires storing massive probability tensors for the entire vocabulary—with a Knowledge Retention (KR) penalty. This KR penalty uses the L2 distance of the log-probabilities of only the true tokens, reducing memory overhead by several orders of magnitude and making continual RLHF highly practical.

Experimental Highlights

The researchers evaluated CPPO across several diverse tasks, including domain-incremental learning on Reddit TL;DR summarization datasets and the Stanford Human Preferences (SHP) dataset.

Superior Alignment and Stability

Standard PPO is often unstable because it attempts to learn from noisy or overfitted samples with the same intensity as high-quality ones. CPPO’s ability to "throttle" updates for noisy samples makes the training process significantly smoother.

Reward over training steps, demonstrating CPPO's stability compared to standard PPO.

As shown in the reward trajectories, vanilla PPO often experiences a crash in reward scores after a certain number of steps. In contrast, CPPO maintains steady, stable growth. On the Reddit TL;DR task, the learnable version of CPPO achieved a reference Reward Model score of 3.207, significantly outperforming vanilla PPO’s 2.612.

Human Preference and Backward Transfer

In a Likert-scale human evaluation on 100 posts, CPPO-trained models were preferred over PPO-trained models by a margin of 8.23%, approaching the quality of ChatGPT-generated summaries. Interestingly, CPPO also demonstrated instances of positive backward transfer, meaning that learning a new, subsequent task actually improved the model's performance on a previously learned task.

Limitations and Future Directions

While CPPO presents a significant step forward for continual alignment, the authors note a few areas for future exploration:

  • Reward Model Over-optimization: Like all RLHF methods, CPPO is susceptible to "gaming" the reward model. If the underlying reward model has flaws, CPPO will efficiently learn to exploit them.
  • Scaling to Frontier Models: The framework was tested on 1.3B and 6.7B parameter models; observing how these weighting strategies behave on 70B+ parameter models remains an open question.
  • Optimization Complexity: The "Learnable" version of CPPO requires an extra optimization step for the weights, though current experiments show this adds negligible time to the overall training process.

Ultimately, CPPO offers a robust, memory-efficient path toward LLMs that can continuously evolve alongside human values, mitigating the need for costly retraining cycles.

Summary updated

BibTeX
@inproceedings{zhang2024cppo,
  author = {Han Zhang and Yu Lei and Lin Gui and Min Yang and Yulan He and Hui Wang and Ruifeng Xu},
  title = {{CPPO: Continual Learning for Reinforcement Learning with Human Feedback}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=86zAUE80pP},
}
Figure