arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.07446cs.AIcs.CLcs.LGstat.ML
收藏

下一Token预测背后的因果世界模型:在受控环境中探索GPT

A Causal World Model Underlying Next Token Prediction: Exploring GPT in a Controlled Environment

Intel Labs(英特尔实验室)

Raanan Y. Rohekar, Yaniv Gurwicz, Sungduk Yu, Estelle Aflalo, Vasudev Lal

AI总结:

本文通过推导GPT注意力机制的因果解释,提出其隐式学习因果世界模型,并验证了GPT可对输入序列进行零样本因果结构学习,在Othello和Chess的分布外数据上,高置信度因果编码与合法走子生成相关。

摘要:

仅被训练用于预测下一个token的生成式预训练Transformer(GPT)模型,是否隐式地学习了一个世界模型,并据此一次一个token地生成序列?我们通过推导GPT中注意力机制的因果解释,并给出由该解释产生的因果世界模型来回答这一问题。此外,我们提出GPT模型在推理时可用于对输入序列进行零样本因果结构学习,并引入相应的置信度分数。实验在受控环境中进行,使用了Othello和Chess策略游戏的设置。一个在真实世界对局(以获胜为目的进行对弈)上预训练的GPT,在由随机合法走子序列组成的分布外合成数据上进行了测试。我们发现,对于注意力机制中以高置信度编码了因果结构的分布外序列,GPT模型很可能生成合法的下一步走子。在生成非法走子的情况下,它也未能捕获因果结构。

英文摘要:

Are generative pre-trained transformer (GPT) models, trained only to predict the next token, implicitly learning a world model from which sequences are generated one token at a time? We address this question by deriving a causal interpretation of the attention mechanism in GPT and presenting a causal world model that arises from this interpretation. Furthermore, we propose that GPT models, at inference time, can be utilized for zero-shot causal structure learning for input sequences, and introduce a corresponding confidence score. Empirical tests were conducted in controlled environments using the setups of the Othello and Chess strategy games. A GPT, pre-trained on real-world games played with the intention of winning, was tested on out-of-distribution synthetic data consisting of sequences of random legal moves. We find that the GPT model is likely to generate legal next moves for out-of-distribution sequences for which a causal structure is encoded in the attention mechanism with high confidence. In cases where it generates illegal moves, it also fails to capture a causal structure.

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

↑