arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.19905cs.LGcs.AI
收藏

解析LLM作为裁判:用于推理时间扩展的可分析模型

Demystifying LLM-as-a-Judge: Analytically Tractable Model for Inference-Time Scaling

John A. Paulson School of Engineering And Applied Sciences, Harvard University(哈佛大学约翰·A·保罗森工程与应用科学学院);Center for Brain Science, Harvard University(哈佛大学脑科学中心);Kempner Institute for the Study of Natural and Artificial Intelligence, Harvard University(哈佛大学自然与人工智能研究学院)

Indranil Halder, Cengiz Pehlevan

AI总结:

本文提出一个可分析的模型,用于推理时间扩展,通过奖励加权采样器和贝叶斯线性回归,分析推理时间样本与一般化误差的关系,并展示在任务难度增加时该优势的退化。

摘要:

近年来,大型语言模型的发展显示出将大量计算资源从训练时间转移到推理时间的优势。然而,推理时间扩展背后的原则并不清楚。在本文中,我们介绍了一个可分析的推理时间扩展模型:带有奖励加权采样器的贝叶斯线性回归,其中奖励由线性模型确定,模拟LLM作为裁判的场景。我们研究了高维情况下这一问题,其中确定性等价物决定了后验预测均值和方差的闭式表达式。我们分析了当训练数据从教师模型采样时的一般化误差。我们抽取k个推理时间样本,并通过应用温度的二次奖励进行softmax选择。当奖励与教师相差不大时,一般化误差随着推理时间样本k的增加而单调减少。然而,优化推理时间选择的一般奖励通常与教师不同。相反,显著的奖励不准确会引发一个有限的最优k,超过该k后,更多采样会增加一般化误差。对于固定的k,存在最优采样温度。我们在大型语言模型推理中通过额外的大型语言模型作为裁判进行实验验证这些事实。在

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑