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

随机底限:在语言模型令牌分布中测量固有非随机性

The Randomness Floor: Measuring Intrinsic Non-Randomness in Language Model Token Distributions

Institute of Computer Science(计算机科学研究所);Faculty of Mathematics and Computer Science(数学与计算机科学学院);Jagiellonian University(雅盖隆大学)

Jarosław Hryszko

AI总结:

本文通过系统分析31200次生成数据,引入熵偏差(ED)衡量语言模型令牌分布与均匀分布的KL散度,发现即使在中性提示下,Transformer仍表现出约0.30的ED,表明非随机性主要源于模型权重而非上下文。

摘要:

语言模型无法完全随机。本文引入熵偏差(ED),即模型令牌分布与均匀分布之间的归一化KL散度,并系统地在31200次生成数据中进行测量,涵盖七种模型、两种架构(Transformer和状态空间)、九种提示类别、三种温度和五种语言。在语义中性提示(空字符串、随机字符、无意义音节)下,Transformer仍表现出约0.30的ED,意味着在语义提示下观察到的非随机性中有88-93%是固有于学习权重而非由上下文诱导。三种Transformer家族(Gemma、Llama、Qwen)尽管训练数据和词汇不同,仍收敛到几乎相同的ED值。状态空间模型(Mamba2)揭示了不同的区域:ED是两倍,序列内方差降低三倍,且对温度高度敏感(r = -0.78),而Transformer几乎不敏感(r < 0.05)。使用Qwen-32B进行的跨语言实验显示,在五种语言(英语、日语、中文、波兰语、阿拉伯语)中存在稳定的梯度,该梯度不与token fertility相关,并在两种共享相同tokeniser子集的语言之间持续存在。这些发现确立了预训练语言模型中随机性的结构下限,描述了该下限在不同架构中的差异,并展示了语言本身如何独立于tokenisation调节该下限。

英文摘要:

Language models cannot be random. This paper introduces Entropic Deviation (ED), the normalised KL divergence between a model's token distribution and the uniform distribution, and measures it systematically across 31,200 generations spanning seven models, two architectures (transformer and state space), nine prompt categories, three temperatures, and five languages. Under semantically neutral prompts (empty strings, random characters, nonsense syllables) transformers still exhibit ED of approximately 0.30, meaning that 88-93% of the non-randomness observed under semantic prompts is intrinsic to the learned weights rather than induced by context. Three transformer families (Gemma, Llama, Qwen) converge on nearly identical ED values despite different training data and vocabularies. A state space model (Mamba2) reveals a qualitatively different regime: twice the ED, three times lower within-sequence variance, and massive sensitivity to temperature (r = -0.78) where transformers are nearly immune (r < 0.05). Cross-lingual experiments with Qwen-32B show a stable gradient across five languages (English, Japanese, Chinese, Polish, Arabic) that does not correlate with token fertility and persists when two languages sharing an identical tokeniser subset are compared. These findings establish a structural lower bound on randomness in pretrained language models, characterise how this bound differs across architectures, and demonstrate that language itself modulates the bound independently of tokenisation.

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

↑