Active Preference Optimization for Sample Efficient RLHF

Nirjhar Das, Souradip Chakraborty, Aldo Pacchiano, Sayak Ray Chowdhury

TL;DR

This paper tackles the problem of sample inefficiency in Reinforcement Learning from Human Feedback (RLHF) for Large Language Models (LLMs). They propose Active Preference Optimization (APO), a novel algorithm that adaptively selects the most informative data points for human preference labeling, significantly improving alignment efficiency compared to random sampling. Their theoretical analysis provides lower and upper bounds on the sub-optimality gap, demonstrating APO's near-optimal performance.

What Problem Does This Paper Address?

Aligning Large Language Models (LLMs) with human preferences is crucial for their safe and effective deployment. Reinforcement Learning from Human Feedback (RLHF) is a popular method for this, but it relies heavily on collecting human preferences, which are expensive and time-consuming to acquire. Current RLHF approaches often collect these preferences by randomly sampling contexts (prompts) and then generating pairs of responses for human comparison. This paper argues that random sampling is inefficient, especially under a limited budget for data collection. They show theoretically that uniform sampling can lead to a constant sub-optimality gap, meaning the aligned model might never reach the performance of an optimally aligned model, even with more data. This highlights the need for smarter, active data collection strategies that prioritize the most informative samples.

Methods

The core contribution of this paper is the Active Preference Optimization (APO) algorithm. APO frames RLHF as a contextual dueling bandit problem. Instead of random sampling, APO iteratively:

  1. Estimates the reward model: It uses collected preferences to update a reward model, typically a Bradley-Terry-Luce (BTL) model.
  2. Selects informative contexts and action pairs: This is the key innovation. APO uses a measure of uncertainty (derived from the confidence ellipsoid of the reward model parameters) to select the context and the pair of generated actions that will provide the most information for improving the reward model. This is done by maximizing an "uncertainty bonus."
  3. Trains the policy: Once enough data is collected, a policy is trained using the learned reward model.

The paper also provides theoretical guarantees for APO, establishing lower bounds on the sub-optimality gap for any RLHF algorithm and upper bounds for APO itself. They also generalize their approach to non-parametric preference models (APO-Gen).

Datasets

The authors evaluate their method on two datasets:

  • IMDb sentiment dataset: Used for a controlled sentiment generation task.
  • Anthropic-HH dataset: Used for a single-turn dialogue task.

They do not introduce new benchmarks but rather use existing ones to demonstrate APO's effectiveness against prior methods.

Key Insights and Ideas

  • Uniform sampling is suboptimal for RLHF: The paper provides a theoretical proof that random context sampling can lead to a constant sub-optimality gap, meaning the alignment might be fundamentally limited. This is a crucial theoretical result for the field.
  • Active learning is key for sample efficiency: By adaptively selecting the most uncertain contexts and action pairs, APO can achieve significantly better alignment with fewer human preferences.
  • Uncertainty-based exploration is effective: The core of APO lies in its principled approach to measuring and leveraging uncertainty in the reward model to guide data collection.
  • Theoretical guarantees match practice: The proposed algorithm APO achieves theoretical sub-optimality bounds that are near-optimal, suggesting a strong theoretical foundation for the empirical gains.

Key Results

  • Theoretical bounds: The paper establishes a lower bound of $\Omega(d/\sqrt{T})$ for the sub-optimality gap of any RLHF algorithm with $T$ samples and a $d$-dimensional parameter space. APO achieves an upper bound of $\tilde{O}(d/\sqrt{T})$ (up to log factors and a non-linearity constant $\kappa$), demonstrating near-optimal scaling.
  • Empirical performance:
    • On the Controlled Sentiment Generation Task, APO's learned reward model achieved significantly higher accuracy than random sampling, even with only 5% of the data compared to random's 40%. The APO-aligned policy also showed better sentiment alignment and a higher win rate against baselines.
  • On the Anthropic-HH dataset, APO consistently outperformed random sampling in reward model accuracy and policy alignment, achieving a 55:40 win rate against the SFT policy compared to random's 40:55. APO also outperformed other active learning baselines like APL and AE-DPO.

Limitations and Future Work

  • Dependence on $\kappa$: While APO's sub-optimality gap scales well with the parameter dimension $d$ and sample size $T$, the dependence on the non-linearity parameter $\kappa$ is still a factor. The authors conjecture that this dependence might be improved and leave it as future work.
  • Generalization to non-parametric models: APO-Gen, the generalization to non-parametric preference models, achieves a slightly looser bound ($\tilde{O}(\sqrt{d\kappa}/\sqrt{T})$) compared to the BTL model. Further research could explore tighter bounds for these more general settings.
  • Practical implementation: The paper mentions a practical version of APO that uses batches and a different uncertainty measure (inverted sample covariance matrix). Further exploration of practical implementation details and their impact on performance could be beneficial.

Summary updated

BibTeX
@inproceedings{das2025active,
  author = {Nirjhar Das and Souradip Chakraborty and Aldo Pacchiano and Sayak Ray Chowdhury},
  title = {{Active Preference Optimization for Sample Efficient RLHF}},
  booktitle = {ECML/PKDD},
  year = {2025},
  doi = {10.1007/978-3-032-06096-9\_6},
}
Figure