arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.05335cond-mat.dis-nncs.LG
收藏

大型语言模型中的相变与自然语言的临界性

Phase transition in large language models and the criticality of natural languages

Center for Advanced Intelligence Project, RIKEN(先进智能项目中心,理化学研究所);National Institute for Japanese Language and Linguistics(日本语言学研究所);Department of Physics, Nagoya University(名古屋大学物理系);Department of Multidisciplinary Sciences, The University of Tokyo(东京大学多学科科学系);Komaba Institute for Science, The University of Tokyo(东京大学Komaba科学研究所)

Kai Nakaishi, Yoshihiko Nishikawa, Koji Hukushima

AI总结:

通过将大型语言模型作为可控有效模型,发现当调节类似物理温度的参数时,模型经历相变,临界点生成的文本呈现幂律行为,最接近自然语言,表明自然语言具有临界性。

摘要:

自然语言中的文本和语音生成可以建模为随机过程。这一思想可追溯到马尔可夫的开创性工作,以及后来的香农,也构成了大型语言模型(LLMs)近期发展的基础。自然语言对应的随机过程应不同于生成非语言序列的过程。区分语言与非语言序列的特征之一是幂律行为,这在不同语言中普遍存在。在统计物理学中,这种行为表明自然语言是临界的:它们位于参数化随机过程空间中的相变点附近。然而,验证这一猜想并不直接。即使存在相变,也无法在现实世界的自然语言中直接观察到,因为它们没有任何可控参数。在这里,我们使用LLMs作为自然语言的可控有效模型。通过对LLMs生成文本的统计分析,我们发现,当改变类似于物理温度的参数时,LLMs经历相变。该相变将低温相(生成文本具有复杂重复结构)与高温相(LLMs生成难以理解的文本)分开。在这些相之间的临界点,生成的文本显示出与自然语言相似的幂律行为,并且通过自然语言处理中的标准度量最接近自然语言。这些发现强烈表明自然语言确实是临界的。

英文摘要:

Generation of text and speech in natural languages can be modeled as a stochastic process. This idea dates back to the seminal work of Markov and, later, to that of Shannon and also underlies the recent development of large language models (LLMs). The stochastic processes corresponding to natural languages should be distinct from those that generate nonlinguistic sequences. One of the features that discriminate linguistic and nonlinguistic sequences is power-law behavior, which is universally observed across different languages. In statistical physics, such behavior suggests that natural languages are critical: They lie near a phase transition point in a parametrized space of stochastic processes. However, testing this conjecture is not straightforward. A phase transition, even if it exists, cannot be directly observed in real-world natural languages because they do not have any controllable parameters. Here, we use LLMs as controllable effective models of natural languages. Through statistical analyses of texts generated by LLMs, we find that, when a parameter analogous to physical temperature is varied, LLMs undergo a phase transition. The transition separates a low-temperature phase with complex repetitive structures in generated texts from a high-temperature phase in which LLMs generate incomprehensible texts. At the critical point between these phases, generated texts display the power-law behavior similar to that of natural languages and most closely resemble natural languages as measured by a standard metric in natural language processing. These findings strongly suggest that natural languages are indeed critical.

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

↑