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. (2025). 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.
Figures & tables
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.
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
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.
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
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
Appendix
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
−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
Appendix
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.
Figure 2: Ablation on noise level σ for PrivBoN on GSM8K dataset with Gemma-2-2b-Instruct as base model
Figure 3: Ablation on regularization β for ITP on GSM8K dataset with Gemma-2-2b-Instruct as base model
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
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
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
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
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
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
Figure 10: ITP vs PrivITP for different σ on GSM8K dataset with Gemma-2-2b-Instruct base policy
Figure 11: ITP vs PrivITP for different σ on MMLU dataset with Gemma-2-2b-Instruct base policy
Figure 12: ITP vs PrivITP for different σ on MATH dataset with Gemma-2-2b-Instruct base policy
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
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
Appendix
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
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%
Appendix
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.
σ
ε (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
Appendix
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] .
Inference-time language model alignment steers or selects outputs during generation to better meet safety, preference, and task goals without retraining.