Demystifying LLM-as-a-Judge: Analytically Tractable Model for Inference-Time Scaling
cs.LG, cs.AI
Submitted: 2025-12-22
Updated: 2026-10-02
Comments: Published at International Conference on Machine Learning 2026
License: http://creativecommons.org/licenses/by/4.0/
The gist: Recent developments in large language models have shown advantages in reallocating a notable share of computational resource from training time to inference time.
Terminology
Abstract
Recent developments in large language models have shown advantages in reallocating a notable share of computational resource from training time to inference time. However, the principles behind inference time scaling are not well understood. In this paper, we introduce an analytically tractable model of inference-time scaling: Bayesian linear regression with a reward-weighted sampler, where the reward is determined from a linear model, modeling LLM-as-a-judge scenario. We study this problem in the high-dimensional regime, where the deterministic equivalents dictate a closed-form expression for the posterior predictive mean and variance. We analyze the generalization error when training data are sampled from a teacher model. We draw k inference-time samples and select via softmax at a temperature applied to a quadratic reward. When the reward is not too different from the teacher, the generalization error decreases monotonically with increasing inference time samples k. However, the specific reward that optimizes inference-time selection generally differs from the teacher. In contrast, substantial reward misspecification induces a finite optimal k beyond which more sampling can increase the generalization error. For fixed k, there exists an optimal sampling temperature. We experimentally verify these facts in large language model inference with an additional large language model as a judge. In the "best-of- k " limit with the teacher as reward, we theoretically show that the generalization error decays as Θ(1/k 2) and determine the leading coefficient via extreme value theory. These formulas delineate domains where scaling inference-time computation is provably preferable to collecting more data. Finally, we demonstrate that when task difficulty increases, the previously mentioned advantage of inference-time compute degrades.
Sources
- Deep Learning Scaling is Predictable, Empirically
- Training Compute-Optimal Large Language Models
- Generative Verifiers: Reward Modeling as Next-Token Prediction
- Inference Scaling Laws: An Empirical Analysis of Compute-Optimal Inference for Problem-Solving with Language Models
- How Do Large Language Monkeys Get Their Power (Laws)?
- Is Best-of-N the Best of Them? Coverage, Scaling, and Optimality in Inference-Time Alignment
- Self-critiquing models for assisting human evaluators
- Best-of-N through the Smoothing Lens: KL Divergence and Regret Analysis
- Sample, Don't Search: Rethinking Test-Time Alignment for Language Models
- Optimizing Temperature for Language Models with Multi-Sample Inference
- More Data Can Hurt for Linear Regression: Sample-wise Double Descent
- The Eigenlearning Framework: A Conservation Law Perspective on Kernel Regression and Wide Neural Networks
- A Precise Performance Analysis of Learning with Random Features
- A Solvable Model of Neural Scaling Laws
- A non-asymptotic theory of Kernel Ridge Regression: deterministic equivalents, test error, and GCV estimator
- Training Language Models to Reason Efficiently
- A Simple Model of Inference Scaling Laws
- Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Tree of Thoughts: Deliberate Problem Solving with Large Language Models
- Sample Complexity and Representation Ability of Test-time Scaling Paradigms
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks