COPF: Continual Learning Human Preference through Optimal Policy Fitting

Han Zhang, Lin Gui, Yuanzhao Zhai, Hui Wang, Yu Lei, Ruifeng XuarXiv 2023 · DOI

Abstract

Aligning Large Language Models (LLMs) with evolving human preferences typically requires expensive full retraining to avoid catastrophic forgetting. We present COPF (Continual Optimal Policy Fitting), an RL-free algorithm designed for sequential preference learning. By deriving a closed-form optimal policy distribution and regularizing the model's output against historical distributions, COPF enables incremental adaptation without the instability of Reinforcement Learning from Human Feedback (RLHF). Our results on task- and domain-incremental benchmarks demonstrate that COPF effectively mitigates forgetting and can even achieve positive backward transfer.

Introduction

As human values and task requirements shift, LLMs must adapt dynamically. Traditional alignment methods like RLHF are resource-intensive and "brittle," often requiring a complete pipeline of supervised fine-tuning, reward modeling, and PPO optimization. When new preferences emerge, practitioners face a choice between computationally massive full retraining or naive fine-tuning, which leads to Catastrophic Forgetting (CF)—the loss of previously learned capabilities. COPF addresses this by enabling efficient, continual alignment.

Methodology: Optimal Policy Fitting

COPF moves away from the complex reinforcement learning loop by treating alignment as a distributional fitting problem.

The COPF framework utilizes function regularization and optimal policy fitting to enable continual learning across sequential tasks.

Key Innovations

  • Optimal Policy Fitting: Instead of iterative optimization, COPF derives a target "optimal policy" distribution directly from human rankings. The model is then trained to "fit" this distribution using standard supervised objectives.
  • Function Regularization: To prevent the model from drifting away from previously mastered tasks, COPF employs regularization at the output level. It ensures the current policy's distribution remains consistent with the optimal distributions of prior tasks.
  • RL-Free Optimization: By re-normalizing distributions over sampled responses, COPF bypasses the intractable partition function $Z(x)$, making the process more stable and efficient than PPO-based methods.
  • Synthetic Rewards: The method translates human preference orders into rewards using either Linear or Gaussian models, turning qualitative rankings into quantitative training signals.

Experimental Setup

We evaluated COPF on two primary benchmarks:

  1. Task Incremental Learning (TIL): Sequential learning of three distinct tasks: Helpful and Harmless (HH-RLHF), Reddit summarization (TL;DR), and sentiment generation (IMDB).
  2. Domain Incremental Learning (DIL): Adaptation across 18 diverse domains using the Standard Human Preference (SHP) dataset.

Results and Discussion

COPF significantly outperforms traditional continual learning baselines such as EWC, MAS, and DER++.

Evaluation scores across sequential tasks. COPF (blue line) maintains high performance on earlier tasks (left: HH-RLHF) while successfully learning new ones (right: Reddit TL;DR).

On the TIL benchmark, COPF achieved an Average Accuracy (AA) of 0.863, compared to 0.807 for standard online fine-tuning. Notably, it demonstrated a Backward Transfer (BWT) of 0.006. In the world of continual learning, a positive BWT is highly desirable as it indicates that learning subsequent tasks actually improved performance on earlier ones. In domain-incremental settings, the method remained robust even when two-thirds of the tasks were unlabeled, leveraging its internal scoring module to rank potential responses.

Conclusion

COPF provides a sustainable alternative to full retraining for LLM alignment. By framing preference learning as a fitting problem and utilizing function-based regularization, it maintains model integrity across sequential updates. This approach offers a path toward keeping AI assistants helpful, harmless, and up-to-date without the prohibitive costs of repeated full-scale training.

Summary updated

BibTeX
@misc{zhang2023copf,
  author = {Han Zhang and Lin Gui and Yuanzhao Zhai and Hui Wang and Yu Lei and Ruifeng Xu},
  title = {{COPF: Continual Learning Human Preference through Optimal Policy Fitting}},
  year = {2023},
  eprint = {2310.15694},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.15694},
}
Figure