NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generalisation of RLHF under Reward Shift and Clipped KL Regularisation

Kenton Tang, Yuzhu Chen, Fengxiang HearXiv 2026

TL;DR

This paper introduces the first comprehensive theoretical generalisation bounds for Reinforcement Learning from Human Feedback (RLHF) that account for two messy, real-world realities: distribution shifts in rewards and the bias introduced by clipping empirical KL penalties. The resulting mathematical framework offers actionable insights, including a dynamic, budget-aware rule for setting the KL clipping threshold and a sublinear power law for optimizing prompt-vs-rollout compute budgets.

What Problem Does This Paper Address?

RLHF is the undisputed gold standard for aligning Large Language Models (LLMs) with human preferences. However, our theoretical understanding of why and how well it generalises remains limited. Standard theoretical treatments often assume an idealized world where the reward model is perfectly accurate and fixed, and the Kullback-Leibler (KL) divergence regularisation (used to keep the model from drifting too far from its initial state) is computed perfectly over the entire population.

In practice, engineers face two major challenges that break these assumptions:

  1. Reward Shift: Reward models are trained on historical preference data collected from earlier or mixed behaviors. As the policy optimizes and improves during RLHF, it generates a new distribution of responses, pushing the reward model into out-of-distribution territory where its errors can be dangerously amplified.
  2. Clipped KL Regularisation: To prevent rare, high-variance trajectories from destabilizing training, practitioners estimate the KL penalty from finite samples and clip the log-probability ratios (similar to PPO). This clipping stabilizes optimization but introduces a systematic bias.

This paper bridges the gap between theory and practice by providing a mathematical framework that explicitly models how reward shift and clipped KL regularisation impact a policy's performance at deployment.

Methods

The authors employ a change-of-measure decomposition and PAC-Bayes analysis tools to derive high-probability generalisation bounds for data-dependent RLHF policies. They elegantly decompose the total generalisation error into three distinct, interpretable sources:

  • Sampling Error: The statistical noise arising from observing a finite number of prompts and estimating expectations using a limited number of Monte Carlo rollouts.
  • Reward Shift Error: The error driven by the discrepancy between the true target reward and the learned proxy reward, scaled by a $\chi^2$ coverage coefficient ($C(\theta)$) that measures how far the deployment distribution drifts from the reward model's training data.
  • KL Clipping Error: The systematic objective mismatch introduced by truncating the exact log-probability ratios.

Beyond the core bounds, the authors analyze two highly practical special cases:

  1. Initializing the parameters with a uniform prior over a finite candidate class (e.g., evaluating a discrete set of model checkpoints).
  2. Modeling late-stage Stochastic Gradient Descent (SGD) training as a continuous Ornstein-Uhlenbeck diffusion process to provide an optimiser-explicit bound.

Datasets

Not discussed in the paper. As a purely theoretical work, the paper focuses entirely on proving mathematical guarantees and deriving algorithmic principles rather than benchmarking on empirical datasets.

Key Insights and Ideas

  • Clipping as a Bias-Variance Trade-off: KL clipping is traditionally viewed merely as a stabilization trick. This paper proves it acts as a strict bias-variance trade-off hyperparameter. Aggressive clipping squashes Monte Carlo noise (lowering variance) but introduces a permanent objective mismatch (increasing bias) that does not vanish even with infinite evaluation data.
  • The Quantile Rule for Thresholding: The optimal clipping threshold ($\tau^*$) isn't static. The theory reveals it should be set precisely to the $(1 - 2\alpha)$-quantile of the log-ratio magnitudes, where $\alpha$ represents the sampling error budget. As your evaluation budget grows, the clipping threshold should automatically relax.
  • The 2/3 Power Law for Compute Budgets: LLM inference costs are asymmetric: processing the prompt (prefill) is computationally distinct from generating tokens (decode). When optimizing under this realistic cost model, the authors show that the optimal number of rollouts per prompt ($K^*$) scales sublinearly according to a $2/3$ power law: $K^* \approx (c_{\text{prefill}}/c_{\text{decode}})^{2/3}$.

Key Results

  • Unified Generalisation Bounds: The authors successfully established the first fixed-policy (Theorem 1) and data-dependent PAC-Bayes (Theorem 2) generalisation bounds incorporating both reward shift and empirical KL clipping.
  • Data Allocation Strategy: Under a simplified uniform-cost model, the theory strongly dictates that engineers should prioritize prompt diversity over multiple rollouts per prompt, proving that $K^* = 1$ minimizes the sampling error bound.
  • Automated Calibration Heuristic: The authors translated their optimal threshold theory into a practical, data-driven calibration rule ($\hat{\tau}$) that dynamically balances the bias-variance trade-off by clipping approximately the top fraction of extreme log-ratios in an evaluation batch, eliminating the need for expensive heuristic hyperparameter sweeps.

Limitations and Future Work

  • Data-Dependent Thresholding Rigor: While the paper proposes a highly practical empirical quantile rule for calibrating the clipping threshold $\tau$ from data, the formal theorems treat $\tau$ as fixed. Fully justifying a data-dependent $\tau$ requires further theoretical extensions, such as sample-splitting or uniform concentration arguments.
  • Qualitative vs. Quantitative Preference Data Budgeting: The framework clearly shows how preference data impacts generalisation (by altering the reward training error and the $\chi^2$ coverage coefficient), but it stops short of deriving an explicit, closed-form budget allocation rule for the exact number of preference labels needed relative to compute tokens.
  • Deployment Focus: The analysis targets the post-trained policy in deployment rather than modeling the full, iterative online trajectory of reinforcement learning interactions with an environment.

Summary updated

BibTeX
@misc{tang2026generalisation,
  author = {Kenton Tang and Yuzhu Chen and Fengxiang He},
  title = {{Generalisation of RLHF under Reward Shift and Clipped KL Regularisation}},
  year = {2026},
  eprint = {2602.21765},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.21765},
}
Figure