Thompson Sampling in Online RLHF with General Function Approximation

Songtao Feng, Jie Fu
5/29/2025
cs.LG
rlhf-rlvr-dpo

No confident code implementation found for this paper.

Abstract

Reinforcement learning from human feedback (RLHF) has achieved great empirical success in aligning large language models (LLMs) with human preference, and it is of great importance to study the statistical efficiency of RLHF algorithms from a theoretical perspective. In this work, we consider the online RLHF setting where the preference data is revealed during the learning process and study action value function approximation.

Show full abstract

We design a model-free posterior sampling algorithm for online RLHF inspired by Thompson sampling and provide its theoretical guarantee. Specifically, we adopt Bellman eluder (BE) dimension as the complexity measure of the function class and establish $O(\sqrt{T})$ regret bound for the proposed algorithm with other multiplicative factor depending on the horizon, BE dimension and the $log$-bracketing number of the function class. Further, in the analysis, we first establish the concentration-type inequality of the squared Bellman error bound based on the maximum likelihood estimator (MLE) generalization bound, which plays the crucial rules in obtaining the eluder-type regret bound and may be of independent interest.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{feng2025thompson,
  title  = {Thompson Sampling in Online RLHF with General Function Approximation},
  author = {Songtao Feng and Jie Fu},
  year   = {2025},
  eprint = {2505.23927},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.23927v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.23927.svg)](https://codeofpaper.com/paper/2505.23927)

Discussion