Greedy Sampling Is Provably Efficient For RLHF

Di Wu, Chengshuai Shi, Jing Yang, Cong Shen

Abstract

Traditional reinforcement learning theory suggests that effective alignment requires complex exploration strategies like optimism or pessimism. This paper challenges this paradigm in the context of KL-regularized Reinforcement Learning from Human Feedback (RLHF), demonstrating that simple greedy sampling achieves state-of-the-art efficiency in both online and offline settings.

Introduction

Aligning Large Language Models (LLMs) with human preferences typically involves RLHF. While empirically successful, the theoretical foundations of RLHF often rely on the Bradley-Terry (BT) model and necessitate computationally expensive exploration mechanisms to handle uncertainty. This research explores whether these complexities are necessary, particularly when considering more flexible General Preference (GP) models that better capture real-world human feedback.

The Role of KL-Regularization

The core insight of this work is the "anchoring" effect of KL-regularization. By penalizing deviations from a reference policy, the search space for the optimal policy is naturally constrained. The authors prove that any candidate optimal policy maintains a bounded likelihood ratio relative to the reference policy. This structural property ensures that the agent remains in a "safe" region of the policy space, making aggressive exploration redundant and justifying the use of a simple greedy approach.

Proposed Methods

The authors introduce two streamlined algorithms that bypass the need for complex confidence bounds:

  1. Online RLHF with Greedy Sampling: The agent selects actions based on its current best empirical model (the greedy policy) and updates its model via Maximum Likelihood Estimation (MLE) after receiving feedback.
  2. Offline RLHF with Greedy Sampling: The agent performs MLE on a static dataset to identify the best-fitting preference model and its corresponding optimal policy, requiring only "single-policy coverage" of the data.

Theoretical and Empirical Results

The paper establishes a logarithmic regret bound of $O(\log T)$ for the General Preference model in online settings, a significant improvement over previous $O(\sqrt{T})$ results. In offline settings, it achieves $O(1/\epsilon)$ sample complexity.

Simulations using synthetic linear preference models confirm these theoretical findings. The greedy approach demonstrates performance comparable to more complex optimistic methods across both BT and GP frameworks, as shown in the figures below.

Performance of greedy sampling vs. tournament-style optimistic methods in the General Preference (GP) model.
Comparison of greedy sampling and optimistic strategies (parameterized by beta) under the Bradley-Terry (BT) model.

Conclusion and Future Work

By leveraging the inherent structure provided by KL-regularization, this work proves that greedy sampling is a theoretically sound and practically efficient strategy for RLHF. This simplifies the implementation of alignment algorithms while providing stronger performance guarantees for general preference models. Future research may extend these findings to multi-turn interactions (MDPs) and investigate the impact of varying regularization strengths on the derived bounds.

Summary updated

BibTeX
@inproceedings{wu2025greedy,
  author = {Di Wu and Chengshuai Shi and Jing Yang and Cong Shen},
  title = {{Greedy Sampling Is Provably Efficient For RLHF}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=jQH0gdwsuT},
}
Figure