[Paper Review] Generalisation of RLHF under Reward Shift and Clipped KL Regularisation
Presents a generalisation theory for RLHF that accounts for reward shift and clipped KL regularisation, decomposing generalisation error into sampling, reward shift, and KL clipping components, with practical calibration and budgeting guidance.
Alignment and adaptation in large language models heavily rely on reinforcement learning from human feedback (RLHF); yet, theoretical understanding of its generalisability remains premature, especially when the learned reward could shift, and the KL control is estimated and clipped. To address this issue, we develop generalisation theory for RLHF that explicitly accounts for (1) \emph{reward shift}: reward models are trained on preference data from earlier or mixed behaviour policies while RLHF optimises the current policy on its own rollouts; and (2) \emph{clipped KL regularisation}: the KL regulariser is estimated from sampled log-probability ratios and then clipped for stabilisation, resulting in an error to RLHF. We present generalisation bounds for RLHF, suggesting that the generalisation error stems from a sampling error from prompts and rollouts, a reward shift error, and a KL clipping error. We also discuss special cases of (1) initialising RLHF parameters with a uniform prior over a finite space, and (2) training RLHF by stochastic gradient descent, as an Ornstein-Uhlenbeck process. The theory yields practical implications in (1) optimal KL clipping threshold, and (2) budget allocation in prompts, rollouts, and preference data.
Motivation & Objective
- Motivate and formalise the lack of theoretical understanding of RLHF generalisation under reward shift and KL clipping.
- Develop high-probability generalisation bounds for the RLHF pipeline that decompose error into three interpretable sources.
- Provide practical implications including optimal KL clipping thresholds and budget allocation across prompts, rollouts, and preferences.
- Offer special-case analyses and data-dependent PAC-Bayes bounds to connect theory with common training paradigms.
Proposed method
- Model RLHF as a two-stage process with a reward model trained on preference data and a policy optimised to maximise that reward.
- Introduce a clipped KL regularisation with per-sample log-ratio clipping, and analyse its impact on the objective and stability.
- Derive a three-term generalisation error decomposition (sampling error, reward shift error, KL clipping error) using change-of-measure and PAC-Bayes tools.
- Establish high-probability bounds for the empirical objective relative to the population objective under nontrivial data collection settings.
- Provide a fixed-policy generalisation bound and a data-dependent PAC-Bayes bound that hold uniformly over posteriors.
- Discuss special cases including uniform priors over finite hypotheses and SGD/Ornstein-Uhlenbeck process-based priors.
Experimental results
Research questions
- RQ1How can RLHF generalisation be bounded when the reward model is trained on data from a different distribution than the deployment policy?
- RQ2What are the distinct sources of generalisation error in RLHF when KL regularisation is estimated and clipped?
- RQ3How should clipping threshold and evaluation budget (prompts, rollouts, preferences) be chosen to balance bias and variance?
- RQ4Can data-dependent bounds (PAC-Bayes) be derived to accommodate post-hoc model selection and common optimisation regimes (e.g., SGD)?
Key findings
- The generalisation error decomposes into three terms: sampling error, reward shift error, and KL clipping error.
- Rollout and prompt sampling errors scale with the evaluation budget and clipping threshold, yielding explicit bounds.
- Reward shift error is amplified by a chi-squared coverage coefficient that captures distribution shift between reward-training data and deployment distribution.
- KL clipping introduces a bias term that depends on the tail of the log-ratio, not vanishing with more data.
- A budget-aware optimal KL clipping threshold is proposed, balancing bias and variance via a quantile-based rule.
- Data-dependent PAC-Bayes bounds are provided, linking risk to the KL divergence between posterior and prior and to the same three error sources.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.