Manuscript Offprint

arXiv:2608.26324

Privacy Without Regret: Differentially Private Inference-Time Alignment

Ishi Jain, Nandini Bhattad, Sayak Ray Chowdhury

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

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 ϵ\epsilon-differential privacy and implements KL-regularized alignment. Whenever the privacy budget exceeds a critical threshold ϵ∗\epsilon^*, 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 ϵ∗\epsilon^* depends on an unknown coverage coefficient, we introduce Private Inference-Time Pessimism (PrivITP), which combines χ2\chi^2-regularized rejection sampling with a two-phase Gaussian mechanism. PrivITP achieves ex-post ( ϵ\epsilon, δ\delta)-DP with a privacy cost independent of the number of responses nn, 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 nn), 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\pi_0, scores each with a learned reward model r^\hat{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^\hat{r} overestimates the true reward r∗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^\hat{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\hat{r}_{\mathcal{D}} deployed as a BoN selection service. An adversary wishing to determine whether a specific preference example (x0,y0+,y0−)(x_0, y_0^+, y_0^-) was in D\mathcal{D} can craft prompts whose plausible completions are structured around y0+y_0^+ and y0−y_0^-, 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\hat{r}_{\mathcal{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 ε\varepsilon-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/ε\sigma = 2\Delta_r/\varepsilon to reward scores before BoN selection yields a mechanism that simultaneously satisfies ε\varepsilon-DP and implements the KL-regularized alignment optimum in the large-n limit, where Δr\Delta_r is the reward-model sensitivity on DD. When the privacy budget exceeds the critical threshold ε∗(x)=2ΔrCπ∗(x)/εRM(x)\varepsilon^*(x) = 2\Delta_r\sqrt{C^{\pi^*}(x)}/\varepsilon_{\mathrm{RM}}(x), the privacy-mandated noise coincides with the regret-optimal regularization and privacy becomes “free”—PrivBoN’s regret O(Cπ∗εRM2)O(\sqrt{C^{\pi^*}\varepsilon_{\mathrm{RM}}^2}) matches the information-theoretic skyline of Huang et al. [13] at zero additional alignment cost. Here εRM\varepsilon_{\mathrm{RM}} denotes reward-model error and Cπ∗C^{\pi^*} the coverage coefficient of a comparator policy π∗\pi^*.

(2) Private Inference-Time Pessimism (PrivITP, Section 4). PrivBoN’s “privacy is free” threshold depends on the unknown coverage coefficient Cπ∗C^{\pi^*}, making it unverifiable in practice. Our main contribution, PrivITP, resolves this by combining χ2\chi^2-regularized rejection sampling with a two-phase Gaussian mechanism. We prove an ex-post approximate-DP guarantee with an nn-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⁡σ))O(\sqrt{C^{\pi^*}(\varepsilon_{\mathrm{RM}}^2 + R_{\max}\sigma)}) cleanly separates alignment error from privacy cost and matches the skyline up to noise inflation, where Rmax⁡R_{\max} is the maximum reward; the analysis relies on a smoothed-weight policy comparison lemma that bounds value gaps via the ℓ∞\ell_\infty-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.

References (33)