确定性还是概率性?大语言模型作为随机数生成器的心理学
Deterministic or probabilistic? The psychology of LLMs as random number generators
AI总结:
本研究系统测试多种LLM生成随机数的表现,发现尽管架构随机,模型常输出确定性结果,且受模型与提示语言影响,根源在于训练数据偏差,揭示LLM复现人类认知偏差。
摘要:
大语言模型(LLMs)通过固有的基于上下文的概率机制彻底改变了文本生成,模拟了人类自然语言。本文中,我们系统研究了各种LLMs在生成随机数时的表现,考虑了不同模型架构、数值范围、温度和提示语言等多种配置。我们的结果显示,尽管这些模型基于随机变换器架构,但在被要求输出随机数字时,它们往往表现出确定性响应。特别是,我们发现改变模型以及提示语言时存在显著差异,将此现象归因于训练数据中根深蒂固的偏差。像DeepSeek-R1这样的模型可以揭示LLMs的内部推理过程,尽管得出相似结果。这些偏差诱导出可预测的模式,破坏了真正的随机性,因为LLMs无非是在复现我们自身的人类认知偏差。
英文摘要:
Large Language Models (LLMs) have transformed text generation through inherently probabilistic context-aware mechanisms, mimicking human natural language. In this paper, we systematically investigate the performance of various LLMs when generating random numbers, considering diverse configurations such as different model architectures, numerical ranges, temperature, and prompt languages. Our results reveal that, despite their stochastic transformers-based architecture, these models often exhibit deterministic responses when prompted for random numerical outputs. In particular, we find significant differences when changing the model, as well as the prompt language, attributing this phenomenon to biases deeply embedded within the training data. Models such as DeepSeek-R1 can shed some light on the internal reasoning process of LLMs, despite arriving to similar results. These biases induce predictable patterns that undermine genuine randomness, as LLMs are nothing but reproducing our own human cognitive biases.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。