English

Evaluating Spatial Understanding of Large Language Models

Computation and Language 2024-04-16 v3 Artificial Intelligence

Abstract

Large language models (LLMs) show remarkable capabilities across a variety of tasks. Despite the models only seeing text in training, several recent studies suggest that LLM representations implicitly capture aspects of the underlying grounded concepts. Here, we explore LLM representations of a particularly salient kind of grounded knowledge -- spatial relationships. We design natural-language navigation tasks and evaluate the ability of LLMs, in particular GPT-3.5-turbo, GPT-4, and Llama2 series models, to represent and reason about spatial structures. These tasks reveal substantial variability in LLM performance across different spatial structures, including square, hexagonal, and triangular grids, rings, and trees. In extensive error analysis, we find that LLMs' mistakes reflect both spatial and non-spatial factors. These findings suggest that LLMs appear to capture certain aspects of spatial structure implicitly, but room for improvement remains.

Keywords

Cite

@article{arxiv.2310.14540,
  title  = {Evaluating Spatial Understanding of Large Language Models},
  author = {Yutaro Yamada and Yihan Bao and Andrew K. Lampinen and Jungo Kasai and Ilker Yildirim},
  journal= {arXiv preprint arXiv:2310.14540},
  year   = {2024}
}

Comments

Accepted to TMLR 2024. Our code and data are available at https://github.com/runopti/SpatialEvalLLM, https://huggingface.co/datasets/yyamada/SpatialEvalLLM

R2 v1 2026-06-28T12:58:23.751Z