MANGO: A Benchmark for Evaluating Mapping and Navigation Abilities of Large Language Models

Peng Ding, Jiading Fang, Peng Li, Kangrui Wang, Xiaochen Zhou, Mo Yu, Jing Li, Hongyuan Mei, Matthew Walter

TL;DR

This paper introduces MANGO, a novel benchmark designed to evaluate the mapping and navigation capabilities of Large Language Models (LLMs) in text-based environments. Despite impressive general language understanding, even state-of-the-art LLMs like GPT-4 struggle with these fundamental spatial reasoning tasks, highlighting a significant gap in their abilities.

What Problem Does This Paper Address?

Humans possess remarkable abilities to build mental maps of their surroundings and navigate through them, making informed decisions. This capability is crucial for exploration and adaptation. The paper asks a fundamental question: do Large Language Models (LLMs), despite their advanced natural language processing skills, possess similar spatial reasoning and navigation abilities? Existing benchmarks often focus on language understanding or task completion without specifically isolating and evaluating the core skills of mapping and navigation. This paper aims to fill that gap by creating a challenging benchmark that tests these specific abilities in LLMs.

Methods

The core of the MANGO benchmark involves creating a dataset of 53 complex mazes derived from text-based adventure games. For each maze, a "walkthrough" (a sequence of actions and observations) is provided. The LLMs are then tasked with answering hundreds of "destination-finding" (DF) and "route-finding" (RF) questions based on this walkthrough. Crucially, many questions require reasoning about paths not explicitly covered in the walkthrough, forcing the LLM to infer spatial relationships and construct a mental map. The authors also developed a method to impute "implicit edges" in the maze graphs, representing valid moves not explicitly stated in the walkthrough, to increase the difficulty and realism of the questions. Evaluation metrics include success rate (exact or partial matches for DF, and successful navigation for RF) and reasoning accuracy (evaluating the LLM's generated trajectory).

Datasets

The primary dataset for MANGO is derived from the Jericho game suite, comprising 53 complex mazes from text-based adventure games. Each maze is paired with an enhanced walkthrough (actions + observations). The benchmark includes:

  • DF Skeletons: Questions asking "Where will you be if you go X, Y, Z from location A?"
  • RF Skeletons: Questions asking "How do you reach location B from location A?" These skeletons are further annotated with "ANSWERABLE" and "EASY" labels to control for context window limitations and question difficulty.

Key Insights and Ideas

  • LLMs Struggle with Spatial Reasoning: Even the most advanced LLMs, like GPT-4, perform surprisingly poorly on mapping and navigation tasks, answering only about half of the route-finding questions correctly. This suggests that current LLMs, while excellent at language, lack robust internal representations of spatial environments.
  • Mapping and Navigation are Foundational: The paper provides evidence that strong mapping and navigation abilities are beneficial for LLMs in downstream tasks, such as playing text-based games. This implies these skills are not just niche but fundamental for more complex agentic behavior.
  • "Hard" Questions are Truly Challenging: Questions involving routes not explicitly in the walkthrough (imputed edges) significantly degrade LLM performance, highlighting a key bottleneck.
  • Context Window Limitations Matter: The size of the LLM's context window directly impacts the number of questions it can answer, underscoring the practical challenges of applying these models to complex environments.

Key Results

  • GPT-4 Leads, But Not by Much: GPT-4 significantly outperforms other LLMs, including GPT-3.5, Claude, Llama-2, and RWKV, on both DF and RF tasks. However, its success rate on hard RF questions is only around 50%, indicating substantial room for improvement.
  • Human Performance is High: Humans, in contrast, achieve very high success rates (near 100% for DF, and over 80% for RF) on the same tasks, demonstrating the significant gap between current LLM capabilities and human spatial reasoning.
  • Downstream Task Improvement: A case study showed that providing LLMs with explicit map information (learned from walkthroughs) significantly improved their performance in playing text-based minigames, reinforcing the importance of mapping abilities.

Limitations and Future Work

  • Limitations: The paper acknowledges that even GPT-4 struggles with hard questions, sometimes hallucinating non-existent locations or edges. The performance of LLMs is also sensitive to prompt design and context window size.
  • Future Work: The authors suggest several exciting future directions:
  • Investigating how LLMs internally represent spatial maps and if these representations can be probed.
  • Exploring low-cost adaptation techniques to improve LLM generalization to unseen mazes and dynamic environments.
  • Enriching the MANGO benchmark with more complex spatial configurations, such as precise distances and facing directions, to push LLM capabilities further.
  • Studying LLM robustness to distracting context and their ability to generalize to out-of-distribution navigation scenarios.

Summary updated

BibTeX
@inproceedings{ding2024mango,
  author = {Peng Ding and Jiading Fang and Peng Li and Kangrui Wang and Xiaochen Zhou and Mo Yu and Jing Li and Hongyuan Mei and Matthew Walter},
  title = {{MANGO: A Benchmark for Evaluating Mapping and Navigation Abilities of Large Language Models}},
  booktitle = {COLM},
  year = {2024},
  url = {https://openreview.net/forum?id=6vEfyp0o68},
}
Figure