Best-of-N (BoN) sampling is the simplest and most widely deployed inference-time alignment strategy, but it suffers from two distinct problems: reward hacking, in which the selected response exploits errors in the proxy reward model, and the absence of any privacy protection for the sensitive human preference data used to train that reward model. We show that a single intervention—adding calibrated noise to reward scores before selection—resolves both. Our first result, Private Best-of-N (PrivBoN), establishes that Gumbel noise at an appropriate scale simultaneously provides ϵ-differential privacy and implements KL-regularized alignment. Whenever the privacy budget exceeds a critical threshold ϵ∗, the privacy-mandated noise is the regret-optimal regularization, and privacy imposes zero additional alignment cost—matching the information-theoretic skyline of Huang et al. [13]. Because ϵ∗ depends on an unknown coverage coefficient, we introduce Private Inference-Time Pessimism (PrivITP), which combines χ2-regularized rejection sampling with a two-phase Gaussian mechanism. PrivITP achieves ex-post ( ϵ, δ)-DP with a privacy cost independent of the number of responses n, cleanly decouples the regularization parameter from the privacy parameter, and attains the skyline up to a noise-inflation term. Experiments across several language models, datasets, and reward models confirm our results: PrivBoN and PrivITP are scaling-monotonic (unlike BoN, which degrades past a critical n), and PrivITP matches or outperforms PrivBoN at equivalent privacy levels, with the largest gains in the strong-privacy regime.
1 Introduction
Aligning large language models (LLMs) with human preferences is a central challenge in modern AI [24]. While training-time methods such as RLHF [4] and DPO [21] have received extensive attention, a parallel line of work focuses on inference-time alignment: improving the quality of a frozen model's outputs at serving time, without updating its parameters. Inference-time alignment has become increasingly important as frontier models are deployed via APIs to millions of users, making it impractical to fine-tune per-user or per-application preferences into the model weights. The simplest and most widely deployed inference-time strategy is Best-of-N (BoN) sampling [20, 10], which generates n candidate responses from a base policy π0, scores each with a learned reward model r^, and returns the top-scoring candidate. BoN is attractive for its simplicity – it requires no gradient computation, works with any frozen model, and scales naturally with test-time compute [23].
A growing body of recent work has established tight theoretical characterizations of BoN's KL vs. win-rate tradeoff [2, 30] and proposed smoothed variants that interpolate between hard maximization
Preprint.
and random selection [26, 1, 14]. However, BoN is known to be vulnerable to reward hacking [9, 14]: as the number of responses n grows, BoN increasingly selects responses in which the learned reward r^ overestimates the true reward r∗, thereby degrading alignment. Huang et al. [13] formalizes this by showing that BoN is not scaling-monotonic – more candidates can yield worse alignment and that BoN's regret crucially depends on the quality of the learned reward model r^.
Reward models are typically trained on sensitive human preference data – pairwise comparisons from crowd workers or domain experts whose judgments encode personal values and cultural context — and are increasingly shared across applications. Each reward-model evaluation leaks information about this training data, and over a deployment session of T queries, the cumulative leakage through selected outputs is uncontrolled. Concretely, consider a reward model r^D deployed as a BoN selection service. An adversary wishing to determine whether a specific preference example (x0,y0+,y0−) was in D can craft prompts whose plausible completions are structured around y0+ and y0−, query the service repeatedly, and observe shifts in the empirical distribution of returned responses. Since BoN's argmax is deterministic given reward scores, even small training-attributable shifts in r^D manifest as measurable shifts in selection frequencies—the exact signal exploited by membership-inference attacks on LLMs [3] and downstream-output leakage attacks [25].
While differential privacy has been widely applied to training-time alignment (SFT, reward-model training, and RLHF) [32, 27], inference-time privacy remains largely unstudied. We fill this gap by introducing differentially private inference-time alignment: mechanisms ensuring that the selected response satisfies ε-DP with respect to D, bounding the information any adversary can extract about any individual preference—regardless of query budget or side information.
We make the following contributions.
(1) Private Best-of-N (PrivBoN, Section 3). We show that adding i.i.d. Gumbel noise with scale σ=2Δr/ε to reward scores before BoN selection yields a mechanism that simultaneously satisfies ε-DP and implements the KL-regularized alignment optimum in the large-n limit, where Δr is the reward-model sensitivity on D. When the privacy budget exceeds the critical threshold ε∗(x)=2ΔrCπ∗(x)/εRM(x), the privacy-mandated noise coincides with the regret-optimal regularization and privacy becomes “free”—PrivBoN’s regret O(Cπ∗εRM2) matches the information-theoretic skyline of Huang et al. [13] at zero additional alignment cost. Here εRM denotes reward-model error and Cπ∗ the coverage coefficient of a comparator policy π∗.
(2) Private Inference-Time Pessimism (PrivITP, Section 4). PrivBoN’s “privacy is free” threshold depends on the unknown coverage coefficient Cπ∗, making it unverifiable in practice. Our main contribution, PrivITP, resolves this by combining χ2-regularized rejection sampling with a two-phase Gaussian mechanism. We prove an ex-post approximate-DP guarantee with an n-independent bound that depends only on the realized halting time, via a reformulation lemma that maps ReLU-based rejection sampling onto a randomized-threshold mechanism. The regret bound O(Cπ∗(εRM2+Rmaxσ)) cleanly separates alignment error from privacy cost and matches the skyline up to noise inflation, where Rmax is the maximum reward; the analysis relies on a smoothed-weight policy comparison lemma that bounds value gaps via the ℓ∞-distance of policy weight functions. The ex-post structure further enables adaptive composition via the FSRC framework [16], answering substantially more queries under a fixed privacy budget than standard composition.
(3) Empirical validation (Section 5). Across four reward models and two language models of varying sizes on GSM8K, MMLU, and MATH datasets, we demonstrate that the theoretical results hold: Private algorithms eliminate BoN's reward-hacking pathology while preserving its scaling benefits; PrivITP consistently matches or outperforms PrivBoN at matched privacy levels; and the ex-post composition structure translates into substantial multi-query deployment gains.
PrivITP and PrivBoN are, to our knowledge, the first inference-time alignment algorithms whose regret matches the information-theoretic skyline under formal differential privacy guarantees.
2 Preliminaries
Inference-time alignment. We consider a setting in which a user submits a prompt x∈X and the system must return a single response y∈Y. The system has access to a base language model (the reference policy) π0:X→Δ(Y), assumed to have full support on Y, and a reward model
r^D:X×Y→R trained on a dataset D. The true reward function r∗:X×Y→[0,Rmax] is unknown, and the trained reward model r^D serves as its proxy. The base policy π0 is a trained language model (e.g., an instruction-tuned model using SFT and/or RLHF), the true reward r∗ captures the desired objective (e.g., alignment with human preferences or correctness under a proof checker), and proxy reward r^D is a custom-trained model on a (possibly sensitive) dataset D.
Given a base policy π0, reward model r^D, and a prompt x∈X, the goal of the algorithm designer is to construct a policy π^, which generates high-quality responses as measured by the true reward r∗(x,y). This is formalized using the notion of inference-time regret [13]. The regret of a policy π^ relative to a comparator policy π∗ is defined as
Reg(π^;x)=J(π∗;x)−J(π^;x),(1)
where J(π;x)=Ey∼π(⋅∣x)[r∗(x,y)] denotes the value of a policy π for a given prompt x.
Without assumptions on the accuracy of the reward model r^D and on the coverage of the base policy π0, achieving low regret is not possible [13]. To this end, define the reward model error ε(x,y)=r∗(x,y)−r^D(x,y). The expected squared error under the base policy,
εRM2(x)=Ey∼π0(⋅∣x)[ε(x,y)2],
measures the mean-squared discrepancy between proxy and rewards. We abstract away reward model training by assuming access to a model r^D with squared-error εRM2(x) and study how regret depends on this error and what algorithmic interventions can make it small. The χ2-coverage coefficient
measures how well the base policy π0 covers a given policy π, where χ2(p∥q) denotes the χ2-divergence between probability distributions p,q. A comparator policy π∗ with a larger Cπ∗ indicates a harder alignment target. Empirical studies have shown that standard language models provide sufficient coverage of high-quality responses, enabling performance gains at inference time [13]. Huang et al. [13] lays down the importance of coverage by establishing a regret skyline in the sample and evaluate framework, where, for a given prompt x, the learner can sample n responses {yj}j from the base policy π0, and observe their likelihood π0(yj∣x) and reward scores r^D(x,yj).
Proposition 2.1 (Regret skyline [13]). Fix a prompt x and base policy π0. For any inference-time alignment algorithm π^, there exist a reward function r∗ and reward model r^D with error εRM(x) such that Reg(π;x)≥41Cπ∗εRM2(x).
This lower bound is tight: Huang et al. [13] achieves it with InferenceTimePessimism, a χ2-regularized rejection sampling algorithm. A central question of this work is whether differential privacy – which requires adding noise that ostensibly degrades performance – can be achieved without exceeding this skyline. To this end, we first formalize the privacy definitions.
Differential privacy. We protect the training data D of the reward model. Two datasets D and D′ from a database D are adjacent, written D∼D′, if they differ in a single individual's data. The sensitivity of the reward model is Δr=supx,ysupD∼D′∣r^D(x,y)−r^D′(x,y)∣, which quantifies the maximum influence of any one training point on any reward score.
Definition 2.2. A randomized algorithm M:D→S satisfies:
• ε-DP if Pr[M(D)=s]≤eεPr[M(D′)=s] for all s∈S and all D∼D′.
• (ε,δ)-DP if Pr[M(D)=s]≤eεPr[M(D′)=s]+δ for all s∈S and all D∼D′.
• εp-ex-post DP if ∃ a function εp:D→S such that Pr[M(D)=s]≤eεp(s)Pr[M(D′)=s] for all s∈S and all D∼D′.
Traditional ex-ante privacy [8] bounds the guarantee worst-case over outcomes, before the mechanism’s randomness is realized; ex-post privacy [16] bounds it conditional on the realized output, allowing queries with favorable outcomes to “save” budget for later queries under a fixed total.
Algorithm 1 PrivBoN: Private Best-of-N
Require: Prompt x, base policy π0, reward model r^D, number of candidates n, noise scale σ>0
1: for i=1 to n do
2: Sample candidate yi∼π0(⋅∣x) and noise gi∼Gumbel(0,σ)
3: Compute noisy reward r~i←r^D(x,yi)+gi
4: end for
5: return yi∗, where i∗=argmaxir~i
3 PrivBoN: Private Best-of-N
We introduce the PrivBoN (Private Best-of-N) framework, which adds calibrated noise to reward scores before selection. The mechanism is simple: sample n candidates y1,…,yn independently from π0(⋅∣x), perturb each reward score r^D(x,yi) with independent noise gi, and return the candidate with the highest noisy reward. The noise distribution determines the privacy guarantee and the induced policy. We use the Gumbel(0,σ) distribution, which has the PDF f(x)=σ1exp(−x/σ−exp(−x/σ)) and the CDF F(x)=exp(−exp(−x/σ)).
Theorem 3.1 (PrivBoN privacy). Let r^D(x,y) be a reward model trained on a dataset D with sensitivity Δr. Then, Algorithm 1 with σ=2Δr/ε satisfies ε-DP.
The result follows from a classical connection: adding Gumbel noise and taking the argmax is equivalent to sampling from the softmax distribution (thanks to the Gumbel-max trick), which is precisely the exponential mechanism of McSherry and Talwar [19]. It also yields a clean, closed-form expression for the induced policy, given below.
Proposition 3.2 (PrivBoN policy). PrivBoN with Gumbel noise induces the policy
where y1=y is fixed and y2:n are drawn independently from π0. Assuming the reward distribution under π0 is continuous, (a) it recovers the standard BoN policy as σ→0 and (b) it converges pointwise to the KL-regularized optimum π∞(y∣x)∝π0(y∣x)exp(r^D(x,y)/σ) as n→∞.
Part (b) is the crucial structural property: PrivBoN implements, in the large-n limit, the KL-regularized optimum maxπEy∼π[r^D(x,y)]−σKL(π∥π0). The noise scale σ simultaneously controls the privacy budget ( ε=2Δr/σ) and the KL-regularization strength—raising the question of whether the two impose compatible demands on σ.
3.1 Regret guarantee
We now analyze how the noise required for privacy affects alignment quality within the regret framework of Huang et al. [13]. Our main result is that privacy-mandated noise implements exactly the regularization needed for optimal alignment whenever the privacy budget exceeds a threshold ε∗.
Theorem 3.3 (PrivBoN regret). Let r∗(x,y)∈[0,Rmax] be the true reward and r^D(x,y) be a reward model trained on a dataset D. Let the reward model error ϵ(x,y)∼N(0,σr2(x)) under the base policy π0. Let π∗ be any comparator policy with finite coverage Cπ∗(x)<∞. Then, for n=Ω(e(Rmax+εRM)/σlog(Rmax/εRM)), the regret of PrivBoN satisfies
where εRM2(x)=Ey∼π0(⋅∣x)[ϵ(x,y)2]=σr2(x) is the reward model variance.
Optimal noise scale. The third term is the skyline itself. The first two terms exhibit a bias-variance tradeoff in σ: a large σ (strong regularization, strong privacy) incurs bias from under-exploiting the reward signal, whereas a small σ (weak regularization, weak privacy) incurs overoptimization from exploiting reward model errors. Balancing the first two terms yields σ∗(x)=εRM(x)/Cπ∗(x), at which the regret,
Reg(πPrivBoN;x)≤3Cπ∗(x)εRM2(x),
matches the information-theoretic skyline (Proposition 2.1) in the large-n limit.
“Privacy is free” threshold. When σ is set by the privacy budget (σ=2Δr/ε), the regret becomes
The privacy-mandated noise σ is no larger than the regret-optimal noise σ∗(x) precisely when
ε≥ε∗(x)=εRM(x)2ΔrCπ∗(x).(4)
For all ε≥ε∗(x), the regret matches the skyline: the noise required for privacy is no more than what alignment already needs. E.g., for a reward model with εRM=0.35, Δr=0.1, Cπ∗=2, this gives ε∗≈0.8, i.e., any privacy budget above 0.8 is free. Below ϵ<ε∗(x), the first term in (3) dominates and the regret degrades gracefully as O(εΔrCπ∗(x)+Cπ∗(x)εRM(x)).
The regret bound (2) goes down with n for n≥n0(σ,Rmax,ϵRM), confirming that more candidates never worsen the upper bound, which rules out the catastrophic reward-hacking regime of BoN where the bound degrades with an increase in n. The finite-sample term, however, carries an Rmaxe(Rmax+ϵRMlogn)/σ/n prefactor: for typical values (Rmax=5, σ=1) the asymptotic rate kicks in only for n≳104, and for moderate n the regret behaves as O(RmaxeRmax/σ/n). PrivITP (Section 4) avoids this exponential dependence via rejection sampling.
Remark 3.4 (Privacy-mandated noise as optimal regularization). The coincidence σ=σ∗(x) at ε=ε∗(x) is structural: both privacy and alignment require softening the argmax to prevent overfitting to the proxy reward, and both implement this softening through the same mechanism—Gumbel noise of scale σ, equivalent via the Gumbel-max trick [19] to softmax with temperature σ. Privacy imposes σ≥2Δr/ε; alignment optimum requires σ∗(x)≤εRM(x)/Cπ∗(x). The two are compatible whenever ε≥ε∗(x).
Remark 3.5 (Comparison with prior analyses). SoftBoN [1, 14] is algorithmically equivalent to PrivBoN but analyzed differently: Aminian et al. [1] bound the gap within the SoftBoN policy class at a fixed temperature, whereas we bound regret against an arbitrary comparator π∗ and match the skyline of Huang et al. [13]; Khalaf et al. [14] treat temperature as a free tuning parameter, whereas we derive it from the privacy budget, revealing the threshold ϵ∗(x) at which privacy becomes free.
The Gaussian-error assumption yields the closed-form threshold ϵ∗(x); under a general MSE assumption, the qualitative conclusions persist, but the threshold loses its closed form. See Appendix B.4.
3.2 Reward hacking robustness
Theorem 3.3 establishes that PrivBoN achieves low regret. A separate and complementary question is whether PrivBoN prevents reward hacking—the pathology where the selected response exploits errors in the proxy reward, yielding high r^D but low r∗ [9, 14]. We quantify this through two measures: the win-rate against the base policy and the hacking gap Eπ^[ϵ(x,y)], which directly measures the extent to which the selected response overfits to reward-model errors. For a given prompt x, the win-rate [10] of a policy π^ against π0 is
High win-rate does not imply low regret when r^D and r∗ are mismatched: BoN achieves win-rate n/(n+1) [2] while simultaneously incurring regret Ω(εRM2n) [13]. The two quantities diverge precisely because BoN's argmax overfits to r^D's errors. The following proposition shows that PrivBoN's softmax selection caps both quantities at finite limits, eliminating this pathology.
Proposition 3.6 (Win-rate saturation and bounded hacking). Let ϵ(x,y)∼N(0,σr2(x)) under π0. As n→∞, we have (a) BoN's win-rate converges to 1, whereas PrivBoN's saturates at Φ(σr(x)/(σ2))<1 and (b) BoN's hacking gap grows without bound as O(σr(x)logn), while PrivBoN's converges to the finite limit σr2(x)/σ.
Require: Prompt x, base policy π0, reward model r^D, candidates n, regularization β>0, noise scales σX, σZ>0, truncation parameter L
1: Phase 1 (private normalization):
2: Draw y1,…,yn∼π0(⋅∣x); compute ri=r^D(x,yi)
3: Find λ such that n1∑i=1nrelu(β−1(ri−λ))=1
4: Set λ~=λ+N(0,σX2) and M=(Rmax+σZL−λ~)/β
5: Phase 2 (private rejection sampling):
6: Draw fresh y1′,…,yn′∼π0(⋅∣x); compute r~i=r^D(x,yi′)+N(0,σZ2)
7: for i=1 to n do
8: wi←relu(β−1(r~i−λ~); sample ξi∼Ber(min(wi/M,1))
9: if ξi=1 then
10: return yi′
11: end if
12: end for
13: return yn+1′∼π0(⋅∣x)
The finite saturation limits reflect the same mechanism: the privacy/regularization noise σ prevents the selection from fully exploiting the reward signal, even with unlimited candidates. Consequently, there exists a crossover n∗(σ,σr) beyond which PrivBoN achieves strictly higher true reward than BoN – BoN's expected true reward eventually decreases with n (Goodhart's law), while PrivBoN's converges monotonically to Eπ∞[r∗]. For typical reward models (e.g., Oasst on GSM8K dataset), n∗ falls well below 100 (see Figure 1(top row)). Proofs are deferred to Appendix B.
4 Private Inference Time Pessimism
PrivBoN’s threshold ε∗(x) depends on the unknown coverage coefficient Cπ∗(x) (4), so a practitioner cannot verify whether their privacy budget falls in the free regime. Private InferenceTimePessimism (PrivITP) resolves this by combining the χ2-regularized rejection sampling of Huang et al. [13] with calibrated noise injection, decoupling reward-hacking mitigation (controlled by the regularization) from privacy (controlled by the noise).
Algorithm. PrivITP operates in two phases, each consuming independent noise. Phase 1 draws n candidates from π0(⋅∣x) and privately releases the normalization constant λ~ of the χ2-regularized policy by adding Gaussian noise to the solution λ of the empirical normalization equation (we omit dependence on x for brevity). Phase 2 draws a fresh batch of n candidates, perturbs their rewards with Gaussian noise, and performs rejection sampling with an acceptance threshold λ~ from Phase 1. Independence of the two batches is essential for both the privacy and regret analyses; pseudocode appears in Algorithm 2. The ReLU in the acceptance weights implements pessimism: candidates whose noisy reward falls below λ~ receive zero weight, discarding responses that the reward model does not confidently rank above the population average. This mechanism prevents reward hacking independently of the injected noise, so privacy and alignment can be tuned separately (Theorem 4.3).
Privacy guarantee. Each phase accesses the dataset D through reward evaluations. The injected Gaussian noise in the normalizer in Phase 1 and in the rewards in Phase 2 ensures that the released quantities ( λ from Phase 1 and the selected response from Phase 2) are differentially private.
Theorem 4.1 (PrivITP privacy). Let r^D(x,⋅)∈[0,Rmax] with sensitivity Δr. Algorithm 2 with Phase 1 scalar Gaussian noise σX and Phase 2 query noise σZ satisfies (ε1+ε2post(t),δ)-DP ex-post, where Phase 1 contributes (ε1,δ)-DP with ε1=Δr2ln(1.25/δ)/σX and Phase 2 contributes pure ex-post ε2post(t)-DP, where t is the halting time (index of the first accepted candidate):
Unlike standard privacy composition over n candidates (which gives a worst-case bound proportional to n), Theorem 4.1 gives a bound, which is independent of n, computable via one-dimensional numerical integration and proportional to the actual halting time t. The coefficient of the linear term,
is the per-round privacy cost of rejection, which depends on the relative positions of λ~, Rmax, and σZ. When σZ is large relative to Δr (strong privacy), κ is small; when σZ is comparable to Δr, κ dominates the privacy budget. The bound requires the reward model's outputs to lie in a bounded range [0,Rmax], which is a mild assumption in practice as reward models for language alignment are typically trained with bounded output heads (e.g., sigmoid or clipped outputs) [13].
Remark 4.2 (Ex-post vs. ex-ante accounting). Theorem 4.1 gives an ex-post guarantee: the privacy cost depends on the realized halting time t. For worst-case accounting, ϵ2post(n) upper-bounds the per-query cost. In practice, rejection happens quickly when the reward model is informative ( E[t]=O(1)), so the ex-post bound is substantially tighter and enables the composition of Section 4.1.
Regret guarantee. We now analyze the regret of PrivITP against an arbitrary comparator policy π∗. The central result is that PrivITP achieves the information-theoretic skyline (Proposition 2.1) with a noise inflation and it does so while satisfying pure ex-post ε-DP (Theorem 4.1).
Theorem 4.3 (PrivITP regret). Let r∗(x,y)∈[0,Rmax] be the true (unknown) reward and r^D:X×Y→[0,Rmax] be a reward model trained on a dataset D with mean-squared error εRM2(x)=Ey∼π0(x)[(r^D(x,y)−r∗(x,y))2]. Let π∗ be any comparator policy with finite coverage Cπ∗(x)<∞. For regularization β≥2σX, truncation parameter L=O(logn) and n=max{Ω(βRmaxlog(βϵRMRmax)),Ω(βRmax+σZ)}, PrivITP (Algorithm 2) satisfies
As with PrivBoN, the bound in (5) is non-increasing in n for n≥n0(β,σZ,Rmax,ϵRM), ruling out the reward-hacking regime where adding candidates provably degrades performance.
Optimal regularization. The first two terms exhibit a bias-variance tradeoff in β: a large σ (strong regularization) incurs bias from under-exploiting the reward signal, whereas a small β (weak regularization) incurs overoptimization from exploiting reward model errors. Balancing the first two terms yields β∗(x)=(εRM2(x)+Rmaxσ)/Cπ∗(x), at which the regret,
Reg(πPrivITP;x)≤3Cπ∗(x)(εRM2(x)+Rmaxσ),
matches the information-theoretic skyline (proposition 2.1) in the large-n limit (up to the noise inflation due to privacy). Proofs are deferred to Appendix C.
Remark 4.4 (Compatibility of β∗≥2σX). The condition β≥2σX in Theorem 4.3 is satisfied by β∗(x) whenever σX≤21(ϵRM2+Rmaxσ)/Cπ∗(x), a mild bound translating to a lower bound on ϵ1 in the privacy-calibrated regime. When violated, setting β=2σX≥β∗(x) recovers the bound with an additive 2σXCπ∗(x) penalty in the χ2-bias term.
Privacy-mandated noise. The Phase 2 query noise σZ governs the pure ex-post pure-DP guarantee of Theorem 4.1: smaller σZ yields larger per-query privacy cost ε2post(t). To quantify the trade-off, we use the order-of-magnitude relation obtained by linearizing (4.1) in the small- Δr/σZ regime: the per-round log-ratio is of order Δr/σZ, giving ε2post(t)≍t⋅Δr/σZ, or equivalently σZ≍t⋅Δr/ε2post(t). For Phase 1 per-query privacy cost (ε1,δ), we set noise σX≍Δrln(1/δ)/ε1. Substituting into (4) yields the privacy-mandated regret bound
On the relationship to prior work. PrivITP combines the χ2-regularized rejection sampling of Huang et al. [13] with the Gaussian above-threshold mechanism of Lebensold et al. [16]. The technical novelty lies in the analysis of privacy and regret: (i) a reformulation lemma mapping PrivITP's ReLU acceptance weights onto a randomized-threshold mechanism, enabling an n-independent ex-post DP bound (Lemma C.1); (ii) a smoothed-weight policy comparison lemma unifying regret analysis across threshold noise, query noise, and finite-sample effects (Lemma C.3); and (iii) a regret-optimality proof (Theorem 4.3) showing PrivITP matches Huang et al. [13] skyline up to an Rmaxσ noise-inflation term that cleanly separates alignment error from privacy cost.
4.1 Multi-Query Deployment
In deployment, an aligned language model answers a stream of T prompts and produces a transcript of responses (y∗(1),…,y∗(T)). Each query consumes some privacy budget; the question is how to allocate this budget across queries to maximize alignment quality over the lifetime of the deployment. PrivITP's ex-post privacy guarantee (Theorem 4.1) provides a structural advantage: the privacy cost of each query depends on the actual halting time t, not on the worst-case budget n. When rejection sampling accepts early – the typical case for informative reward models, where E[t]=O(1) – the per-query privacy cost is much smaller than the worst-case bound. The FSRC framework of Lebensold et al. [16, Alg. 2] is designed to exploit this structure: it composes mechanisms with ex-post privacy guarantees and halts when the cumulative privacy cost exceeds the total budget.
Proposition 4.5 (PrivITP composition via FSRC). Algorithm 3 satisfies (εtotal,δ)-DP under fully-adaptive query selection. The expected number of queries answered before halting is E[T∗]≥E[ετ]εtotal, where E[ετ] is the expected per-query privacy cost under the distribution of halting times tτ induced by the noisy reward distribution.
In the favorable regime where E[ετ]≪εmax, where ϵmax:=ϵ1+ϵ2post(n) is the worst-case per-query cost, FSRC-composed PrivITP answers Θ(εmax/E[ετ]) times more queries than standard composition for the same total budget. FSRC strictly dominates privacy filters [22], which must charge the worst-case per-query cost rather than the realized ex-post cost (see Remark D.1)
5 Experiments
Table 1: Percentage lift in accuracy over base policy Phi-3-Mini-Instruct at n=212 candidates. Values are mean ± standard error over all prompts across the GSM8K, MMLU, and MATH test splits. Same (RM, dataset) configuration uses the same noise σ for private variants and the same regularization β for ITP variants.
Dataset
Algorithm
Oasst-RM
Gemma-RM
Llama-RM
Armo-RM
GSM8K
BoN
−5.18±1.23
−1.87±1.20
7.64±0.82
6.47±0.86
PrivBoN
0.32±0.91
1.15±0.87
6.90±0.76
5.78±0.78
PrivITP
0.81±0.89
1.68±0.87
7.46±0.78
6.63±0.78
ITP
0.85±0.90
2.00±0.90
7.61±0.79
6.81±0.79
MMLU
BoN
2.54±2.74
5.45±2.94
−12.74±2.92
8.40±4.37
PrivBoN
2.32±2.22
4.22±2.25
1.88±2.24
3.37±3.22
PrivITP
3.80±2.28
6.09±2.33
2.76±2.29
5.59±3.40
ITP
5.09±2.35
7.35±2.46
4.69±2.40
8.24±3.74
MATH
BoN
−5.21±1.60
2.10±1.79
10.80±1.98
6.10±1.91
PrivBoN
1.33±1.55
2.94±1.61
9.14±1.73
4.51±1.63
PrivITP
1.72±1.58
3.38±1.62
10.28±1.79
7.04±1.70
ITP
1.64±1.59
3.45±1.63
10.68±1.81
7.80±1.77
We validate our theoretical results following the experimental setup of Huang et al. [13]: four reward models (Oasst (1.4B), Gemma (2B), Llama (3B), and Armo (7B)) and two base LMs (Phi3-Mini-Instruct and Gemma-2-2B-Instruct) evaluated on test splits of GSM8K [5], MATH-500 [12], and math, chemistry splits of MMLU [11]. For each prompt, we sample 10000 responses from base policy at temperature 1 with zero-shot CoT prompting [28], then bootstrap M=50 replicates of
No. of candidates
No. of candidates
No. of candidates
Noise scale σ
Figure 1: Experiments for Phi-3-Mini-Instruct policy and Gemma-RM on the GSM8K test split. Top row demonstrates reward hacking in BoN and its mitigation by PrivBoN, ITP, and PrivITP. Bottom left shows privacy vs. utility trade-off in ITP: low noise (low privacy) leads to better accuracy, and vice versa. Bottom right demonstrates the advantage of FSRC composition in PrivITP's ex-post privacy bound compared to the standard composition in ex-ante bound.
each sample to run each of the four algorithms: BoN, PrivBoN, ITP, and PrivITP. Unless otherwise mentioned, private algorithms use the same noise σ (for PrivITP, we set σX=σZ=σ/2), and ITP variants use the same regularization β on the same (RM, dataset) configuration. Ablation studies on the noise level σ (equivalently, on privacy budget ϵ) and regularization β are presented in Appendix F.
Scaling behavior across algorithms (Theorems 3.3, 4.3). Figure 1(top row) shows % percentage lift in accuracy over base policy Phi3-Mini and expected proxy reward under Gemma-RM for GSM8K as we vary n. We observe (i) BoN's accuracy rises then falls with n, exhibiting reward hacking, while its proxy reward rises monotonically—the signature of overfitting to r^D; (ii) PrivBoN and PrivITP accuracies are monotone in n, confirming hacking mitigation; (iii) PrivITP matches or exceeds PrivBoN at the same noise level. Figure 1(bottom left) shows that PrivITP approaches the non-private ITP skyline as noise (and hence, privacy) decreases. Figures for other RMs are in Appendix F.
Generalization across RMs and datasets. At n=212, we report the percentage lift in accuracy over Phi3-Mini-Instruct base policy for each (algorithm, RM, dataset) configuration in Table 2. PrivITP dominates PrivBoN on every (RM, dataset) configuration, and on GSM8K it recovers between 84% and 98% of the non-private ITP skyline across all four reward models. On MMLU and MATH, PrivITP again closely tracks ITP within standard error. The reward-hacking signature in BoN is most pronounced for the weaker RMs (Oasst, Gemma), while PrivITP recovers near-skyline performance in each case. For stronger RMs (Llama, Armo) on GSM8K and MATH, BoN remains competitive at n=212, which indicates that reward-hacking pressure is delayed when the base policy has lower accuracy. Results for Gemma2-2B-Instruct base model are in Appendix F.
Multi-query deployment via FSRC (Proposition 4.5). To validate the composition advantage of PrivITP's ex-post structure, we compare the number of GSM8K queries answered before budget exhaustion under (a) FSRC-composed PrivITP, (b) PrivITP basic composition (worst-case per-query cost εmax=ε1+ε2post(n)) sweeping over noise σ. We fix n=16, β=0.05 and total privacy budget εtotal=50, Under Gemma-RM and across 10 random seeds, Figure 1(bottom right) shows that FSRC answers ∼3× more queries, with empirical halting time tτ≪n, confirming Remark 4.2. Similar behavior is observed for other RMs, and plots are in Appendix F.
Conclusion. We have shown that differential privacy and reward-hacking mitigation are two instances of the same intervention: softening the hard argmax in Best-of-N selection. For PrivBoN, the privacy-mandated scale coincides with the regret-optimal KL temperature above a threshold ε∗, making privacy “free”; PrivITP extends this to χ2-regularized rejection sampling, decoupling the privacy and regularization parameters, and yielding ex-post DP with n-independent composition. Open directions include extending to sequential test-time alignment [32] and connecting inference-time privacy to training-time private alignment [31] for end-to-end guarantees.
References
[1] Gholamali Aminian, Idan Shenfeld, Amir R Asadi, Ahmad Beirami, and Youssef Mroueh. Best-of-n through the smoothing lens: K1 divergence and regret analysis. In ES-FoMo III: 3rd Workshop on Efficient Systems for Foundation Models.
[2] Ahmad Beirami, Alekh Agarwal, Jonathan Berant, Alexander D'Amour, Jacob Eisenstein, Chirag Nagpal, and Ananda Theertha Suresh. Theoretical guarantees on the best-of-n alignment policy. In International Conference on Machine Learning, pages 3580–3602. PMLR, 2025.
[3] Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, et al. Extracting training data from large language models. In 30th USENIX security symposium (USENIX Security 21), pages 2633–2650, 2021.
[4] Paul F Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg, and Dario Amodei. Deep reinforcement learning from human preferences. Advances in neural information processing systems, 30, 2017.
[5] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
[6] David Durfee and Ryan M Rogers. Practical differentially private top-k selection with pay-what-you-get composition. Advances in Neural Information Processing Systems, 32, 2019.
[7] Cynthia Dwork and Vitaly Feldman. Privacy-preserving prediction. In Conference On Learning Theory, pages 1693–1702. PMLR, 2018.
[8] Cynthia Dwork and Aaron Roth. The algorithmic foundations of differential privacy. Foundations and trends® in theoretical computer science, 9(3-4):211–487, 2014.
[9] Leo Gao, John Schulman, and Jacob Hilton. Scaling laws for reward model overoptimization. In International Conference on Machine Learning, pages 10835–10866. PMLR, 2023.
[10] Lin Gui, Cristina Gärbacea, and Victor Veitch. Bonbon alignment for large language models and the sweetness of best-of-n sampling. Advances in Neural Information Processing Systems, 37:2851–2885, 2024.
[11] Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300, 2020.
[12] Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. NeurIPS, 2021.
[13] Audrey Huang, Adam Block, Qinghua Liu, Nan Jiang, Akshay Krishnamurthy, and Dylan J Foster. Is best-of-n the best of them? coverage, scaling, and optimality in inference-time alignment. In International Conference on Machine Learning, pages 25075–25126. PMLR, 2025.
[14] Hadi Khalaf, Claudio Mayrink Verdun, Alex Oesterling, Himabindu Lakkaraju, and Flavio Calmon. Inference-time reward hacking in large language models. In The Thirty-ninth Annual Conference on Neural Information Processing Systems.
[15] Seungone Kim, Jemin Shin, Yejin Cho, Joel Jang, Shayne Lu, and Minjoon Seo. Prometheus 2: An open source language model specialized in evaluating other language models. arXiv preprint arXiv:2405.01535, 2024.
[16] Jonathan Lebensold, Doina Precup, and Borja Balle. On the privacy of selection mechanisms with gaussian noise. In International Conference on Artificial Intelligence and Statistics, pages 1495–1503. PMLR, 2024.
[17] Xuechen Li, Tianyi Zhang, Yann Dubois, Rohan Taori, Ishaan Gulrajani, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. Alpacaeval: An automatic evaluator of instruction-following models. https://github.com/tatsu-lab/alpaca_eval, 2023.
[18] Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. In The twelfth international conference on learning representations, 2023.
[19] Frank McSherry and Kunal Talwar. Mechanism design via differential privacy. In IEEE Symposium on Foundations of Computer Science (FOCS), 2007.
[20] Reiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, et al. Webgpt: Browser-assisted question-answering with human feedback. arXiv preprint arXiv:2112.09332, 2021.
[21] Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. Advances in neural information processing systems, 36:53728–53741, 2023.
[22] Ryan M Rogers, Gennady Samorodnitsk, Steven Z Wu, and Aaditya Ramdas. Adaptive privacy composition for accuracy-first mechanisms. Advances in Neural Information Processing Systems, 36:15833–15854, 2023.
[23] Charlie Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. Scaling llm test-time compute optimally can be more effective than scaling model parameters. arXiv preprint arXiv:2408.03314, 2024.
[24] Nisan Stiennon, Long Ouyang, Jeffrey Wu, Daniel Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul F Christiano. Learning to summarize with human feedback. Advances in neural information processing systems, 33:3008–3021, 2020.
[25] Florian Tramèr, Gautam Kamath, and Nicholas Carlini. Position: Considerations for differentially private learning with large-scale public pretraining. In Forty-first International Conference on Machine Learning.
[26] Claudio Mayrink Verdun, Alex Oesterling, Himabindu Lakkaraju, and Flavio P Calmon. Soft best-of-n sampling for model alignment. In 2025 IEEE International Symposium on Information Theory (ISIT), pages 1–6. IEEE, 2025.
[27] Liangyu Wang, Junxiao Wang, Jie Ren, Zihang Xiang, David E Keyes, and Di Wang. Private training large-scale models with efficient dp-sgd. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
[28] Jason Wei, Xuezhi Wang, Dale Schuurmans, Bosma Maarten, Brian Ichter, Fei Xia, Ed Chi, Quoc Le, and Denny Zhou. Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems (NeurIPS), 35:24824–24837, 2022.
[29] Justin Whitehouse, Aaditya Ramdas, Ryan Rogers, and Steven Wu. Fully-adaptive composition in differential privacy. In International conference on machine learning, pages 36990–37007. PMLR, 2023.
[30] Joy Qiping Yang, Salman Salamatian, Ziteng Sun, Ananda Theertha Suresh, and Ahmad Beirami. Asymptotics of language model alignment. In 2024 IEEE International Symposium on Information Theory (ISIT), pages 2027–2032. IEEE, 2024.
[31] Da Yu, Saurabh Naik, Arturs Backurs, Sivakanth Gopi, Huseyin A Inan, Gautam Kamath, Janardhan Kulkarni, Yin Tat Lee, Andre Manoel, Lukas Wutschitz, et al. Differentially private fine-tuning of language models. arXiv preprint arXiv:2110.06500, 2021.
[32] Yue Yu, Qiwei Di, Quanquan Gu, and Dongruo Zhou. On the limits of test-time compute: Sequential reward filtering for better inference. arXiv preprint arXiv:2512.04558, 2025.
[33] Yizhou Zhang, Kishan Panaganti, Laixi Shi, Juba Ziani, and Adam Wierman. Kl-regularization itself is differentially private in bandits and rlhf. arXiv preprint arXiv:2505.18407, 2025.
[34] Xingyu Zhou, Yulian Wu, and Francesco Orabona. A unified theoretical analysis of private and robust offline alignment: from rlhf to dpo. In International Conference on Machine Learning, pages 79366–79388. PMLR, 2025.
[35] Xingyu Zhou, Yulian Wu, Wenqian Weng, and Francesco Orabona. Square χpo: Differentially private and robust χ2-preference optimization in offline direct alignment. In International Conference on Machine Learning, pages 79389–79413. PMLR, 2025.
A Related work
Best-of-N theory. Beirami et al. [2] and Yang et al. [30] analyze BoN's KL-reward tradeoff. Verdun et al. [26] introduce Soft BoN (SBoN), showing O(1/n) convergence to the KL-regularized optimum. Aminian et al. [1] derive KL and regret bounds for SBoN under proxy reward error. Our MBON mechanisms are algorithmically equivalent to SBoN; the novelty lies in the privacy derivation of σ, the regret optimality proof, and the PrivITP extension. Khalaf et al. [14] characterize inference-time reward hacking; our reward hacking bounds (Section 3.2) complement their results by quantifying how noise injection caps the hacking gap. Yu et al. [32] show that sequential test-time compute dominates parallel methods such as BoN; extending PrivITP to the sequential setting is an open direction. Huang et al. [13] establish the regret skyline Ω(Cπ∗εRM2) and introduce InferenceTimePessimism, a χ2-regularized rejection sampling algorithm that achieves this bound.
Differential privacy in LLM alignment. All prior work on private alignment operates at training time. Zhang et al. [33] prove that KL-regularization itself provides DP for the trained policy. Zhou et al. [34] study private and robust offline RLHF under label DP. Wang et al. [27] propose DP-AdamW for private DPO fine-tuning. Zhou et al. [35] gives private and robust algorithms for training-based alignment. Prior work on private inference has studied differentially private prediction [7], private top-k selection [6], but the specific interaction between privacy noise and alignment quality in inference-time methods has not been analyzed. Our work is the first to provide formal privacy guarantees at inference time, protecting the reward model's training data during deployment rather than during training.
B Proofs for Private Best-of-N
We provide detailed proofs for every result stated in the main text.
B.1 Proof of Theorem 3.1: PrivBoN Privacy
Proof. Condition on the candidate set y1:n, drawn i.i.d. from π0(⋅∣x) independently of D. The Gumbel-max trick states that if g1,…,gn∼iidGumbel(0,σ), then:
The first factor is at most eΔr/σ=eε/2 (since ∣r^D−r^D′∣≤Δr). For the second factor, each term in the numerator sum is at most eΔr/σ times the corresponding denominator term, so the ratio is at most eΔr/σ=eε/2. Combined: the likelihood ratio is at most eε.
Since the output yi∗ is a deterministic function of i∗ and y1:n (post-processing), and y1:n is independent of D, the overall mechanism is ε-DP.
B.2 Proof of Proposition 3.2: PrivBoN Closed-Form Policy
Proof. For brevity, we denote r(x,y):=r^D(x,y). Note that the event {y∗=y} decomposes as ⋃i=1n{i∗=i,yi=y}. These are disjoint (only one index wins), so:
where inside the inner expectation, we have used the probability of selecting candidate 1 using the Gumbel-max trick.
Now, since y1∼π0(⋅∣x), we have Ey1[1{y1=y}f(y1)]=π0(y∣x)f(y). Applying this identity yields the stated formula.
BoN Recovery ( σ→0) Note that πPrivBoN(y∣x)=nπ0(y∣x)Ey2:n[er1/σ+∑j=2nerj/σer1/σ], where r1=r(x,y) and rj=r(x,yj) for j≥2. Inside the expectation, consider the softmax share for candidate 1:
If r1>M (i.e., r1 is the unique maximum), then (M−r1)/σ→−∞ when σ→0, so the softmax share ψ(r1)=→1. If r1<M, then (M−r1)/σ→+∞, so the softmax share ψ(r1)=→0. If r1=M (tie), then the limit depends on the number of ties, but ties have probability zero under continuous reward distributions.
Step 1: Bounding (A). Regret of PrivBoN under infinite samples
Define the shorthand Eπ[f]:=Ey∼π(⋅∣x)[f(x,y)] for any function f:X×Y→R and KL(π∥π′):=KL(π(⋅∣x)∥π′(⋅∣x)). Now, write the true reward in terms of the proxy: r∗(x,y)=r(x,y)−ϵ(x,y). Then
Now ϵ(x,y)∼N(0,σr2(x)) under π0. So, the tilted distribution of ϵ(x,y) under π∞ has density N(σr2(x)/σ,σr2(x)). Therefore we get
Ey∼π∞(⋅∣x)[ϵ(x,y)]=σσr2(x).(12)
Combining (9), (10), (11), and (12):
(A)≤2σ(Cπ∗−1)+Cπ∗εRM+σεRM2.(13)
Bounding (B): Finite-sample gap. Let wk=er(x,yk)/σ and fk=r∗(x,yk) for candidates y1,…,yn∼π0. Assume that r(x,y)∈[a,b] with range c=b−a, we have wk∈[ea/σ,eb/σ]. Since r∗∈[0,Rmax], we have fk∈[0,Rmax]. By the Gumbel-max trick, the selected candidate yi∗ is drawn from the softmax distribution Pr[i∗=k∣y1:n]=wk/∑jwj, so
where Z^n=n1∑kwk and Z^n(r)=n1∑kwkfk are empirical means, with population counterparts Z=Eπ0[w]≥ea/σ and Z(r)=Eπ0[wf], where w=er(x,y)/σ and f=r∗(x,y), so that J(π∞;x)=Z(r)/Z.
Bound on the bad event. Both Z^n(r)/Z^n and Z(r)/Z are weighted averages of values in [0,Rmax] (the former is a convex combination of fk∈[0,Rmax]; the latter is E[wf]/E[w] with f∈[0,Rmax]). Hence, their difference is bounded by Rmax. Thus
The regret bound is modulo the assumption that r(x,y)∈[a,b] with range c=b−a. Under the Gaussian error model r(x,y)=r∗(x,y)+ϵ(x,y) with ϵ(x,y)∼N(0,σr2(x)), the reward is unbounded. We handle this by conditioning on the high-probability event F:={maxk∣ϵ(x,yk)∣≤σr2log(n/Δr)}, which has Pr[F]≥1−Δr by Gaussian tail and union bound. On F, the rewards lie in [−σr2log(n/Δr),Rmax+σr2log(n/Δr)], so the bounded analysis applies with effective range c=Rmax+2σr2log(n/Δr). On Fc, the regret is bounded trivially by Rmax, contributing RmaxΔr. Setting Δr=1/n, the effective range becomes c=O(Rmax+σrlogn). Substituting this, we get
B.4 On the Gaussian-error assumption in Theorem 3.3
The Gaussian-error assumption in Theorem 3.3 gives the closed form Eπ∞[ϵ(x,y)]=σr2(x)/σ, which we use to derive the exact ϵRM2/σ overoptimization term. Under a general mean-squared-error assumption Eπ0[ϵ(x,y)2]=ϵRM2(x), an application Cauchy–Schwarz inequality yields only ∣Eπ∞[ϵ]∣≤Cπ∞(x)ϵRM(x), where Cπ∞ is the coverage of the tilted policy. Since Cπ∞ scales as exp(Rmax/σ) in the worst case, the overoptimization term inflates, weakening the “privacy is free” threshold.
The finite-sample analysis conditions on a high-probability boundedness event via a Gaussian tail bound (the union bound Pr[maxk∣ϵ(x,yk)∣≤σr2log(n/δ)]≥1−δ). For sub-Gaussian errors with parameter σr the analysis goes through unchanged up to constants. For bounded rewards ∣r^D∣≤B, the tail step becomes trivial, but B replaces σrlogn in the effective reward range, tightening the finite-sample term when B≪σrlogn and loosening it otherwise.
The qualitative conclusions—bias-variance trade-off in σ, existence of an ϵ∗ threshold above which privacy is free, and regret going down with n—hold under the general mean-squared-error assumption. The clean form of the threshold ϵ∗(x)=2ΔrCπ∗(x)/ϵRM(x), however, is specific to the Gaussian case.
B.5 Proof of Proposition 3.6 (Win-Rate Bound and Reward hacking)
Proof. (a) Win-rate. For brevity, we denote r(x,y):=r^D(x,y). Define ri=r(x,yi) for i∈[n] and r0=r(x,y0). Let pi=Pr(ri≥r0∣yi) where y0,yi∼π0(⋅∣x) independently.
We know that as n→∞, πPrivBoN→π∞ where π∞(y∣x)∝π0(y∣x)er(x,y)/σ.
For Gaussian rewards r(x,y)∼N(r∗(x,y),σr2(x)) under π0. Now, the tilted distribution of r(x,y) under π∞ has density N(r∗(x,y)+σr2(x)/σ,σr2(x)). Hence Y∼π∞(⋅∣x) has reward rY∼N(r∗(x,y)+σr2(x)/σ,σr2(x)) and Z∼π0(⋅∣x) has reward rZ∼N(r∗(x,y),σr2(x)). Then:
rY−rZ∼N(σr2(x)/σ,2σr2(x)).
So WinRate ∞PrivBoN=Pr(rY≥rZ)=Φ(σr2(x)/(σ2σr(x)))=Φ(σr(x)/(σ2))<1.
(b) Reward hacking. Denote r(x,y):=r^D(x,y), ri:=r(x,yi) and ϵi:=ϵ(x,yi). For any fixed candidate set y1:n, BoN selects i∗=argmaxiri. This maximizes E[ri∗] over all (possibly randomized) selection rules, since the deterministic arg max is optimal. PrivBoN's softmax selection is a specific randomized rule, hence suboptimal: Ey∼πPrivBoN(⋅∣x)[r(x,y)]≤EπBoN(⋅∣x)[r(x,y)].
For BoN, the hacking gap is Ey∼πBoN(⋅∣x)[ϵ(x,y)]=Ey1:n[∑i=1n1{i∗=i}ϵi]≤Ey1:n[maxi=1nϵi]. Since each ϵi∼N(0,σr2(x)) under π0 and independent, we have E[maxiϵi]=O(σr(x)logn) by standard results on Gaussian maximum.
In the limit n→∞, we have πPrivBoN→π∞, where π∞(y∣x)∝π0(y∣x)er(x,y)/σ. Now ϵ(x,y)∼N(0,σr2(x)) under π0. So, the tilted distribution of ϵ(x,y) under π∞ has density N(σr2(x)/σ,σr2(x)). Therefore, the hacking gap of PrivBoN becomes Ey∼π∞(⋅∣x)[ϵ(x,y)]=σσr2(x) in the limit n→∞.
C Proofs for Private Inference-Time Pessimism
C.1 Proof of Theorem 4.1 (PrivITP Privacy)
Proof. We analyze the two phases separately and combine them via basic composition.
Phase 1. Define λ∗(D) as the unique solution to
FD(λ):=n1i=1∑nrelu(β−1(r^D(x,yi)−λ))=1,
where the candidates y1,…,yn∼π0(⋅∣x) are drawn independently of D. The function FD is continuous and strictly decreasing in λ, with FD(λ)→∞ as λ→−∞ and FD(λ)=0 for λ≥maxir^D(x,yi), so the solution exists and is unique.
Sensitivity of λ∗. For adjacent datasets D∼D′ and each candidate yi, we have ∣r^D(x,yi)−r^D′(x,yi)∣≤Δr. Since relu(β−1(z−λ)) is monotone increasing in z, this gives pointwise
Setting λ=λ∗(D′), so FD′(λ∗(D′))=1=FD(λ∗(D)), we obtain
• Upper bound: 1≤FD(λ∗(D′)−Δr), so by monotonicity of FD, λ∗(D′)−Δr≤λ∗(D), i.e., λ∗(D′)≤λ∗(D)+Δr.
• Lower bound: 1≥FD(λ∗(D′)+Δr), so λ∗(D′)+Δr≥λ∗(D), i.e., λ∗(D′)≥λ∗(D)−Δr.
Combining both, we get ∣λ∗(D)−λ∗(D′)∣≤Δr.
Gaussian mechanism. Since λ∗:D→R is a scalar deterministic function with global sensitivity at most Δr, releasing λ~=λ∗(D)+ζ with ζ∼N(0,σX2) is the scalar Gaussian mechanism [8], yielding (ε1,δ)-DP with ε1=Δr2ln(1.25/δ)/σX.
Phase 2. Fix λ (released privately from Phase 1, treated as public for the ex-post analysis) and fresh candidates y1′,…,yn′∼π0(⋅∣x) (independent of D). Let qi:=r^D(x,yi′)∈[0,Rmax]. At each round, Phase 2 computes r~i=qi+gi′ with gi∼N(0,σZ2), weight wi=relu(β−1(r~i−λ~)), and acceptance ξi∼Bernoulli(min(wi/M,1)). The halting time is t∗=min{i:ξi=1}.
Reformulation as randomized threshold. We show rejection sampling is equivalent in distribution to a threshold check with a randomized effective threshold. Let ui∼Unif[0,1] be fresh independent uniform noise.
Indeed: (a) if r~i<λ~, both sides are zero; (b) if λ~≤r~i≤λ~+βM, the LHS equals wi/M=(r~i−λ)/(βM), and the RHS equals Pr[ui≤(r~i−λ~)/(βM)]=(r~i−λ)/(βM); (c) if r~i>λ~+βM, both sides are one.
With this reformulation, Phase 2 accepts candidate i iff gi≥λ~+βMui−qi, where (gi,ui) are independent fresh noise, independent across rounds.
Halting probability. Since the noise is independent across rounds, the probability of halting at time t factorizes:
Pr[t∗=t∣D]=i=1∏t−1(1−pi(D))⋅pt(D),
where the per-round acceptance probability (marginalizing over both gi and ui) is
Ratio under coupling. Under the coupling where all noise variables (gi,ui) are shared between D and D′, let qi′:=r^D′(x,yi′) and δi:=qi−qi′∈[−Δr,Δr]. Define
Worst-case shifts. The function Ai(qi′,δ) is decreasing in δ (larger δ shrinks Φ's argument), so Ai(qi′,δi)/Ai(qi′,0) is maximized at δi=−Δr for i<t. The function Bt(qt′,δ) is increasing in δ, so Bt(qt′,δt)/Bt(qt′,0) is maximized at δt=+Δr.
Worst-case query values. After fixing the shifts, each ratio factor depends only on qi′ through the arguments of Φ. It holds that (see Lemma C.2)
(i) For i<t: Ai(qi′,−Δr)/Ai(qi′,0) is non-decreasing in qi′∈[0,Rmax], maximized at qi′=Rmax.
(ii) For i=t: Bt(qt′,Δr)/Bt(qt′,0) is non-increasing in qt′, maximized at qt′=0.
Final bound. Substituting qi′=Rmax for i<t (with shift δi=−Δr) and qt′=0 (with shift δt=+Δr):
The factors for i=1,…,t−1 are identical (since the expression depends on i only through ui, and the ui's are i.i.d.), so their product is the first factor raised to the power t−1. Taking logarithms yields (4.1).
Composition. By basic composition of DP mechanisms, PrivITP satisfies (ε1+ε2post(t),δ)-DP ex-post.
Lemma C.2 (Monotonicity of Gaussian CDF ratios under uniform averaging). Let τ∼Unif[Q,R] with Q<R, and let Δ>0. Define, for x∈R,
Then R1(x) is non-decreasing in x and R2(x) is non-increasing in x.
Proof. The sign condition for both ratios reduces to log-concavity of a single auxiliary function, which is then established via the Prékopa–Leindler inequality.
Write N(x)=∫QRΦ(τ−x+Δ)dτ and D(x)=∫QRΦ(τ−x)dτ, so that R1(x)=N(x)/D(x). Since dxdΦ(τ−x+Δ)=−ϕ(τ−x+Δ),
Both factors are log-concave: Φ is log-concave and 1[−b,−a] is the indicator of a convex set, hence log-concave. By the Prékopa–Leindler inequality, the convolution of log-concave functions is log-concave. Therefore F is log-concave in t, which establishes R1′(x)≥0.
Similarly, set N(x)=∫QRΦ(x−τ+Δ)dτ and D(x)=∫QRΦ(x−τ)dτ, so that R2(x)=N(x)/D(x). Substituting v=x−τ gives
N(x)=F(Δ),D(x)=F(0),whereF(t):=∫x−Rx−QΦ(v+t)dv.
Since dxdΦ(x−τ+Δ)=ϕ(x−τ+Δ), the same computation yields R2′(x)≤0 if and only if
F′(Δ)F(0)≥F(Δ)F′(0),i.e.,F(Δ)F′(Δ)≥F(0)F′(0).
But F is again a convolution of Φ with an indicator, hence log-concave in t by the same argument. Log-concavity gives (logF)′=F′/F non-increasing, which is precisely the required inequality. Therefore R2′(x)≤0.
C.2 Proof of Theorem 4.3 (DP-ITP Regret)
We analyze the regret of PrivITP against an arbitrary comparator policy π∗ using a unified smoothed-relu framework: both the Phase 1 threshold noise and the Phase 2 query noise induce policies whose weights differ from Huang et al.'s ideal χ2-policy by a bounded pointwise amount, and the regret gap is controlled uniformly by a single smoothed-weight lemma.
Proof. Define r(x,y):=r^D(x,y) for brevity. Let πχβ denote the χ2-regularized policy with clean rewards r(x,y) and empirical threshold λ∗, i.e.,
where λ∗ is defined by n1∑i=1nrelu(β−1(r^D(x,yi)−λ))=1 [13, Lemma C.1]. Let πPrivITP denote the actual policy induced by Algorithm 2, marginalizing over all Phase 1 and Phase 2 noise and over the rejection sampling randomness.
Regret Decomposition. Introduce two intermediate policies:
where λ~=λ∗+ζ with ζ∼N(0,σX2). The policy πb uses the noisy threshold λ~ with clean rewards; πwˉ additionally marginalizes the Phase 2 Gaussian noise.
Now, we decompose the (expected) regret of PrivITP as
We now establish a lemma that will help us bound the remaining terms.
Lemma C.3 (Smoothed-weight policy comparison). Let w1,w2:Y→R≥0 be non-negative weight functions with normalizations Zi=Eπref[wi]>0, and let πi(y)=πref(y)wi(y)/Zi. Suppose ∥w1−w2∥∞≤η. Then:
Term (B2): Phase 2 noise effect. Define the Gaussian-smoothed relu φτ:R→R≥0 by
φτ(z):=Eg∼N(0,τ2)[relu(z+g)]=zΦ(z/τ)+τϕ(z/τ),
where Φ,ϕ are the standard Gaussian CDF and PDF. Setting τ=σZ/β, we have wˉ(x,y)=φτ(β−1(r(x,y)−λ~)).
Note that φτ(z)−relu(z)≥0 by Jensen inequality applied to the convex relu function. Moreover, observe that
zsup(φτ(z)−relu(z))=φτ(0)=τϕ(0)=2πτ,
as maximum holds at z=0 by standard calculus on h(z)=φτ(z)−relu(z):h′(z)=Φ(z/τ)>0 for z<0 and h′(z)=Φ(z/τ)−1<0 for z>0. Therefore, we get
∥wb−wˉ∥∞≤2πτ=β2πσZ.
This yields ∣Zb−Zwˉ∣≤∥wb−wˉ∥∞≤σZ/(β2π).
On the event G1:={∣ζ∣≤β/2}, we have ∣Zb−1∣=∣Zb−Z∗∣≤∣ζ∣/β≤1/2. Hence, on G1, we have Zb≥1/2. Hence by Lemma C.3 with η=σZ/(β2π) and max(Zb,Zwˉ)≥Zb≥1/2, we obtain
Term (B3): Finite-sample and truncation correction. We bound the gap between the Phase 2 target policy πwˉ and the actual algorithm output πPrivITP, which arises from the finite number of candidates and the handling of unbounded Gaussian query noise via truncation. The analysis proceeds by conditioning on the Phase 1 noise ζ, applying a rejection sampling argument for each fixed ζ, and then averaging.
Conditioning on ζ.
Recall λ~=λ∗+ζ with ζ∼N(0,σX2). Both πwˉ and πPrivITP depend on ζ through λ~. For each fixed ζ, define the conditional target
and let πPrivITP(ζ) denote the algorithm's output distribution conditional on ζ (marginalizing over Phase 2 candidates, Phase 2 noise, and rejection sampling uniform samples). The full distributions satisfy J(πwˉ)=Eζ[J(πwˉ(ζ))] and J(πPrivITP)=Eζ[J(πPrivITP(ζ))]. By the triangle inequality
It suffices to bound the conditional gap for each ζ in the “good event” G1:={∣ζ∣≤β/2}. Under this event, Zb(ζ)≥1/2. Since φτ(z)−relu(z)≥0 (by Jensen applied to the convex relu), we get wˉ(ζ)≥wb(ζ) and thus Zwˉ(ζ)≥1/2. The gap under G1c can be bounded by Rmax.
Phase 2 event decomposition (fix ζ∈G1).
The Phase 2 algorithm draws n i.i.d. triples (yj′,gj′,Uj)j=1n where yj′∼π0(⋅∣x), gj′∼N(0,σZ2), Uj∼Unif[0,1]. Define the per-trial weight
Wj:=relu(β−1(r(x,yj′)+gj′−λ~)),
and truncation level
M:=(Rmax+σZL−λ~)/β,L:=2log(n/δ),
for a parameter δ∈(0,1) to be chosen.
Note that λ∗∈[−β,Rmax−β] from Huang et al. [13, Lemma C.1]. On G1={∣ζ∣≤β/2} and hence λ~≤Rmax−β/2, hence M≥(σZL+β/2)/β≥1/2>0 on G1.
Now, the algorithm accepts at step j if Uj≤min(Wj/M,1). The output Y∗ is the first accepted candidate (or a fallback Y∗∼π0(⋅∣x) if no acceptance occurs). Define three events on the Phase 2 randomness (conditional on Phase 1 randomness ζ):
S:=Tc∩Fc (success: no truncation and at least one acceptance).
Bounding Pr[T∣ζ].
On G1, the event Wj>M implies r(x,yj′)+gj′>Rmax+σZL. Since r(x,yj′)≤Rmax, this implies gj′>σZL. By the Gaussian tail bound, for any L>0, we have
Pr[Wj>M]≤Pr[gj′>σZL]≤e−L2/2.
Substituting L=2log(n/δ), we get Pr[gj′>σZL]≤δ/n. A union bound over the n trials gives
We need an upper bound on the second term E[W1[W>M]]. Since M>0 on the event G1, the relu argument in W is positive on the event {W>M}. Furthermore, since {W>M}⊆{g′>σZL}, we have
On S, no trial has Wj>M, so the acceptance rule Uj≤Wj/M is the standard rejection sampling rule with a valid envelope M. Define the truncated target policy
Normalizing, we get p(y∣accept at step j,Wj≤M)=π0(y∣x)wˉM(ζ)(x,y)/Zwˉ,M(ζ)=πwˉ,M(ζ)(y∣x). Since each step conditional on acceptance and no truncation gives the same distribution, and the first-accepted-step stopping time does not bias this distribution, the output Y∗∣S∼πwˉ,M(ζ) exactly. □
by the same computation as in (21) and using M≤(Rmax+σZL+3β/2)/β on G1. The same bound applies to ∣Zwˉ(ζ)−Zwˉ,M(ζ)∣. Applying Lemma C.3 with η=βn(Rmax+σZ(L+1)+3β/2)δ and since max(Zwˉ(ζ),Zwˉ,M(ζ))≥Zwˉ(ζ)≥1/2 on G1, we get
From (20) and (22), we have Pr[Sc∣ζ]≤δ+exp(−2Rmax+2σZL+3ββn+2δ). Setting δ≤1/n and n such that n/logn≥(2Rmax+2σZ3logn+3β)/β, we get Pr[Sc∣ζ]≤O(1/n).
Combining the requirement on n for Term (A) an (B3), the bounds holds for n=max{Ω(βRmaxlog(βϵRMRmax)),Ω(βRmax+σZ)}.
D Multi-Query Deployment: Proof of proposition 4.5
Proof. Privacy follows directly from Lebensold et al. [16, Theorem 11]: Algorithm 3 is an instance of their Filtered Composition framework with εmax,t=εmax (worst-case PrivITP bound) and εpost,t(ot)=ε1+ε2post(tτ) (ex-post PrivITP bound from Theorem 4.1). Since PrivITP is both (εmax,δ)-pDP (via its worst-case bound) and εpost,τ-ex-post-DP (via Theorem 4.1), the filter condition ensures the cumulative ex-post cost never exceeds εtotal, and the pDP bound handles the tail risk in the final query.
The bound is a direct consequence of the stopping rule: the algorithm halts when εspent+εmax≥εtotal, so by Wald's identity applied to the cumulative cost process, E[T∗]⋅E[ετ]≥εtotal−εmax, giving the stated lower bound (ignoring the boundary term).
Remark D.1 (Comparison with privacy filters). An alternative to FSRC is the privacy filter framework of Rogers et al. [22], Whitehouse et al. [29], which provides a stopping rule based on the cumulative privacy cost computed via advanced composition. The key difference is that privacy filters use the worst-case per-query cost, while FSRC uses the actual ex-post cost. For PrivITP, where the ex-post cost is typically much smaller than the worst-case cost, FSRC yields strictly tighter deployment budgets. Lebensold et al. [16] demonstrate this advantage empirically, showing improvements in query throughput at the same total privacy budget.
Algorithm 3 PrivITP with Filtered Self-Reporting Composition
Require: Total privacy budget ( εtotal,δ); stream of prompts x1,x2,…; PrivITP hyperparameters (β,σX,σZ,L)
1: Set cumulative privacy spend εspent←0
2: Compute per-query worst-case bound εmax from Theorem 4.1 at t=n
3: for τ=1,2,… do
4: if εspent+εmax≥εtotal then
5: HALT
6: end if
7: Run PrivITP on xτ (Algorithm 2), obtaining response y∗(τ) and halting time tτ
8: Compute ex-post privacy cost ετ←ε1+ε2post(tτ) from Theorem 4.1
9: Update εspent←εspent+ετ
10: Release y∗(τ)
11: end for
E PrivBoN with Gaussian Noise
Gumbel noise in PrivBoN yields pure ϵ-DP and converges to a closed-form tilted policy. A natural question is whether Gaussian noise—standard in most DP analyses—offers comparable guarantees. We show here that Gaussian noise has qualitatively different properties that make it a less clean match for inference-time alignment, which motivates our choice of Gumbel noise.
Lemma E.1 (Privacy). Let r^D(x,⋅)∈[0,Rmax] with sensitivity Δr. Then, Algorithm 1 with gi∼iidN(0,σ2) satisfies pure ε-DP with
Proof. PrivBon with Gaussian noise is an instance of Gaussian Report Noisy Max applied to the n reward scores r^D(x,y1),…,r^D(x,yn), each bounded in [0,Rmax] with sensitivity Δr. The result follows directly from Lebensold et al. [16, Theorem 8], which establishes pure ε-DP for Gaussian Report Noisy Max over bounded queries with the closed-form expression in (26). The proof identifies the worst-case reward configurations on adjacent datasets D∼D′ via a monotonicity argument, then expresses the privacy loss as a ratio of Gaussian expectations over products of CDFs.
The bound is computable via numerical integration (see 16, Section 3.4) and depends on the reward range Rmax, the sensitivity Δr, the noise scale σ, and the number of candidates n – but crucially does not require the approximate-DP slack δ. Unlike Gumbel noise, the privacy budget ϵ depends on n through a numerical integral, though the growth is very slow in practice.
Proposition E.2 (Policy). PrivBoN with Gaussian noise induces the selection probability wi=EZ[∏j=iΦ(Z+(r^D(x,yi)−r^D(x,yj))/σ)],i∈[n],where Z∼N(0,1).
Proof. Define ri:=r^D(x,yi) for brevity. The derivation follows the same symmetry argument as Theorem 3.2. The only difference is the selection probability. Candidate i wins if ri+gi≥rj+gj for all j=i. Conditioning on gi=σ⋅z, where z∼N(0,1), we get
The rest (symmetry reduction, tower property, marginal policy) is identical to the Gumbel case with wi replacing the softmax weight.
This probit integral has no closed-form simplification for general n. Unlike the Gumbel case, PrivBON with Gaussian noise does not converge to a tilted policy as n→∞: Gaussian extreme value theory dominates, and the selection concentrates on the candidate with the highest r^D, recovering hard BoN in the limit rather than a smoothed distribution.
F Details on Experiments
F.1 Experimental Setup
Compute resources. All experiments were run using 4 parallel 48GB GPU cards and one 140 GB GPU card. The time to generate responses and score them depends on the size of the base and reward models – the larger the models, the longer the inference time.
Datasets. We evaluate on three benchmarks with verifiable ground-truth correctness, assigning r∗(x,y)=1 for correct answers and 0 otherwise. GSM8K [5] is the standard 1K-prompt grade-school math test split. MMLU [11] covers ∼100 college-level multiple-choice questions each in math and chemistry. MATH-500 [18], a widely adopted, representative subset of 500 test problems from the original MATH dataset [12]. We use zero-shot Chain-of-Thought prompting [28] throughout.
Reward models. We use four reward models as the proxy r^D: Oasst-RM (Pythia-1.4b), Gemma-RM (Gemma-2-2b), Llama-RM (Llama-3-3b) and Armo-RM (Llama-3-8b). The reference policy πref (denoted interchangeably π0) is Gemma-2-2B-Instruct and Phi-3-Mini-Instruct.
Sampling and evaluation. For each prompt, we sample 10K responses at temperature 1 from πref, then draw M=50 bootstrap replicates of n responses and run each algorithm on every replicate. Per-prompt accuracy is the fraction of replicates yielding a correct answer; reported accuracy averages over prompts, with standard errors estimated across prompt distribution.
F.2 Ablation: Noise Scale for PrivBoN
The noise scale σ in PrivBoN controls both the privacy budget ( ε=2Δr/σ) and the strength of KL-regularization, with Theorem 3.3 predicting an optimal σ∗=εRM/Cπ∗ balancing under-regularization (reward hacking) and over-regularization (suppressing the reward signal). Since Cπ∗ is not computable in practice, to select σ for the experiments above, we sweep σ and report accuracy lift, and expected proxy reward in Figure 2 on a held out set. The resulting profile is single-peaked: small σ allows reward hacking (accuracy drops as PrivBoN approaches BoN's behavior), while a large σ over-regularizes (accuracy drops toward πref). We use the empirically best σ for the main results in Table 2. The same σ is also taken as a total noise in PrivITP for a fair comparison.
F.3 Ablation: Regularization for ITP
The regularization parameter β in ITP and PrivITP plays a role analogous to σ in PrivBoN, with Theorem 4.3 predicting an optimal β∗ that balances χ2-bias against overoptimization and privacy noise. Sweeping β∈{0.0005,0.001,0.005,0.01,0.05,0.1,0.5}, and reporting accuracy lift, and expected proxy reward in Figure 3, we find the empirically best β on a held out set. Crucially, we observe that PrivITP's optimal β is essentially independent of the privacy budget ε—validating Theorem 4.3's decoupling claim that regularization and privacy can be tuned separately. We use the empirically best β for the main results in Table 2.
F.4 Algorithm comparison across reward models and datasets
We compare four algorithms (BoN, PrivBoN, ITP, and PrivITP) across four reward models (Oasst, Gemma, Llama, Armo) and three datasets (GSM8K, MMLU, MATH), fixing the base policy to Gemma-2-2b-Instruct and Phi-3-Mini-Instruct. For each (algorithm, RM, dataset) configuration, we sweep the number of candidates N∈{2,4,8,16,32,64,128,256,512,1024,2048,4096} (interchangeably denoted by n). Private algorithms are calibrated to the empirical best σ obtained for
PrivBoN from the ablation study; non-private ITP serves as the regret-optimal skyline. We report two quantities per configuration: (a) accuracy lift over πref, measuring true-reward performance, and (b) expected proxy reward E[r^D] under each algorithm's output distribution, measuring how aggressively each algorithm exploits the reward model. Figures 4 to 6 present the results for the base policy Gemma-2-2b-Instruct, one figure per dataset, each with a 4×2 grid: rows index reward models, the left column shows accuracy lift vs. N, the right column shows expected proxy reward vs. N. In a similar way, Figures 7 to 9 present the results for the base policy Phi-3-Mini-Instruct. Figures 10 to 12 compare % accuracy lift of ITP vs. PrivITP for different values of σ on GSM8K, MMLU and MATH datasets respectively under Gemma2-2B-Instruct base policy, showing privacy-utility trade-off. Table 2 summarizes the results at N=212 across all datasets and RMs for Gemma2-2B-Instruct base policy whereas Table 3 summarizes the results at N=212 across all datasets and RMs for Llama-3.2-3B-Instruct base policy
Three patterns hold consistently (except, in some cases, for the harder MATH dataset). First, BoN's accuracy lift exhibits the reward-hacking signature: it rises with N initially, then decreases starts decreasing, while its expected proxy reward continues to climb monotonically. The two curves diverge—a demonstration of Goodhart's law—confirming that BoN exploits proxy errors at the cost of true reward. Second, PrivBoN, ITP, and PrivITP are all scaling-monotone: accuracy lift improves (or plateaus) with N and proxy reward saturates rather than diverging. Third, PrivITP dominates PrivBoN on every (RM, dataset) configuration where both provide positive lift, and on GSM8K it recovers between 60% and 95% of the non-private ITP skyline; on MMLU and MATH, where the skyline itself is small or noisy, PrivITP closely tracks ITP within standard error. The proxy-reward panels make the mechanism visible: PrivITP's expected proxy reward saturates at a level above PrivBoN's, indicating that PrivITP's χ2-pessimism allows more aggressive exploitation of informative reward signals while still preventing overfitting to errors. Similar to Huang et al. [13], we also observe that ITP variants tend to have higher average performance than BoN variants, although in many instances this difference is not statistically significant.
F.5 FSRC composition
We supplement the main-text composition experiment (Figure 1(bottom right)) with sweeps across reward models using Gemma2-2B-Instruct base policy on GSM8K dataset with εtotal=50. See Figure 13. Three patterns hold. (i) Absolute query counts increase with σ for both FSRC and standard composition, since larger noise lowers the per-query privacy cost faster than it raises the expected halting time E[t]; both compositors benefit, but FSRC retains its advantage. (ii) The FSRC answers ∼3× more queries, reflecting the gap between worst-case εmax and realized E[ετ]. (iii) Empirical halting time admits tτ≪n, confirming faster rejection ( E[tτ]=O(1)). These results confirm that the FSRC gain is structural – driven by the ex-post bound’s halting-time dependence.
G Additional Experiments and Analysis
G.1 Open-Ended Evaluation (AlpacaEval-2.0)
We evaluate our method on the AlpacaEval-2.0 task [17] under the standard proxy/gold protocol. In this protocol, a weaker reward model (RM) is used as the proxy r^ for selection, and a strong held-out RM is used as the gold r∗ for scoring. Table 4 reports the gold win-rate (%) versus the base policy, showing the mean and standard error for Gemma-2-2B-Instruct across three proxy RMs (Gemma, Llama, and Armo). We utilize Prometheus-7B-v2.0 [15] as the gold r∗ and test across n∈{64,512,2048,4096}.
Observations: First, BoN does not exhibit reward hacking within the tested range, as the gold win-rate remains flat-to-rising as n increases (e.g., Llama increases from 92.32 to 93.16) rather than peaking and declining. This behavior is expected because AlpacaEval win-rates saturate near 90%+, and the proxy RMs track the gold judge closely enough that n≤4096 does not produce the proxy–gold divergence that drives hacking. Consequently, the private variants match BoN's utility to within standard error at every (n,RM) configuration while adding the privacy guarantee that BoN lacks. The private–non-private gaps are approximately 2–3 points and overlap within one standard error, demonstrating that open-ended generation privacy is obtained at no meaningful utility cost.
(a) Oasst-RM
(b) Gemma-RM
(c) Llama-RM
(d) Armo-RM
Figure 2: Ablation on noise level σ for PrivBoN on GSM8K dataset with Gemma-2-2b-Instruct as base model
(a) Oasst-RM
Accuracy Lift
Estimated Reward
(b) Gemma-RM
Accuracy Lift
Estimated Reward
(c) Llama-RM
Accuracy Lift
Estimated Reward
(d) Armo-RM
Figure 3: Ablation on regularization β for ITP on GSM8K dataset with Gemma-2-2b-Instruct as base model
Algorithm Comparison on GSM8K | oasst RM
Algorithm Comparison on GSM8K | gemma RM
Algorithm Comparison on GSM8K | Llama RM
Algorithm Comparison on GSM8K | ARMO RM
Figure 4: Comparison of BoN, PrivBoN, ITP, and PrivITP in accuracy and estimated reward r^ for GSM8K for four reward models and Gemma-2-2B-Instruct πref
Algorithm Comparison on MMLU (Math & Chem) | OASST RM
Algorithm Comparison on MMLU (Math & Chem) | Gemma RM
Algorithm Comparison on MMLU (Math & Chem) | Llama RM
Algorithm Comparison on MMLU (Math & Chem) | Armo RM
Figure 5: Comparison of BoN, PrivBoN, ITP, and PrivITP in accuracy and estimated reward r^ for MMLU for four reward models and Gemma-2-2B-Instruct πref
Estimated Reward
(a) Oasst-RM
Accuracy Lift
Estimated Reward
(b) Gemma-RM
Accuracy Lift
Estimated Reward
(c) Llama-RM
Accuracy Lift
Estimated Reward
(d) Armo-RM
Figure 6: Comparison of BoN, PrivBoN, ITP, and PrivITP in accuracy and estimated reward r^ for MATH for four reward models and Gemma-2-2B-Instruct πref
Estimated Reward
(a) Oasst-RM
Accuracy Lift
Estimated Reward
(b) Gemma-RM
Accuracy Lift
Estimated Reward
(c) Llama-RM
Accuracy Lift
Estimated Reward
(d) Armo-RM
Figure 7: Comparison of BoN, PrivBoN, ITP, and PrivITP in accuracy and estimated reward r^ for GSM8K for four reward models and Phi-3-Mini-Instruct πref
Estimated Reward
(a) Oasst-RM
Accuracy Lift
Estimated Reward
(b) Gemma-RM
Accuracy Lift
Estimated Reward
(c) Llama-RM
Accuracy Lift
Estimated Reward
(d) Armo-RM
Figure 8: Comparison of BoN, PrivBoN, ITP, and PrivITP in accuracy and estimated reward r^ for MATH for four reward models and Phi-3-Mini-Instruct πref
Estimated Reward
(a) Oasst-RM
Accuracy Lift
Estimated Reward
(b) Gemma-RM
Accuracy Lift
Estimated Reward
(c) Llama-RM
Accuracy Lift
Estimated Reward
(d) Armo-RM
Figure 9: Comparison of BoN, PrivBoN, ITP, and PrivITP in accuracy and estimated reward r^ for MMLU for four reward models and Phi-3-Mini-Instruct πref
ITP vs PrivITP: Accuracy Lift
(a) Oasst-RM
ITP vs PrivITP: Accuracy Lift
(b) Gemma-RM
ITP vs PrivITP: Accuracy Lift
(c) Llama-RM
(d) Armo-RM
Figure 10: ITP vs PrivITP for different σ on GSM8K dataset with Gemma-2-2b-Instruct base policy
ITP vs PrivITP: Accuracy Lift
(a) Oasst-RM
ITP vs PrivITP: Accuracy Lift
ITP vs PrivITP: Accuracy Lift
(b) Gemma-RM
ITP vs PrivITP: Accuracy Lift
(c) Llama-RM
ITP vs PrivITP: Accuracy Lift
(d) Armo-RM
Figure 11: ITP vs PrivITP for different σ on MMLU dataset with Gemma-2-2b-Instruct base policy
ITP vs PrivITP: Accuracy Lift
(a) Oasst-RM
ITP vs PrivITP: Accuracy Lift
ITP vs PrivITP: Accuracy Lift
(b) Gemma-RM
ITP vs PrivITP: Accuracy Lift
(c) Llama-RM
ITP vs PrivITP: Accuracy Lift
(d) Armo-RM
Figure 12: ITP vs PrivITP for different σ on MATH dataset with Gemma-2-2b-Instruct base policy
(a) Oasst-RM
(b) Gemma-RM
(c) Llama-RM
(d) Armo-RM
Figure 13: Advantage of FSRC composition in PrivITP’s ex-post privacy bound compared to the standard composition in ex-ante bound for different reward models and Gemma-2-2b-Instruct as base model
Table 2: Percentage lift in accuracy over base policy Gemma-2-2B-Instruct at n=212 candidates. Values are mean ± standard error over all prompts across the GSM8K, MMLU, and MATH test splits. Same (RM, dataset) configuration uses the same noise σ for private variants and the same regularization β for ITP variants.
Dataset
Algorithm
Oasst-RM
Gemma-RM
Llama-RM
Armo-RM
GSM8K
BoN
−6.46±0.92
0.75±0.97
16.70±1.12
3.43±1.07
PrivBoN
5.94±0.88
10.95±0.90
21.46±0.92
7.65±0.87
PrivITP
6.77±0.90
11.81±0.91
25.67±0.93
14.16±0.90
ITP
7.36±0.90
12.50±0.92
29.69±0.93
23.16±0.93
MMLU
BoN
10.55±2.21
11.09±2.24
8.59±2.18
23.18±2.89
PrivBoN
10.14±1.93
9.04±1.71
4.01±1.63
1.12±1.48
PrivITP
8.26±1.68
14.07±1.93
8.89±1.91
2.49±1.57
ITP
8.45±1.69
15.44±2.01
9.03±1.99
15.69±2.31
MATH-500
BoN
1.32±1.27
7.38±1.73
20.48±1.86
17.77±1.81
PrivBoN
−0.48±1.02
3.11±1.33
7.53±1.33
9.34±1.41
PrivITP
−0.42±1.02
5.44±1.43
14.03±1.53
15.01±1.57
ITP
0.01±1.05
6.61±1.51
16.56±1.64
16.98±1.68
Table 3: Percentage lift in accuracy over base policy Llama-3.2-3B-Instruct at n=212 candidates. Values are mean ± standard error over all prompts across the GSM8K, MMLU, and MATH test splits. Same (RM, dataset) configuration uses the same noise σ for private variants and the same regularization β for ITP variants.
Dataset
Algorithm
Oasst-RM
Gemma-RM
Llama-RM
Armo-RM
GSM8K
BoN
−0.41±1.06
4.68±1.00
19.96±0.75
16.94±0.14
PrivBoN
3.02±0.84
5.04±0.82
17.71±0.69
11.96±0.11
PrivITP
4.07±0.85
6.58±0.84
19.63±0.69
14.26±0.11
ITP
3.98±0.87
6.17±0.87
19.75±0.71
16.31±0.11
MMLU
BoN
7.66±2.68
7.83±2.88
−2.08±2.71
13.80±3.08
PrivBoN
3.26±1.94
6.70±2.09
2.55±1.97
13.78±3.08
PrivITP
5.76±2.07
8.78±2.27
4.64±2.10
13.87±2.68
ITP
7.90±2.25
9.14±2.40
9.27±2.45
8.18±2.28
MATH-500
BoN
−4.48±1.72
3.77±1.87
−8.16±1.82
−3.95±1.86
PrivBoN
0.34±1.58
2.70±1.62
2.16±1.63
1.35±1.59
PrivITP
0.46±1.58
4.14±1.66
3.83±1.67
2.21±1.61
ITP
0.73±1.60
5.79±1.71
6.52±1.80
6.24±1.73
G.2 Wall-Clock Overhead and Compute Cost
The actual computational cost for PrivITP is well below a naive 2× overhead because Phase 2 generation is lazy. Rejection sampling returns at the first accepted candidate at index t, meaning candidates only need to be generated on demand. Therefore, Phase 2 costs E[t] generations rather than n, and experiments show that E[t]=O(1) for informative RMs. The net generation cost is approximately n+E[t]. Table 5 reports the wall-clock time (seconds per query) of PrivITP compared to PrivBoN at n=256 on the GSM8K dataset using the Phi3-mini-instruct base model on a single H100 GPU.
PrivITP's overhead ranges from 6–14% across RMs, which is far below a 2× multiplier. The mechanism overhead itself is negligible in both approaches—PrivBoN draws n Gumbel scalars, while PrivITP draws one scalar Gaussian plus per-round noise, which cost microseconds compared to the n forward passes. Therefore, the gap is dominated primarily by Phase 1's scalar-estimation pass.
Table 4: Gold win-rate (%) vs. the base policy (Gemma-2-2B-Instruct) on AlpacaEval-2.0. We use Prometheus-7B-v2.0 as the gold judge r∗ and evaluate three different proxy reward models.
RM
n
BoN
PrivBoN
ITP
PrivITP
Gemma
64
90.82±1.91
88.35±2.08
90.56±1.99
87.89±2.23
512
92.19±1.72
89.65±1.97
90.30±1.97
89.78±1.95
2048
92.06±1.81
89.39±1.98
90.82±1.89
89.97±2.07
4096
92.38±1.84
90.17±2.02
90.36±1.95
91.15±1.84
Llama
64
92.32±1.87
89.39±1.90
92.32±1.78
89.19±2.03
512
91.73±1.82
89.32±2.03
91.93±1.66
90.62±1.92
2048
93.29±1.67
88.87±2.17
92.32±1.73
91.34±1.85
4096
93.16±1.76
89.39±2.01
92.19±1.73
90.89±2.03
Armo
64
91.47±1.77
88.93±2.10
92.45±1.67
87.63±2.18
512
92.19±1.64
89.45±2.15
90.49±1.99
90.04±1.89
2048
91.21±1.94
89.91±1.99
90.17±2.02
89.45±2.08
4096
92.64±1.75
89.52±2.11
91.02±1.87
89.65±2.03
Table 5: Wall-clock generation time (seconds per query) for PrivBoN and PrivITP at n=256. Evaluated on the GSM8K dataset using the Phi3-mini-instruct base model.
RM
Oasst
Gemma
Llama
Armo
PrivBoN
0.4145
0.9003
1.1804
0.4530
PrivITP
0.4704
0.9827
1.2838
0.4812
Overhead
+13.5%
+9.2%
+8.8%
+6.2%
G.3 Privacy Budgets and Sensitivity Analysis
In our practical implementation, we bound the sensitivity Δr=sup∣r^D−r^D′∣ using the maximum reward range Rmax, since a single example cannot move a bounded-output head beyond its fixed range. This provides an assumption-free bound when reward model training is outside of the deployer's control. Table 6 reports the privacy budgets across different noise levels for GSM8K with Armo-RM, evaluated at δ=10−2 and n=16. We compute ε=2Δr/σ for PrivBoN. For PrivITP, the total ex-post cost is ε1+ε2post, where Phase 1 costs ε1=Δr2ln(1.25/δ)/σX and Phase 2 costs ε2post(E[t]) calculated via one-dimensional numerical integration at the mean halting time.
Table 6: Privacy budgets (ε) across varying noise levels (σ) for Armo-RM evaluated on the GSM8K dataset. Budgets are computed at δ=10−2 and a fallback cap of n=16. PrivITP's ex-post cost (ε1+ε2post) is evaluated at the mean halting time E[t].
σ
ε (PrivBoN)
ε1
ε2post
ε1+ε2post (PrivITP)
0.10
7.80
24.25
23.25
47.50
0.25
3.12
9.70
8.49
18.19
0.50
1.56
4.85
3.48
8.33
0.75
1.04
3.23
2.22
5.45
1.00
0.78
2.42
1.43
3.85
While PrivBoN spans ε∈[0.78,7.80], PrivITP's worst-case ex-post total appears larger because it is evaluated at E[t] under conservative worst-case query values. However, its realized per-query cost is lower, and FSRC composition exploits this to answer approximately 3× more queries at a fixed total budget. Furthermore, tightening to δ=10−5 increases ε1 by a factor of only ≈1.56, and ε2post grows at most logarithmically in n because the halting time t is governed by the per-round acceptance probability where E[t]=O(1).
References (33)
Best-of-n through the smoothing lens: K1 divergence and regret analysis
Theoretical guarantees on the best-of-n alignment policy
Deep reinforcement learning from human preferences