Emergent World Beliefs: Exploring Transformers in Stochastic Games
Adam Kamel, Tanish Rastogi, Michael Ma, Kailash Ranganathan, Kevin Zhu
TL;DR
This work explores whether transformer language models can learn internal world models in imperfect-information environments by training a GPT‑style model on Poker Hand History data and probing its activations. The authors demonstrate that the model develops both deterministic encodings (hand ranks) and stochastic encodings (equity) that correlate with belief‑state quantities in a Poker POMDP, with nonlinear probes decoding these structures. Activation visualizations reveal belief‑state–like geometry in the residual stream, supporting the view that the model maintains an internal representation of hidden cards and strategies. While promising, the study relies on synthetic PHH data and highlights limitations related to data diversity and generalization, pointing to future work in scaling, Bayesian belief extraction, and broader domain applicability.
Abstract
Transformer-based large language models (LLMs) have demonstrated strong reasoning abilities across diverse fields, from solving programming challenges to competing in strategy-intensive games such as chess. Prior work has shown that LLMs can develop emergent world models in games of perfect information, where internal representations correspond to latent states of the environment. In this paper, we extend this line of investigation to domains of incomplete information, focusing on poker as a canonical partially observable Markov decision process (POMDP). We pretrain a GPT-style model on Poker Hand History (PHH) data and probe its internal activations. Our results demonstrate that the model learns both deterministic structure, such as hand ranks, and stochastic features, such as equity, without explicit instruction. Furthermore, by using primarily nonlinear probes, we demonstrated that these representations are decodeable and correlate with theoretical belief states, suggesting that LLMs are learning their own representation of the stochastic environment of Texas Hold'em Poker.
