Cognitive maps are generative programs
Marta Kryven, Cole Wyeth, Aidan Curtis, Kevin Ellis
TL;DR
The paper investigates how humans plan under resource constraints by proposing cognitive maps as generative programs that capture world structure. It introduces Generative Modular Planning (GMP), a two‑module framework where an LLM‑driven Generative Map Module discovers repeating map fragments to form a compact, programmatic map, and a Fragment‑Based Planning module reuses per‑fragment policies to generate efficient plans. Empirical results show people adopt highly modular strategies in structured environments, and GMP with MDL fragment discovery predicts human behavior better than unstructured or horizon‑limited models. This work advances cognitively plausible, memory‑efficient planning and demonstrates how LLMs can encode useful inductive biases for spatial decision‑making in AI systems.
Abstract
Making sense of the world and acting in it relies on building simplified mental representations that abstract away aspects of reality. This principle of cognitive mapping is universal to agents with limited resources. Living organisms, people, and algorithms all face the problem of forming functional representations of their world under various computing constraints. In this work, we explore the hypothesis that human resource-efficient planning may arise from representing the world as predictably structured. Building on the metaphor of concepts as programs, we propose that cognitive maps can take the form of generative programs that exploit predictability and redundancy, in contrast to directly encoding spatial layouts. We use a behavioral experiment to show that people who navigate in structured spaces rely on modular planning strategies that align with programmatic map representations. We describe a computational model that predicts human behavior in a variety of structured scenarios. This model infers a small distribution over possible programmatic cognitive maps conditioned on human prior knowledge of the world, and uses this distribution to generate resource-efficient plans. Our models leverages a Large Language Model as an embedding of human priors, implicitly learned through training on a vast corpus of human data. Our model demonstrates improved computational efficiency, requires drastically less memory, and outperforms unstructured planning algorithms with cognitive constraints at predicting human behavior, suggesting that human planning strategies rely on programmatic cognitive maps.
