arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.22411cs.AIcs.CLcs.LG
收藏

引入背景温度以表征大语言模型中的隐藏随机性

Introducing Background Temperature to Characterise Hidden Randomness in Large Language Models

RAI - Radiotelevisione Italiana, Centre for Research, Technological Innovation and Experimentation (CRITS)(意大利广播电视台,研究中心、技术创新与实验中心(CRITS))

Alberto Messina, Stefano Scotta

AI总结:

本文引入背景温度概念,探讨大语言模型中隐藏随机性的来源,提出通过有效温度评估实现依赖扰动,并通过实验验证其对可重复性、评估和部署的影响。

摘要:

即使在解码时使用温度T=0,大型语言模型(LLMs)对相同输入仍会产生不同的输出。最近,Thinking Machines Lab的研究指出了实现层面的非确定性来源,包括批量大小变化、内核非不变性和浮点数非结合性。在本文中,我们通过引入背景温度T_bg的概念来形式化这种行为,即由实现依赖的扰动过程引起的有效温度,即使名义上T=0。我们提供了清晰的定义,展示了T_bg如何与受推理环境I支配的随机扰动相关联,并提出了一种通过理想参考系统的等效温度T_n(I)来估计T_bg的经验协议。最后,我们通过主要LLM提供商代表性的池中的试点实验验证了这一想法,并概述了其对可重复性、评估和部署的影响。

英文摘要:

Even when decoding with temperature $T=0$, large language models (LLMs) can produce divergent outputs for identical inputs. Recent work by Thinking Machines Lab highlights implementation-level sources of nondeterminism, including batch-size variation, kernel non-invariance, and floating-point non-associativity. In this short note we formalize this behavior by introducing the notion of \emph{background temperature} $T_{\mathrm{bg}}$, the effective temperature induced by an implementation-dependent perturbation process observed even when nominal $T=0$. We provide clean definitions, show how $T_{\mathrm{bg}}$ relates to a stochastic perturbation governed by the inference environment $I$, and propose an empirical protocol to estimate $T_{bg}$ via the equivalent temperature $T_n(I)$ of an ideal reference system. We conclude with a set of pilot experiments run on a representative pool from the major LLM providers that demonstrate the idea and outline implications for reproducibility, evaluation, and deployment.

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

↑