Off-Policy Evaluation from Logged Human Feedback

Aniruddha Bhargava, Lalit K Jain, Branislav Kveton, Ge Liu, Subhojyoti Mukherjee

TL;DR

This paper tackles the challenge of evaluating new AI models using existing human feedback data, rather than requiring costly new data collection. They introduce novel off-policy evaluation methods that can estimate how well a new model would align with human preferences, based on historical logs of human-ranked responses from a different model. This work is crucial for making AI alignment more efficient and scalable.

What Problem Does This Paper Address?

Modern AI, particularly large language models (LLMs), are increasingly aligned with human preferences through Reinforcement Learning from Human Feedback (RLHF). This process typically involves collecting new human feedback for each new model iteration. However, human feedback is expensive and time-consuming to gather. The core problem this paper addresses is: Can we evaluate a new AI model's alignment with human preferences using existing logs of human feedback, without collecting any new data? This is known as off-policy evaluation, but applied to the specific context of human preference data, which often comes in the form of ranked lists of responses.

Methods

The authors propose a framework for off-policy evaluation from logged human feedback, drawing parallels to learning-to-rank and counterfactual evaluation. They formalize the problem as estimating the value of a new policy ($\pi$) given logged data generated by a different logging policy ($\pi_0$).

Key methodological contributions include:

  • Formalization of the problem: Defining "alignment with human feedback" as the probability that the first response in a ranked list matches the human-preferred first response.
  • Novel Feedback Model: Utilizing the Plackett-Luce (PL) model (and its special case, Bradley-Terry-Luce for K=2) to model human preferences over ranked lists. This model is advantageous because it depends on the set of responses, not their exact order, which simplifies certain estimation tasks.
  • Model-Based Estimator (Direct Method - DM): This approach learns a reward model from the logged data and then uses it to estimate the value of the new policy. It's analogous to RLHF's reward modeling but directly estimates the alignment probability.
  • Model-Free Estimators (Inverse Propensity Scores - IPS): These methods re-weight the logged data to simulate data from the new policy. They introduce improvements over standard IPS by considering sets of responses rather than just ranked lists, leading to more stable estimates.
  • Doubly Robust (DR) Estimators: These combine the strengths of model-based and model-free approaches to reduce variance and improve robustness.
  • Advanced Set-Based Estimators (SetIPS, SetDR): These are novel extensions that leverage the PL model's property of depending on sets of responses, further reducing variance by treating responses as sets rather than ordered lists.
  • Optimization Framework: The paper also shows how these estimators can be used for policy optimization, by treating the optimization of the estimated value as a goal.

Datasets

The paper uses synthetic datasets generated for controlled experiments and a real-world dataset:

  • Synthetic Datasets: Used to evaluate the performance of estimators under various conditions (e.g., varying number of responses K, number of logged interactions n, and noise levels).
  • Nectar Dataset: A real-world dataset used to showcase the methods' applicability to large language models. It consists of 500 prompts, each with 7 responses from popular LLMs, treated as logged data.

Key Insights and Ideas

  • Reusing Human Feedback is Feasible: The core insight is that existing logs of human preferences can be effectively leveraged to evaluate new models, significantly reducing the need for new data collection.
  • Set-Based Estimation is Powerful: By modeling human preferences using the Plackett-Luce model, which is invariant to the order of non-preferred items, the authors develop "SetIPS" and "SetDR" estimators. These estimators show improved performance, especially when the number of ranked items (K) is close to the total number of possible items (L), by focusing on sets of responses rather than full rankings.
  • Doubly Robust Methods Offer Robustness: The DR estimators consistently perform well, demonstrating robustness to model misspecification, a common issue in real-world scenarios.
  • DM is Good for Well-Specified Models, DR for Robustness: While the Direct Method (DM) performs well when the reward model is correctly specified, the Doubly Robust (DR) estimators are more resilient to model misspecification.
  • Optimization is Possible: The proposed evaluation estimators can be directly used to optimize policies, demonstrating their practical utility beyond just evaluation.

Key Results

  • Accurate Value Estimation: The proposed estimators (especially SetDR and DR) can accurately predict the absolute values of evaluated policies on synthetic data.
  • Improved Ranking: The estimators are shown to be effective at ranking policies, outperforming baseline methods in experiments.
  • LLM Application: When applied to LLMs on the Nectar dataset, SetIPS performs best for K > 2, with DR and SetDR also performing competitively.
  • Robustness to Misspecification: DR estimators are significantly more robust to reward model misspecification compared to DM.
  • Optimization Performance: In policy optimization experiments, DPO is consistently strong, while DM and SetDR also show competitive performance, indicating the utility of the evaluation framework for optimization.

Limitations and Future Work

  • Computational Complexity: The computation of propensity scores for IPS-based methods can still be challenging when the total number of possible responses (L) is very large, due to the normalization term in the PL model.
  • Model Misspecification: While DR estimators are robust, severe misspecification can still impact performance.
  • Future Work: The authors suggest exploring other models of human feedback and reward, which could lead to further improvements in evaluation and optimization. Investigating more complex feedback structures beyond pairwise preferences is also a natural extension.

Summary updated

BibTeX
@inproceedings{bhargava2024off,
  author = {Aniruddha Bhargava and Lalit K Jain and Branislav Kveton and Ge Liu and Subhojyoti Mukherjee},
  title = {{Off-Policy Evaluation from Logged Human Feedback}},
  booktitle = {MFHAIA @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=ws3fmkCGGI},
}
Figure