Policy Evaluation for Reinforcement Learning from Human Feedback: A Sample Complexity Analysis

Zihao Li, Xiang Ji, Minshuo Chen, Mengdi WangAISTATS 2024

Introduction

Reinforcement Learning from Human Feedback (RLHF) is the primary mechanism behind the success of modern AI systems like ChatGPT. While empirically successful, the theoretical foundations of RLHF—particularly regarding the evaluation of policies using historical data (Off-Policy Evaluation, or OPE)—have remained underdeveloped. This work provides the first provable sample complexity guarantees for OPE in RLHF contexts using deep neural networks. The analysis demonstrates that learning from human preferences can achieve sample efficiency comparable to learning from directly observable numerical rewards.

Problem Statement

In traditional reinforcement learning, agents receive explicit numerical rewards. RLHF departs from this by requiring agents to infer "goodness" from human preferences, such as rankings between trajectories. Practical RLHF systems often utilize actor-critic architectures where the "critic" performs OPE to assess policy quality.

However, OPE with human feedback presents significant theoretical challenges:

  1. Hidden Rewards: The reward function is latent and must be estimated from noisy human choices.
  2. Error Propagation: Estimation errors in the reward function can cascade into the policy evaluation phase.
  3. High Dimensionality: Real-world inputs (e.g., text or images) are high-dimensional, necessitating robust function approximation.

This paper investigates whether theoretical guarantees can be established for the efficiency and accuracy of OPE when rewards are learned via deep neural networks from human preferences.

Methodology: Fitted Q-Evaluation with Human Preferences

The researchers analyze a two-stage algorithm termed Fitted Q-Evaluation with Human Preferences.

1. Reward Learning via Neural MLE

The algorithm first learns a reward function from a dataset of human preferences. It assumes human choices follow the Plackett-Luce (softmax) probability model. A deep ReLU neural network is employed to approximate the reward function using Maximum Likelihood Estimation (MLE).

Neural network architecture for reward function estimation, mapping state-action pairs (s, a) to a scalar reward through intermediate representations.

2. Fitted Q-Evaluation (FQE)

Following reward estimation, the algorithm evaluates the target policy using Fitted Q-Evaluation. This dynamic programming approach utilizes a second deep ReLU network to approximate the Q-value function through backward induction.

Notably, the analysis accounts for the unrealizable setting, where neural networks may not perfectly represent the true underlying functions. To address high-dimensional data, the authors utilize Riemannian manifold theory, assuming data resides on a lower-dimensional geometric structure.

Theoretical Insights

The study yields several critical insights into the mechanics of RLHF:

  • Reward Learning Efficiency: A key finding is that the error from learning rewards via human feedback propagates only moderately. If the reward structure is smooth and low-dimensional, a relatively small preference dataset suffices. This aligns with empirical observations where large models are effectively tuned with modest RLHF datasets.
  • Overcoming Dimensionality: By optimizing the size of the deep ReLU networks, the algorithm's efficiency scales with the intrinsic dimension of the data manifold rather than the high ambient dimension (e.g., raw pixel counts).
  • Robustness to Distribution Shift: The authors introduce "restricted $\chi^2$-divergence" to measure the gap between the data-gathering policy and the target policy. This metric is less pessimistic than traditional density ratios, explaining why off-policy RLHF remains stable in practice despite distribution shifts.

Key Results

The primary contribution is a finite-sample estimation error bound for OPE with human preferences. The error is bounded by $\tilde{\mathcal{O}}(H K^{-\frac{\alpha}{2\alpha+d}})$, where $H$ is the horizon, $K$ is the dataset size, $\alpha$ is the function smoothness, and $d$ is the intrinsic dimension.

Crucially, this rate matches standard FQE bounds where rewards are directly observable. This proves that OPE with human preferences is theoretically as sample-efficient as standard OPE, despite the additional layer of reward inference.

Discussion and Limitations

While providing a rigorous framework, the analysis relies on specific assumptions:

  • Human Choice Model: The results assume human preferences strictly adhere to the Plackett-Luce/Bradley-Terry models. Systematic human biases or irrationalities could impact these bounds.
  • Scope of Analysis: The work focuses on policy evaluation (the critic). Extending this analysis to the full policy optimization loop (the actor) remains a subject for future research.
  • Manifold Assumption: The mitigation of the curse of dimensionality depends on the state-action space forming a low-dimensional Riemannian manifold. In highly unstructured environments, sample complexity would likely increase.

Summary updated

BibTeX
@inproceedings{li2024policy,
  author = {Zihao Li and Xiang Ji and Minshuo Chen and Mengdi Wang},
  title = {{Policy Evaluation for Reinforcement Learning from Human Feedback: A Sample Complexity Analysis}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
}
Figure