Preference-based Reinforcement Learning with Finite-Time Guarantees

Yichong Xu, Ruosong Wang, Lin F. Yang, Aarti Singh, Artur Dubrawski

Introduction

Reinforcement Learning (RL) typically relies on numerical reward functions to guide agent behavior. However, specifying these functions is often a bottleneck in real-world applications. Poorly designed rewards can lead to "reward hacking," where agents exploit environment loopholes to maximize scores without fulfilling the intended objective. Preference-based Reinforcement Learning (PbRL) offers an alternative: agents learn from binary comparisons between trajectories (e.g., "Trajectory A is better than Trajectory B"), which are often more intuitive for humans to provide and more robust than scalar rewards.

Despite its practical appeal, PbRL has historically lacked rigorous theoretical foundations. Prior methods were either asymptotic—guaranteeing success only as time approaches infinity—or suffered from complexity that scaled exponentially with the planning horizon ($H$). This paper bridges the gap by providing the first finite-time theoretical analysis for PbRL, introducing two novel algorithms with provable sample complexity bounds.

Theoretical Framework and Algorithms

The authors address two distinct learning scenarios: the presence and absence of a simulator.

PPS: Preference-based Policy Search (With Simulator)

In environments where a simulator allows the agent to reset to any state, the authors propose PPS. This algorithm employs a dynamic programming approach, working backward from the final time step. At each state, the problem is treated as a "dueling bandit" task. To compare two actions, the agent rolls out trajectories using the estimated optimal policies for all future steps. This structured approach allows for efficient policy refinement.

PEPS: Preference-based Exploration and Policy Search (Without Simulator)

The "online" setting, where no simulator is available, presents a significant challenge: without rewards, how does an agent explore? The authors introduce PEPS, which decouples exploration from evaluation.

  1. Exploration via Synthetic Rewards: The agent uses synthetic rewards (e.g., 1 for a target state, 0 otherwise) and a standard RL algorithm (like EULER) to learn how to reliably reach specific states.
  2. Evaluation via Dueling Bandits: Once a state is reachable, the agent uses a dueling bandit algorithm to determine the optimal action at that state based on trajectory preferences.

A critical assumption underlying these methods is that the preference probability follows a link function (such as the Bradley-Terry-Luce model), where the likelihood of preferring one trajectory over another is strictly related to the difference in their latent, underlying rewards.

Experimental Evaluation

The proposed algorithms were tested against two baselines: Dueling Posterior Sampling (DPS) and Every-visit Preference Monte Carlo (EPMC). Evaluations were conducted in two synthetic environments: a $4 \times 4$ Grid World and a Random MDP with 20 states and 5 steps.

Experimental results comparing PEPS against DPS and EPMC baselines across GridWorld and Random MDP environments with varying noise levels ($c$).

As shown in the figures above, PEPS consistently outperforms the baselines. In the Grid World task, PEPS achieves the optimal reward faster and with significantly lower variance. In the more complex Random MDP environment, the performance gap is even more pronounced, with PEPS exceeding the baselines by more than two standard deviations.

Key Insights

  • The Transitivity Trap: The paper highlights a theoretical nuance: deterministic preferences (always choosing the higher reward) can lead to non-transitive cycles (like Rock-Paper-Scissors), making an optimal policy ill-defined. Stochastic preferences, while noisier, are actually more conducive to theoretical convergence.
  • Decoupling Signal: By using synthetic rewards for navigation, the authors demonstrate that the problem of reaching a state can be successfully separated from the problem of evaluating actions at that state.
  • Complexity Split: The analysis distinguishes between step complexity (environment interactions) and comparison complexity (human queries). This is a vital distinction for practical PbRL, where human feedback is often the most expensive resource.

Conclusion and Future Directions

This work establishes the first PAC (Probably Approximately Correct) bounds for PbRL. For the simulator-based PPS, the comparison complexity is shown to scale as $O(\frac{H^2 SA}{\epsilon^2} \log(S/\delta))$, providing a concrete guarantee on the number of samples needed to find an $\epsilon$-optimal policy.

While a major step forward, the current analysis is limited to tabular MDPs with discrete state and action spaces. Future research is needed to scale these guarantees to continuous environments using function approximation. Additionally, moving from PAC learning to "regret minimization"—optimizing performance during the learning process—remains an important open challenge in the field of preference-based learning.

Summary updated

BibTeX
@inproceedings{xu2020preference,
  author = {Yichong Xu and Ruosong Wang and Lin F. Yang and Aarti Singh and Artur Dubrawski},
  title = {{Preference-based Reinforcement Learning with Finite-Time Guarantees}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure