大型语言模型温度缩放中的生成临界性
Generative Criticality in Large Language Model Temperature Scaling
AI总结:
通过统计场框架研究大型语言模型文本生成中的温度缩放,发现接近特征温度时出现类似连续相变的临界现象,为理解解码策略与临界现象的联系提供定量工具。
摘要:
我们为大型语言模型(LLM)生成的文本提出一个统计场框架,将token嵌入视为一维链上的连续自旋变量。通过连接的两点关联函数定义磁化率,并通过系综平均嵌入场定义序参量,我们改变softmax温度$T$,观察到在特征温度$T_c$附近出现尖锐的磁化率峰,具有幂律标度行为,序参量同时发生快速变化,并在$T_c$以下坍缩到单一语义方向。由最近邻(TwoNN)方法估计的内在维度独立地证实了这些发现,在$T_c$附近达到最小值。结果在模型规模(Qwen3:0.6B--32B)和提示类别上具有鲁棒性。虽然现象学上类似于连续相变,但自回归生成的非平衡性质需要进一步研究。我们的框架为探测LLM输出的集体统计结构提供了定量工具,并暗示了解码策略与临界现象之间的联系。
英文摘要:
We propose a statistical-field framework for text generated by large language models (LLMs), treating token embeddings as continuous spin variables on a one-dimensional chain. Defining a susceptibility from the connected two-point correlator and an order parameter from the ensemble-averaged embedding field, we vary the \texttt{softmax} temperature $T$ and observe a sharp susceptibility peak near a characteristic $T_c$ with power-law-like scaling, a concurrent rapid change in the order parameter, and a collapse onto a single semantic direction below $T_c$. The intrinsic dimension estimated by the two nearest neighbor (TwoNN) method independently corroborates these findings, reaching a minimum near $T_c$. Results are robust across model scales (Qwen3: 0.6B--32B) and prompt categories. While the phenomenology closely resembles a continuous phase transition, the non-equilibrium nature of autoregressive generation warrants further investigation. Our framework provides quantitative tools for probing the collective statistical structure of LLM outputs and suggests connections between decoding strategies and critical phenomena.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。