mlsanityData to 7 Oct 2026

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

arXiv 2412.07446 ↗First posted 10 Dec 2024cs.AI cs.CL cs.LGcited by 6

On the map: World models → World models for language agents

Abstract (arXiv)

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.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in World models for language agents, one of 11 directions in World models. Builds on 14 of its 26 references that are in the map. First posted on arXiv 10 Dec 2024.

Builds on

14 of 26 references.

Closest ancestors · 1

Same direction, newest first

  1. 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Models2 Sep

Other references · 13

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023Visual Instruction Tuningcited by 7,792
  3. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  4. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
  5. 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 515
  6. 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 417
  7. 2021Chess as a Testbed for Language Model State Trackingcited by 69
  8. 2013Learning Sparse Causal Models is not NP-hardcited by 48
  9. 2023Causal Interpretation of Self-Attention in Pre-Trained Transformerscited by 30
  10. 2021Iterative Causal Discovery in the Possible Presence of Latent Confounders and Selection Biascited by 21
  11. 2018Bayesian Structure Learning by Recursive Bootstrapcited by 8
  12. 2021Improving Efficiency and Accuracy of Causal Discovery Using a Hierarchical Wrappercited by 6
1 more
  1. 2022CLEAR: Causal Explanations from Attention in Neural Recommenderscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 3; 2026: 3.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Emergent World Models and Latent Variable Estimation in Chess-Playing Language Models
  2. 2026Grounding Before Generalizing: How AI Differs from Humans in Causal Transfer
  3. 2025How GPT learns layer by layer
  4. 2023Linear Latent World Models in Simple Transformers: A Case Study on Othello-GPT
  5. 2025Causal-Symbolic Meta-Learning (CSML): Inducing Causal World Models for Few-Shot Generalization
  6. 2025Emergent World Beliefs: Exploring Transformers in Stochastic Games
  7. 2025Learning Local Causal World Models with State Space Models and Attention
  8. 2023Passive learning of active causal strategies in agents and language models