Thinking on Maps: How Foundation Model Agents Explore, Remember, and Reason Map Environments

Zhiwei Wei, Yuxing Liu, Hua Liao, Wenjia XuarXiv 2025 · DOI

Abstract

While Large Language Models (LLMs) demonstrate impressive capabilities in navigation and geographic analysis, most evaluations rely on static, "out-of-environment" tasks. This paper introduces an interactive framework designed to evaluate how Foundation Model (FM) agents build spatial intelligence through active exploration. By simulating agents in a symbolic grid world, the researchers investigate the interplay between exploration strategies, memory representation, and reasoning schemes. The study reveals that spatial reasoning performance is primarily constrained by how agents structure their memory and utilize advanced reasoning prompts, such as Tree-of-Thought, rather than by model size or specific exploration patterns.

Introduction

True spatial cognition is fundamentally experience-driven. Humans do not simply possess static maps; we build mental representations of our surroundings through incremental exploration and observation. However, current benchmarks for FM agents often overlook this dynamic process, instead testing models on their ability to describe maps they can see in their entirety.

This research addresses the gap by proposing a framework that operates under "partial observability." In this setting, agents must explore their environment, consolidate their observations into memory, and subsequently reason about the environment's layout. This approach shifts the focus from simple pattern recognition to the more complex process of spatial knowledge acquisition and utilization.

Methodology

The authors developed a three-phase evaluation framework to dissect the components of spatial intelligence in FM agents:

Phase I: Exploration Strategies

The study evaluates how the order of discovery affects learning using three distinct movement strategies:

  • Nearest-POI (NPS): A greedy approach focusing on the closest point of interest.
  • Random-Visible (RVS): Movement based on visible landmarks within the agent's immediate range.
  • Task-Driven (TDS): Exploration guided by specific objectives.

Phase II: Memory Representation

Once data is gathered, how it is stored becomes critical. The framework compares four memory architectures:

  • Simple Dialogue Memory (SDM): Unstructured, raw conversation history of the exploration.
  • Node-Sequence Memory (NSM): A chronological list of visited landmarks and intersections.
  • Graph Memory (GM): A topological representation using nodes and edges to define connectivity.
  • Map Memory (MM): A 2D globalized grid representation of the environment.

Phase III: Reasoning Schemes

Finally, the study examines how different prompting techniques influence the agent's ability to retrieve and apply its knowledge. These include Default Thought (DT), Chain-of-Thought (CoT), Self-Consistency (SC-CoT), and Tree-of-Thoughts (ToT).

Experimental Setup and Datasets

The researchers constructed a new benchmark using symbolic 20x20 grid maps derived from OpenStreetMap (OSM) data. The dataset covers 15 representative urban blocks across China (e.g., Beijing, Shanghai), the USA (e.g., New York, Los Angeles), and Europe (e.g., London, Paris). Each map features road networks, intersections, and between 9 and 21 Points of Interest (POIs).

Agents were evaluated on five core cognitive tasks:

  1. Direction Judgment (DJ)
  2. Distance Estimation (DS)
  3. Proximity Judgment (PJ)
  4. POI Density Recognition (PDR)
  5. Path Planning (PP)

Key Insights

The Memory "Sweet Spot"

The research identified a non-linear relationship between memory structure and performance. While Simple Dialogue Memory (SDM) is exhaustive, it is inefficient and often exceeds context windows. Conversely, Graph and Map memories are highly compressed but can lose the temporal nuances of exploration. Node-Sequence Memory (NSM) emerged as the optimal balance, preserving the chronological order of encounters necessary for accurate metric reasoning (distance and direction) while reducing the memory footprint by nearly 50% compared to SDM.

Reasoning as a Repair Mechanism

Advanced reasoning schemes, particularly Tree-of-Thought (ToT), act as a "repair" mechanism for agent failures. By forcing the model to evaluate multiple candidate routes or spatial relationships simultaneously, ToT prevents the agent from committing to an early, incorrect heuristic. For mid-tier models, this shift in prompting strategy resulted in significant accuracy gains (e.g., from 55% to 73%).

The Scaling Plateau

Interestingly, the study found that spatial reasoning does not scale infinitely with model size. While there is a significant performance jump from small to medium-sized models, the gains from medium to state-of-the-art models (e.g., moving from high-performing current models to hypothetical next-generation versions) are marginal. This suggests that spatial intelligence may require specific architectural innovations or specialized memory handling rather than simple parameter scaling.

Results Summary

  • Top Performer: Gemini-2.5-Pro demonstrated the most robust performance, maintaining ~79% accuracy regardless of the exploration strategy used.
  • Memory Efficiency: Transitioning to Node-Sequence Memory (NSM) allowed models like GPT-5.2 to improve accuracy from 43.89% to 77.78%.
  • Task Difficulty: POI Density Recognition (PDR) remains the most difficult task for all models, with accuracy often falling below 50%, indicating a systemic weakness in global spatial aggregation.

Conclusion and Future Work

This work demonstrates that for FM agents, the ability to "think on maps" is less about how they move and more about how they remember and process their experiences. Future research will look to move beyond symbolic 2D grids into high-fidelity 3D environments with greater geometric complexity. Additionally, the authors aim to explore "learned memory induction," where agents autonomously develop their own compression and storage strategies rather than relying on human-engineered memory structures.

Summary updated

BibTeX
@misc{wei2025thinking,
  author = {Zhiwei Wei and Yuxing Liu and Hua Liao and Wenjia Xu},
  title = {{Thinking on Maps: How Foundation Model Agents Explore, Remember, and Reason Map Environments}},
  year = {2025},
  eprint = {2512.24504},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.24504},
}
Figure