Online Bandit Learning with Offline Preference Data

Akhil Agnihotri, Rahul Jain, Deepak Ramachandran, Zheng WenarXiv 2024 · DOI

Abstract

Reinforcement Learning from Human Feedback (RLHF) is central to aligning Large Language Models, yet a gap remains between initial offline preference learning and subsequent online reinforcement learning. This paper introduces warmPref-PS (Preference-Warmed Posterior Sampling), the first online bandit algorithm designed to leverage offline preference data by explicitly modeling expert competence. By characterizing experts through knowledgeability and deliberateness, warmPref-PS significantly reduces online regret and improves data efficiency. Our results demonstrate that even small amounts of offline data can substantially jumpstart online performance, providing a principled framework for hybrid preference-reward learning.

Introduction

The standard RLHF pipeline involves two distinct phases: an offline phase where models learn from human preferences, and an online phase where they are fine-tuned using reinforcement learning. However, traditional online bandit algorithms are not designed to ingest offline preference data, often leading to a "cold start" in the online phase. Furthermore, existing methods frequently overlook the varying quality of human feedback. This paper addresses these issues by proposing a method to construct an informed prior from offline data, accounting for the "competence" of the providing expert.

Methodology

The authors frame the problem as a finite-armed linear bandit task. The core contribution, warmPref-PS, operates through three primary mechanisms:

  1. Modeling Expert Competence: The algorithm characterizes the offline expert using two parameters: knowledgeability ($\lambda$), representing the expert's proximity to the true reward function, and deliberateness ($\beta$), representing the consistency of their preference choices.
  2. Informed Prior Construction: Instead of a generic prior, the algorithm uses the offline preference dataset to build a distribution over the reward function that reflects the expert's feedback and competence.
  3. Online Posterior Sampling: During the online phase, the agent receives numerical rewards and uses Posterior Sampling (Thompson Sampling) to update its beliefs and select actions.

To ensure scalability, the authors also propose Bootstrapped warmPref-PS, which uses a perturbed loss function to efficiently approximate the posterior distribution in high-dimensional settings.

Key Insights

A critical insight of this work is that modeling how much to trust offline data is essential. If an expert is known to be mediocre, the algorithm relies more on online exploration; if highly competent, it converges rapidly.

Conceptual comparison: Online fine-tuning is necessary when the reference policy is far from the optimal policy.

As shown in Figure 1, online interaction is crucial when there is a significant gap between the initial reference policy and the optimal policy. Purely offline methods like DPO or IPO tend to plateau, whereas online fine-tuning allows the model to discover high-reward regions not covered by the offline data.

Experimental Results

The authors evaluated warmPref-PS using synthetic datasets to control for action space, data size, and expert quality.

Cumulative regret comparison across varying expert knowledgeability ($\lambda$), deliberateness ($\beta$), and dataset size ($N$).

Key findings include:

  • Superior Performance: warmPref-PS consistently outperformed baselines such as vanilla Posterior Sampling (PS), Linear Thompson Sampling (LinTS), and hybrid DPO.
  • Data Efficiency: Even a tiny offline dataset (e.g., $N=5$) from a mediocre expert can reduce online regret by 25-50% compared to starting with no data.
  • Robustness: The method remains effective even when expert competence parameters are misspecified or when the expert follows a non-standard decision logic.

Conclusion and Future Work

warmPref-PS provides a robust framework for bridging the gap between offline preference learning and online reward optimization. While the current work focuses on finite-armed bandits and assumes alignment between offline and online raters, future research could extend these principles to infinite-armed settings and personalized adaptation. The bootstrapped approximation offers a practical path forward for large-scale systems, though its formal regret analysis remains an open theoretical question.

Summary updated

BibTeX
@misc{agnihotri2024online,
  author = {Akhil Agnihotri and Rahul Jain and Deepak Ramachandran and Zheng Wen},
  title = {{Online Bandit Learning with Offline Preference Data}},
  year = {2024},
  eprint = {2406.09574},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.09574},
}
Figure