Learning Cognitive Maps from Transformer Representations for Efficient Planning in Partially Observed Environments
On the map: World models → Latent predictive world models
Abstract (arXiv)
Despite their stellar performance on a wide range of tasks, including in-context tasks only revealed during inference, vanilla transformers and variants trained for next-token predictions (a) do not learn an explicit world model of their environment which can be flexibly queried and (b) cannot be used for planning or navigation. In this paper, we consider partially observed environments (POEs), where an agent receives perceptually aliased observations as it navigates, which makes path planning hard. We introduce a transformer with (multiple) discrete bottleneck(s), TDB, whose latent codes learn a compressed representation of the history of observations and actions. After training a TDB to predict the future observation(s) given the history, we extract interpretable cognitive maps of the environment from its active bottleneck(s) indices. These maps are then paired with an external solver to solve (constrained) path planning problems. First, we show that a TDB trained on POEs (a) retains the near perfect predictive performance of a vanilla transformer or an LSTM while (b) solving shortest path problems exponentially faster. Second, a TDB extracts interpretable representations from text datasets, while reaching higher in-context accuracy than vanilla sequence models. Finally, in new POEs, a TDB (a) reaches near-perfect in-context accuracy, (b) learns accurate in-context cognitive maps (c) solves in-context path planning problems.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in Latent predictive world models, one of 11 directions in World models. Builds on 27 of its 37 references that are in the map. First posted on arXiv 11 Jan 2024.
Builds on
27 of 37 references.
References · 27
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
- 2017Neural Discrete Representation Learningcited by 4,650
- 2021Zero-Shot Text-to-Image Generationcited by 4,276
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
15 more
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2023GAIA: a benchmark for General AI Assistantscited by 1,084
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
- 2022A Generalist Agentcited by 802
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
- 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 417
- 2023Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planningcited by 204
- 2023Does Circuit Analysis Interpretability Scale? Evidence from Multiple Choice Capabilities in Chinchillacited by 145
- 2023Evaluating Cognitive Maps and Planning in Large Language Models with CogEvalcited by 77
- 2022BYOL-Explore: Exploration by Bootstrapped Predictioncited by 71
- 2022Guaranteed Discovery of Control-Endogenous Latent States with Multi-Step Inverse Modelscited by 42
- 2022Plansformer: Generating Symbolic Plans using Transformerscited by 41
- 2023Schema-learning and rebinding as mechanisms of in-context learning and emergencecited by 14
- 2023Graph schemas as abstractions for transfer learning, inference, and planningcited by 7
Built on by
Citing papers per year: 2024: 2; 2025: 2; 2026: 2.
6 papers.
- 2024Exploring and Learning Structure: Active Inference Approach in Navigational Agentscited by 5
- 2024Learning Dynamic Cognitive Map with Autonomous Navigationcited by 3
- 2025Cognitive Maps in Language Models: A Mechanistic Analysis of Spatial Planningcited by 1
- 2025A Biologically Interpretable Cognitive Architecture for Online Structuring of Episodic Memories into Cognitive Mapscited by 0
- 2026A Close Look At World Model Recovery In Supervised Fine-Tuned LLM Plannerscited by 0
- 2026Differentiable Clone-Structured Causal Graphs for End-to-End Cognitive Map Learning from Image Sequencescited by 0
- 2026Differentiable Clone-Structured Causal Graphs for End-to-End Cognitive Map Learning from Image Sequences14 Jul 2026
- 2026A Close Look At World Model Recovery In Supervised Fine-Tuned LLM Planners2 Jun 2026
- 2025Cognitive Maps in Language Models: A Mechanistic Analysis of Spatial Planning17 Nov 2025
- 2025A Biologically Interpretable Cognitive Architecture for Online Structuring of Episodic Memories into Cognitive Maps29 Sep 2025
- 2024Learning Dynamic Cognitive Map with Autonomous Navigation13 Nov 2024
- 2024Exploring and Learning Structure: Active Inference Approach in Navigational Agents12 Aug 2024
Similar, not cited
Close in wording, no citation either way
- 2024One-shot World Models Using a Transformer Trained on a Synthetic Prior
- 2026Generative-Model Predictive Planning for Navigation in Partially Observable Environments
- 2026Sparse Planning in Visual World Models via Cost Gradients
- 2026AGI Maze Prediction Datasets: A Compact Benchmark for Learning World Dynamics with Transformers
- 2026PreAct-Nav: Agentic Reasoning Before Action for Urban Navigation
- 2026Latent Geometry Beyond Search: Amortizing Planning in World Models
- 2023Understanding Representations Pretrained with Auxiliary Losses for Embodied Agent Planning
- 2021Temporal Predictive Coding For Model-Based Planning In Latent Space