Abstract
In preference-based reinforcement learning (RL), an agent interacts with the environment while receiving preferences instead of absolute feedback. While there is increasing research activity in preference-based RL, theoretical foundations have lagged behind empirical success. This paper introduces Dueling Posterior Sampling (DPS), the first PBRL algorithm to provide a theoretical regret guarantee. By sampling two policies to "duel" and observing user preferences between the resulting trajectories, DPS efficiently learns both environment dynamics and the underlying human utility function.
Introduction
Standard Reinforcement Learning (RL) relies on numerical reward signals, which are often difficult to design for complex, human-centric tasks like autonomous driving or assistive robotics. In such domains, "reward hacking" is a common failure mode where agents exploit poorly specified reward functions. Humans, however, are adept at providing pairwise preferences—indicating whether they prefer one behavior over another—rather than assigning absolute scores.
Preference-Based RL (PBRL) addresses this by learning from binary feedback. However, it introduces significant challenges, most notably temporal credit assignment: determining which specific state-action pairs within a long trajectory contributed to a user's preference. Furthermore, the agent must navigate the exploration-exploitation trade-off in both the environment dynamics and the reward model.
The Dueling Posterior Sampling (DPS) Algorithm
DPS extends the principles of Thompson Sampling (or Posterior Sampling) to the preference-based setting. The algorithm operates in episodes through a four-step process:
- The Duel: In each episode, the agent draws two independent samples from its current posterior distributions over environment dynamics and reward models. It computes the optimal policy for each sample and executes both to generate two distinct trajectories.
- Preference Feedback: A user (or oracle) provides a binary preference between the two generated trajectories.
- Credit Assignment: Using Bayesian Linear Regression, the algorithm maps trajectory-level preferences back to individual state-action rewards. It assumes the utility of a trajectory is the additive sum of rewards of its constituent state-action pairs.
- Posterior Update: The agent updates its belief (posterior) about the transition dynamics (using a Dirichlet model) and the reward function based on the new preference data.
Theoretical Guarantees
A core contribution of this work is the first asymptotic Bayesian no-regret rate for PBRL. The authors prove an expected Bayesian regret bound of $O(S\sqrt{2AT \log A})$, where $S$ is the number of states, $A$ is the number of actions, and $T$ is the total time steps. This analysis utilizes an information-theoretic framework, specifically the "information ratio," to quantify the learning progress relative to the regret incurred.
Empirical Evaluation
The algorithm was evaluated on three benchmark environments: RiverSwim (exploration focus), Random MDPs (generalizability focus), and Mountain Car (continuous control, discretized for study).
As shown in the results, DPS consistently outperforms the baseline Every-Visit Preference Monte Carlo (EPMC). Remarkably, DPS performs nearly as well as Posterior Sampling RL (PSRL), a "cheating" baseline that has direct access to the true numerical reward signals. The experiments also demonstrate that DPS is robust to varying levels of user feedback noise, controlled by the temperature parameter $c$.
Discussion and Future Work
DPS demonstrates that PBRL can be both theoretically sound and empirically robust. While the theoretical analysis assumes a linear reward model, the experiments show that DPS is "plug-and-play" and works well with more complex models like Gaussian Process Regression (GPR).
Future research directions include:
- Finite-Time Bounds: Moving beyond asymptotic guarantees to finite-time regret analysis.
- Scalability: Integrating deep learning or kernelized methods to handle high-dimensional, continuous state-action spaces.
- Non-Additive Utility: Exploring models where trajectory utility is not simply the sum of rewards, allowing for more complex human preferences.
Summary updated