Cognitive Maps in Large Language Models

Albert Qin, Jonathan Cohen, Gautam Reddy
10/19/2026
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

It has long been proposed that animals construct cognitive maps to support flexible behavior in novel environments. We tested whether large language models form similar representations using relational reasoning tasks and causal "mosaic experiments" that manipulate internal activations in open-weight language models. Models beyond the ten-billion-parameter scale successfully inferred unstated relationships between entities and generalized to synthetic entity names. Across model and task families, models generated abstract representations of relational structure and combined them additively with representations of entity identity, binding entities to roles within that structure. Models stored observed relationships as pairwise links that they composed retrospectively when queried, rather than prospectively positioning each entity in a global coordinate system. Binding was mediated by a sparse, distributed set of key--value pairs; by perturbing these pairs, we implanted "false memories" that altered model behavior in predictable ways. Overall, our findings reveal an internal organization analogous to a cognitive map that explains how language models reason with limited information.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{qin2026cognitive,
  title  = {Cognitive Maps in Large Language Models},
  author = {Albert Qin and Jonathan Cohen and Gautam Reddy},
  year   = {2026},
  eprint = {2610.25596},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.25596v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.25596.svg)](https://codeofpaper.com/paper/2610.25596)

Discussion