Best Policy Learning from Trajectory Preference Feedback

Akhil Agnihotri, Rahul Jain, Deepak Ramachandran, Zheng Wen

TL;DR

This paper introduces Posterior Sampling for Preference Learning ($\mathsf{PSPL}$), a novel algorithm designed to find the optimal policy in preference-based reinforcement learning (PbRL) by combining static offline datasets with active online exploration. By directly optimizing for the best final policy (minimizing simple regret) and explicitly accounting for rater competence, $\mathsf{PSPL}$ avoids the pitfalls of reward hacking and significantly outperforms standard offline alignment techniques like DPO and IPO.

What Problem Does This Paper Address?

Reinforcement Learning from Human Feedback (RLHF) is the standard approach for aligning large generative models (like LLMs) with human intent. However, standard RLHF relies heavily on learning a scalar reward model, making it highly vulnerable to reward misspecification and "reward hacking."

Preference-based RL (PbRL) offers a more robust alternative by learning directly from pairwise comparisons over entire trajectories. In practice, alignment pipelines usually start with a large, static offline dataset. However, these datasets are often biased, out-of-distribution, or collected from subpar reviewers.

To maximize learning efficiency under a constrained budget, researchers need a way to systematically supplement this offline data with online exploration. Furthermore, while standard RL focuses on minimizing cumulative regret (maximizing performance during learning), generative model alignment cares about Best Policy Identification (BPI)—finding the single best final policy, which mathematically translates to minimizing simple regret.

Methods

The authors propose Posterior Sampling for Preference Learning ($\mathsf{PSPL}$), an algorithm inspired by Top-Two Thompson Sampling. $\mathsf{PSPL}$ maintains posterior distributions over both the unknown reward model parameters and the environment transition dynamics.

The core framework operates in two stages:

  1. Prior Construction: It utilizes the offline dataset to build an "informed prior" before the online phase begins. Crucially, the preference model incorporates two parameters for rater competence: $\beta$ (deliberateness/surety of the decision) and $\lambda$ (the rater's knowledgeability of the true reward).
  2. Online Pure Exploration: During the online phase, the agent samples two distinct parameter sets from its posteriors, computes their corresponding optimal policies, rolls out a trajectory for each, and requests binary preference feedback to update its posteriors.

Because exact posterior updates suffer from a loss of conjugacy (due to the logistic link function in preference modeling), the authors introduce Bootstrapped $\mathsf{PSPL}$. This practical approximation uses Bayesian bootstrapping to perturb the Maximum A Posteriori (MAP) loss function with random multiplicative weights, making the algorithm computationally tractable.

Datasets

The algorithm was evaluated on both simulation control environments and a real-world generative task:

  • Synthetic Benchmarks: The classic MountainCar and RiverSwim environments, modified to provide trajectory-level preference feedback rather than numeric rewards.
  • Image Generation Benchmark: The Pick-a-Pic dataset, which contains over 500,000 human preference examples across 35,000 distinct prompts for text-to-image generation.

Key Insights and Ideas

  • Online Fine-Tuning is Essential for BPI: Purely offline alignment methods like Direct Preference Optimization (DPO) and Identity Preference Optimization (IPO) quickly plateau. Active online exploration is required to accurately identify the optimal policy.
  • Rater Competence Matters: Explicitly modeling the rater's competence ($\beta, \lambda$) allows the agent to correctly weight imperfect or noisy feedback. The authors prove that as rater competence approaches expert levels, simple regret drops sharply.
  • Count-Based Coverability: Instead of relying on complex, mathematically stubborn "concentratability coefficients" typical in hybrid RL literature, this framework elegantly utilizes simple state-action visit counts from the offline dataset to bootstrap the online phase.

Key Results

  • Theoretical Guarantees: The paper provides the first Bayesian simple regret bounds for PbRL in unknown MDPs, proving that the simple regret converges to zero at a rate of $\tilde{O}(\sqrt{S^2AH^3K^{-1}})$.
  • Simulation Performance: In MountainCar and RiverSwim, $\mathsf{PSPL}$ achieved significantly lower simple regret compared to Dueling Posterior Sampling (DPS) and Logistic Preference-based RL (LPbRL).
Comparison of PSPL with DPO and IPO showing the necessity of online finetuning for BPI.
  • Image Generation Quality: When applied to the Pick-a-Pic dataset, $\mathsf{PSPL}$ consistently generated images with higher final rewards (lower simple regret) than the DPS baseline across various text prompts.

Limitations and Future Work

While $\mathsf{PSPL}$ demonstrates strong robustness to parameter misspecification in experiments, the theoretical framework assumes knowledge of the rater's competence parameters ($\lambda, \beta$). Although the authors outline empirical methods to estimate these via maximum likelihood estimation or empirical distribution entropy, tight theoretical bounds for fully unsupervised competence estimation remain open.

Additionally, for the text-to-image tasks, the authors clustered prompts to manage tractability. A natural next step is extending the framework to handle prompt information directly as a prior within the neural network for true prompt-conditioned inference.

Summary updated

BibTeX
@inproceedings{agnihotri2026best,
  author = {Akhil Agnihotri and Rahul Jain and Deepak Ramachandran and Zheng Wen},
  title = {{Best Policy Learning from Trajectory Preference Feedback}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=BLyDBJkina},
}
Figure