Active Preference Learning for Large Language Models

William Muldrew, Peter Hayes, Mingtian Zhang, David Barber

Fine-tuning Large Language Models (LLMs) with human or AI preferences is expensive and time-consuming. This paper introduces an Active Preference Learning (APL) framework built on top of Direct Preference Optimization (DPO) to actively select the most informative prompt-completion pairs for labeling. By prioritizing examples where the model's implicit reward is confidently wrong, this approach boosts fine-tuning win-rates by 1-6% compared to random sampling, making significantly better use of limited labeling budgets.

The Bottleneck in Alignment

To align LLMs with human intent, researchers typically use techniques like Reinforcement Learning from Human Feedback (RLHF) or the simpler Direct Preference Optimization (DPO). Both rely on pairwise preference datasets (e.g., "Completion A is better than Completion B").

Gathering these preference labels—whether from human annotators or a highly capable AI oracle like GPT-4—is a major bottleneck in terms of cost and time. Currently, most pipelines build these datasets upfront by randomly sampling prompts and having the oracle grade them.

This paper asks a critical question: Can we be smarter about which prompts and completions we ask the oracle to grade? The authors tackle this by framing preference fine-tuning as a pool-based active learning problem, aiming to maximize model performance using the smallest possible labeling budget.

An Active Learning Loop for DPO

The authors build an outer active learning loop around the standard DPO training process. Instead of training offline on a static dataset, the model learns iteratively:

  1. Sample a large pool of unlabeled prompts.
  2. Generate pairs of completions using the latest version of the fine-tuned model.
  3. Score these pairs using an acquisition function.
  4. Select the top $M$ highest-scoring pairs and send them to the GPT-4 oracle for preference labeling.
  5. Fine-tune the model on the updated dataset using DPO, and repeat.

The core novelty lies in the acquisition functions used to score the pairs:

  • Predictive Entropy: Measures how uncertain the language model is about the generated text (a standard approach in active learning).
  • Preference Model Certainty (The Novel Approach): DPO mathematically implies a hidden "reward model." This function measures the difference in implicit rewards between the two generated completions. A large difference means the model is highly confident that one completion is better than the other.
  • Hybrid: Filters a large batch by entropy, then ranks the top subset by preference certainty.

Key Insights: Finding the "Confidently Wrong"

The most surprising insight from the research is that picking examples where the implicit reward model is highly certain works best.

Why? Because if the model is highly confident but the oracle disagrees, the DPO loss function generates a massive, highly informative gradient update. It forces the model to rapidly correct its deepest misconceptions.

Histograms of preference predictions

As seen in the histograms above, the preference certainty strategy (middle rows) actively targets the extremes of the prediction distribution. This successfully surfaces a much higher volume of "confidently incorrect" predictions compared to the normal distribution yielded by random sampling (top row).

Furthermore, the authors found that generation uncertainty does not equal preference uncertainty. Simply picking prompts that the model is uncertain about generating (Predictive Entropy) barely outperformed random sampling. Just because a model doesn't know what to say doesn't mean the resulting preference label will be highly informative for alignment.

Key Results

The authors evaluated their approach on two standard datasets: IMDB (completing a movie review with positive sentiment) and TLDR (generating high-quality Reddit summaries). GPT-4 was used as an AI oracle to provide both the training labels and the final head-to-head evaluations against baseline completions.

Win-rate comparison across acquisition strategies
  • Superiority of Certainty: The "Preference Certainty" (green) and hybrid (red) acquisition strategies consistently outperformed both random sampling (grey) and entropy-based sampling (blue) across both datasets.
  • Quantitative Gains: The active learning approach improved final win-rates by 1% to 6% on average compared to the random baseline.
  • On the IMDB task (using a 774M parameter GPT-2 model), the certainty strategy achieved a ~0.90 win-rate at 768 examples, compared to ~0.88 for random.
  • On the harder TLDR task (using an 805M Pythia model), it achieved a 0.60 win-rate at 512 examples, compared to 0.56 for random.

Limitations and Future Work

While highly effective for data efficiency, standard active learning requires re-initializing and retraining the model from scratch on the entire acquired dataset at each step. This compute overhead is difficult to scale to massive LLMs.

To address this, the authors suggest an "online" variant where the model simply takes a single gradient step on the newly acquired batch without resetting its weights, showing promising preliminary results. Combining this active learning loop with Parameter-Efficient Fine-Tuning (PEFT) techniques like LoRA would also make frequent model updates much cheaper. Finally, future work involves prompt engineering to make smaller, cheaper models (like GPT-3.5) reliable enough to act as the active learning oracle, further reducing the pipeline's cost.

Summary updated

BibTeX
@inproceedings{muldrew2024active,
  author = {William Muldrew and Peter Hayes and Mingtian Zhang and David Barber},
  title = {{Active Preference Learning for Large Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=CTgEV6qgUy},
}
Figure