cs.AISep 18, 2026

World Modeling in Transformers

Authors: Pierre Beckmann, Matthieu Queloz, Andre Freitas

Organizations: EPFL · IDIAP Research Institute · MATS · University of Bern · 

Abstract

Behavioral failures can make a transformer appear to lack a world model even when it has learned faithful representations of its environment. We demonstrate this in TaxiGPT, a transformer trained on random walks through Manhattan whose failures have been interpreted as evidence of an incoherent internal map. Through mechanistic analysis and causal interventions, we show that the model represents intersections and streets, tracks its position, and uses a goal compass to navigate. We trace its failures to interference between superposed intersection features, which disrupts localization within the internal map. Affordance packing, which groups representations of intersections with the same legal moves, helps limit the consequences of these errors. Finally, we propose mechanistic indicators that we use to compare models and show that world-modeling capacities emerge at different stages of training. Our findings motivate a shift from asking whether a model has a world model to mechanistically studying its world modeling: the interacting capacities through which it represents its environment and uses those representations to guide behavior.

Figures & tables

Appendix figures & tables38 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Identifiable Token Correspondence for World Models

    May 15, 2026Youngin Kim, Ray Sun, Inho Kim +2World Model LearningTransformer-Based RL

  2. The Intervention Gap in Latent World Models

    Aug 30, 2026Donna VakalisWorld Model-Based PlanningModel-Based Planning

  3. Transformers Struggle to Use Their Emergent World Models: Revisiting the Tower of Hanoi, and the Illusion of Thinking

    Aug 7, 2026Devin Pereira, Willem ZuidemaLLM World ModelsLLM Planning