Aligned judge
Error can fall monotonically as $k$ grows. With the perfect reward in the best-of-$k$ limit, it decays as a power law in $k$.
ICML 2026
TL;DR More inference-time samples are not automatically better. With a well-aligned judge, reward-weighted sampling steadily reduces error; with a misspecified judge, there is a finite best sample count and a best temperature—after which extra compute can make performance worse.
The central question
Best-of-$k$ and LLM-as-a-judge systems spend inference-time compute by generating several candidate answers and using a reward model to choose among them. We theoretically analyze how the number of samples $k$, judge quality, reward temperature $T$, and training data jointly determine generalization.
Error can fall monotonically as $k$ grows. With the perfect reward in the best-of-$k$ limit, it decays as a power law in $k$.
A finite optimal $k$ appears when judge quality drops beyond a threshold. Beyond it, selecting more aggressively hacks the reward and increases error.
At fixed $k$, neither uniform weighting nor hard selection is always best. Reward sampling has an interior optimum $T$.
Task-Reward alignment magnitude controls whether inference time scaling is useful. Red marks reward parameters for which generalization improves monotonically with more inference samples; blue marks parameters with a finite optimal $k$. Lower temperature makes selection more aggressive and shrinks the robust red region.
Generic framework
Start with any probabilistic predictor, any reward used by a judge, and any task loss. Draw $k$ candidates and use a temperature-controlled softmax to rerank them.
$\mathbf{x}$ is the fixed test input; $\mathcal D$ is the data used to fit the base predictor.
The arbitrary conditional law $p(y\mid\mathbf{x},\mathcal D)$ from which candidates are generated.
$Y_1,\ldots,Y_k$ are independent draws from $p_{\mathbf{x}}$; $k$ is the inference-time sample budget.
The judge score used for selection. Larger $r$ gives a candidate more softmax weight.
The quantity we actually want to minimize; it need not be the negative of the reward.
$T\to\infty$ approaches uniform weighting; $T\to0$ approaches hard best-of-$k$ selection.
The expected softmax-weighted loss at input $\mathbf{x}$ after drawing exactly $k$ candidates.
$\mu_\ell=\mathbb E[\ell]$, $\mu_r=\mathbb E[r]$, and $\operatorname{Cov}_{\mathbf{x}}$ is covariance, all over one draw $Y\sim p_{\mathbf{x}}$.
High temperature
Assume the displayed moments exist under $p_{\mathbf{x}}$. Expanding in $1/T$ gives
Low temperature
Assume $r$ is smooth with local maximizer $y_\star(\mathbf{x})$, curvature $\kappa=-\partial_y^2r(y_\star,\mathbf{x})>0$, and set $\mu_R(\mathbf{x})=y_\star(\mathbf{x})$. If the predictive density near that point obeys
then $\beta$ is the local coverage exponent. Let $Y_{(R)}$ be the candidate closest to $\mu_R$, $S_k=Y_{(R)}-\mu_R$, $\mu_T$ the target output, and $\Delta_{\mathbf{x}}=\mu_R-\mu_T$ the judge–target mismatch. As $k$ grows,
For an aligned judge ($\Delta_{\mathbf{x}}=0$), the full error decays as $k^{-2/(\beta+1)}$. A regular positive density has $\beta=0$, leading to the $k^{-2}$ law.
Analytical results
A simple special case
The plots below use Bayesian linear regression only as a tractable instance of the generic framework: $p_{\mathbf{x}}=\mathcal N(m(\mathbf{x}),s^2(\mathbf{x}))$, $\ell(y,\mathbf{x})=(y-\mu_T(\mathbf{x}))^2$, and $r(y,\mathbf{x})=-(y-\mu_R(\mathbf{x}))^2$. Here $m$ and $s$ are the posterior predictive mean and standard deviation, $d$ is the input dimension, $\mu_T=\mathbf w_T\!\cdot\!\mathbf{x}/\sqrt d$ is the teacher target, and $\mu_R=\mathbf w_R\!\cdot\!\mathbf{x}/\sqrt d$ is the judge’s preferred output. Thus $\mathbf w_T$ and $\mathbf w_R$ parameterize the target and reward in the Gaussian example.
Result 1
At sufficiently high temperature, the leading finite-$k$ correction separates into a helpful variance-reduction term and a harmful reward-mismatch term. When mismatch dominates, error is non-monotonic and the optimal sample count is finite.
Result 2
High temperature underuses reward information; low temperature overcommits to any judge error. The balance produces an interior optimum whose position shifts downward as the reward becomes better aligned.
Result 3
The better investment depends on the reward regime. Near power law regimes, increasing $k$ can dominate adding training examples. Under softer or noisier reward selection, more training data can provide the larger gain.
From the toy model to language models
Experiments on GSM8K use Llama-3-8B-Instruct to generate answers and Mistral-7B-Instruct-v0.3 as a judge. The observed error curves reproduce both model predictions: an optimal inference sample count at fixed temperature and an optimal judge temperature at fixed inference sample count. With a near-ideal process reward model, when reasoning is taken into account error shows effective power-law error decay.
Practical takeaway. Tune inference time samples and reward temperature together, and validate them against judge quality.
Reference
@article{halder2025demystifying,
title = {Demystifying LLM-as-a-Judge: Analytically Tractable
Model for Inference-Time Scaling},
author = {Halder, Indranil and Pehlevan, Cengiz},
journal = {arXiv preprint arXiv:2512.19905},
year = {2025},
note = {Published at ICML 2026}
}