atlas

Research map / Probabilistic and scientific modeling / Causal discovery

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

ICML 2025 · Probabilistic and scientific modeling › Causal discovery · approach: Causal representation identifiability · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Derives a causal (SCM) interpretation of GPT masked attention, uses it for zero-shot causal structure learning per sequence with a p-value entropy confidence score, and tests on out-of-distribution random legal Othello and Chess move sequences.

Problem

Whether GPT models trained only on next-token prediction implicitly learn a causal world model, and whether attention reflects causal structure that correlates with generating legal moves on out-of-distribution sequences.

Approach

Interprets the lower-triangular masked attention matrix (after diagonal normalization) as the transitive closure (I-G)^-1 of a linear-Gaussian SCM, enabling recursive constraint-based causal discovery over each sequence and a confidence score R = H_ind - H_dep from CI-test p-values.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use CI tests conditioned on arbitrary set sizes (full causal discovery) instead of only marginal pairwise attention values for structural confidence (ablation)structural confidence score R of GPT attention heads · Othello and Chess legal vs illegal move generationdifference in structural confidence (legal minus illegal)Helped
Use only raw attention-matrix pairwise correlations (marginal tests) for the confidence score (ablation)structural confidence score R · Othello legal vs illegal move generationdifference in structural confidence (legal minus illegal)No clear effect
Prune attention heads with lowest structural confidence first (vs highest) (ablation)last-layer attention heads of GPT · Othello legal-move generationnormalized legal-move accuracy vs percentage of heads prunedHelped
Higher structural confidence score R for a sequence (across Othello and Chess)GPT legal-move generation on out-of-distribution random legal sequences · Othello and Chesslegal move generation accuracy vs structural confidenceHelped

Surprising findings

Limitations

Experimental setup

Datasets: Othello game sequences (~132K) Chess games (~2.9M) 1,000 random legal-move synthetic test sequences per game (Chess up to 10,000 for short lengths)

Benchmarks: Othello legal-move generation on random legal-move sequences Chess legal-move generation on random legal-move sequences

Metrics: legal move accuracy structural confidence R difference (legal vs illegal) area under pruning accuracy curve

Baselines: raw attention pairwise correlations BERT-based ABCD (unmasked attention C=AA^T)

Builds on: ABCD iterative causal discovery (ICD) BERT attention causal interpretation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy