Manuscript Offprint

arXiv:2610.11281

How to post-train on a surrogate: Envelope sampling mitigates reward hacking

Sanjit Dandapanthula, Shuvom Sadhuka, Samir Khan, Michael Oberst, Aaditya Ramdas, Alexandra Chouldechova

Sanjit Dandapanthula1,4∗^{1,4*}, Shuvom Sadhuka2,4∗^{2,4*}, Samir Khan4^{4}, Michael Oberst3,4^{3,4}

Aaditya Ramdas5^{5}, Alexandra Chouldechova4^{4}

1^{1}Carnegie Mellon University Department of Statistics and Machine Learning Department,

2^{2}MIT EECS, 3^{3}Johns Hopkins University Department of Computer Science, 4^{4}Abridge AI,

5^{5}Stanford University Department of Statistics

Large language models (LLMs) are commonly post-trained against LLM judges and other cheap surrogates because the true reward, such as human preference, is too expensive to query at scale. This practice often leads to reward hacking, where reinforcement learning against a miscalibrated surrogate leads to undesirable side effects. In this work, we study a setting in which a small number n of model outputs are annotated with ground-truth labels (e.g., from expert review) and used to recalibrate the LLM judge before optimizing against it. Prior approaches to judge recalibration are costly or heuristic, and it is known that on-policy sampling fails when the surrogate is miscalibrated on a rare set of outputs. In this work, we propose envelope sampling, a theoretically-grounded method for judge recalibration that seeks to minimize an upper bound on the regret of the post-trained model under the assumption that the human reward and re-calibrated reward lie in an L2L^{2} ball around the judge. We give practical algorithms to sample from the envelope by rejection or by fine-tuning against a modified reward, and experiments on clinical note generation and on a controlled sycophancy task show that recalibrating on envelope samples mitigates reward hacking where recalibrating on base-model samples does not.

∗^{*}This work was done while SD and SS were interns at Abridge AI.

Correspondence: Sanjit Dandapanthula at sanjitd@cmu.edu.

1 Introduction

Post-training methods such as RLHF and DPO fine-tune a pre-trained language model (which we denote π\pi, a distribution over outputs) to maximize a reward hh, subject to a penalty that keeps the fine-tuned model πh\pi_h close to the original model π\pi [1, 2]. In many applications, the true reward hh is expensive to evaluate, such as a physician’s review of a drafted clinical note or a lawyer’s verification of a legal brief [3, 4]. Practitioners therefore often optimize a cheap surrogate jj instead, such as a learned reward model, an LLM judge, or an automated benchmark [5, 6]. This surrogate jj is often miscalibrated against the true reward hh, in which case the model πj\pi_j obtained by post-training against the surrogate can score well under jj while still scoring poorly on hh; this failure is often referred to as reward hacking or Goodhart’s law [7, 8]. The usual defense against reward hacking is iterated RLHF, which collects fresh human comparisons on the current model’s outputs and retrains the reward model between rounds [9]; however, each round adds a new batch of annotations and a new training run, so this loop is expensive in both labor and time.

This paper studies a protocol for mitigating reward hacking that chooses a set of n examples on which to collect expert labels h(x1),…,h(xn)h(x_1), \ldots, h(x_n). These examples are then used to modify the surrogate j into a recalibrated reward r before the final optimization begins (for instance, by revising an LLM judge's rubric based on human-labeled data). Aligning the surrogate with human labels before optimizing against it is common practice; LLM judges are validated against human ratings and have their scoring criteria refined on labeled examples [10], and open evaluator models are trained on LLM-generated feedback and validated against human ratings [11, 12].

In many practical applications, the labels are collected on-policy, meaning that the outputs to be labeled x1,…,xnx_1, \ldots, x_n are drawn from a query distribution ρ\rho equal to the current model π\pi. However, it is known that on-policy sampling for recalibration fails when the surrogate is miscalibrated on a rare set of outputs, since a

Figure

Figure 1: Overview. A judge can agree with the true reward on typical outputs (gray) from the base model π\pi and still overrate a few rare ones (red crosses). Labels on on-policy samples (ρ=π)(\rho = \pi) rarely reach those outputs, so the recalibrated judge keeps the error and post-training concentrates on them. Labels on envelope samples (ρ=ρ∗)(\rho = \rho^*) reach them, so post-training improves the model (green checks).

sample of n typical outputs does not reveal the disagreement between j and h [13]. 1^{1} With this challenge in mind, we ask:

How should we choose the query distribution for ground-truth labels so that the recalibrated surrogate is safe to optimize against?

In this work, we make the following contributions (visually summarized in Figure 1):

  1. We prove that a suitable notion of regret induced by a query distribution ρ\rho is controlled by two quantities: a recalibration error on ρ\rho which can be minimized by choosing an appropriate recalibration procedure, and a coverage factor measuring how well ρ\rho covers the set of possible models we could obtain through the recalibrate-then-optimize procedure (Section 4.1).

  2. Assuming that the ground truth hh and recalibrated judge rr are close to the current judge jj, we prove that our proposed envelope distribution ρ∗\rho^{*} minimizes the worst-case coverage factor.

  3. We propose two methods to efficiently sample from ρ∗\rho^{*}: rejection sampling from πj\pi_{j} (the model obtained from optimizing against the current surrogate jj) and optimizing against an alternative bonus function (Section 4.4).

  4. We demonstrate that for a simple stylized model, envelope sampling attains the optimal label complexity among all possible query distributions.

  5. Experiments demonstrate that our method works well in practice. On a clinical note generation and a controlled sycophancy task, we find that recalibrating using on-policy samples leaves reward hacking in place, while recalibrating on envelope samples mitigates reward hacking (Section 6).

References (75)