Reinforcement Learning from Human Feedback with Active Queries

Kaixuan Ji, Jiafan He, Quanquan Gu

Abstract

Aligning large language models (LLM) with human preference plays a key role in building modern generative models and can be achieved by reinforcement learning from human feedback (RLHF). Despite their superior performance, current RLHF approaches often require a large amount of human-labelled preference data, which is expensive to collect. In this paper, inspired by the success of active learning, we address this problem by proposing query-efficient RLHF methods. We first formalize the alignment problem as a contextual dueling bandit problem and design an active-query-based proximal policy optimization (APPO) algorithm with an $\tilde{O}(d^2/\Delta)$ instance-dependent regret bound and an $\tilde{O}(d^2/\Delta^2)$ query complexity, where $d$ is the dimension of feature space and $\Delta$ is the sub-optimality gap over all the contexts. We then propose ADPO, a practical version of our algorithm based on direct preference optimization (DPO) and apply it to fine-tuning LLMs. Our experiments show that ADPO, while only making about half of queries for human preference, matches the performance of DPO, establishing it as a data-efficient alternative to DPO.

Introduction: The Data Bottleneck in RLHF

Reinforcement Learning from Human Feedback (RLHF) has become the cornerstone of aligning large language models (LLMs) with human values and preferences. By training models on human-ranked outputs, developers can steer generative AI toward helpfulness and safety. However, this process is constrained by a significant bottleneck: the high cost and labor-intensive nature of collecting human preference data. Standard methods like Direct Preference Optimization (DPO) typically rely on large, static datasets where every pair of responses is labeled, regardless of how much new information that label provides to the model.

This paper addresses this inefficiency by introducing Active Direct Preference Optimization (ADPO). Inspired by active learning, ADPO identifies the most informative examples for human labeling, allowing models to achieve state-of-the-art performance with a fraction of the data.

Methodology: From Theory to Practice

The researchers approach the alignment problem from two angles: a theoretical foundation and a practical implementation.

  1. APPO (Active Proximal Policy Optimization): This is the theoretical foundation of the paper. The authors formalize the alignment problem as a contextual dueling bandit problem and design an algorithm that uses an uncertainty-aware criterion. APPO calculates a "confidence bonus" based on the feature space; human queries are only triggered when the model's uncertainty exceeds a specific threshold. Crucially, the authors prove that APPO's regret bound is independent of the action space size, a major theoretical advancement for LLMs with vast output possibilities.
  2. ADPO (Active Direct Preference Optimization): To translate these theoretical insights into a scalable solution for billion-parameter models, the researchers developed ADPO. Unlike the complex matrix operations required for APPO, ADPO uses a practical heuristic for confidence: the reward difference between two candidate responses. If the model predicts a narrow gap between response A and response B, it signals high uncertainty, and a human label is requested. Conversely, if the gap is wide, the model generates a pseudo-label based on its own high-confidence prediction. This dual approach ensures training stability while focusing human effort on the most challenging "decision boundary" cases.

Experimental Framework

The efficacy of ADPO was tested using two prominent open-source base models: Zephyr-7B-Beta (Mistral-based) and Zephyr-7B-Gemma (Gemma-based). Training utilized the Ultrafeedback-binarized and dpo-mix-7k datasets. Performance was evaluated across a suite of rigorous benchmarks, including ARC for reasoning, TruthfulQA for factuality, and HellaSwag for commonsense. Subjective quality was assessed via MT-Bench and AlpacaEval 2.0, using GPT-4 as an automated judge to measure win rates against baseline models.

Results: Efficiency and Performance Gains

The experimental results confirm that ADPO significantly outperforms standard DPO while requiring substantially fewer human queries. As shown in the table below, ADPO consistently achieves higher average scores across reasoning and factuality benchmarks while using as little as 25% to 50% of the preference data.

Performance comparison of ADPO against standard DPO and other baselines across multiple benchmarks and query counts.

Key highlights from the results include:

  • Massive Data Savings: For the Zephyr-Beta model, ADPO required only 16,000 queries to surpass the performance of a standard DPO model trained on 62,000 queries—a reduction of nearly 75%.
  • Superior Performance: Despite the reduced data, ADPO achieved higher scores on several benchmarks. For instance, on TruthfulQA, Zephyr-Beta-ADPO scored 52.25, a marked improvement over the 45.15 achieved by standard DPO.
  • Robustness: Subjective evaluations on AlpacaEval 2.0 showed that ADPO matches DPO's win rates without artificially inflating response lengths, proving it doesn't just "game" the length-bias of automated evaluators.

Ablation studies further revealed that pseudo-labeling is critical. Simply filtering out "easy" examples without using pseudo-labels led to performance degradation, suggesting that maintaining the model's existing knowledge on clear-cut cases is essential for overall stability.

Discussion and Future Directions

ADPO represents a significant step toward more sustainable and efficient LLM alignment. By focusing human attention on the most ambiguous examples and leveraging model confidence for the rest, ADPO achieves superior results with a fraction of the typical data requirements.

However, some challenges remain. While the paper provides a strong proof for linear models (APPO), bridging the theoretical analysis to non-linear, deep learning architectures remains an open challenge. Additionally, ADPO introduces a threshold hyperparameter ($\gamma$) that requires initial tuning. Future work may explore real-world deployments where human-in-the-loop dynamics, such as fatigue or evolving preferences, could introduce new variables into the active query process.

Summary updated

BibTeX
@article{ji2025reinforcement,
  author = {Kaixuan Ji and Jiafan He and Quanquan Gu},
  title = {{Reinforcement Learning from Human Feedback with Active Queries}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=EScatQaRxz},
}
Figure