SpaRC and SpaRP: Spatial Reasoning Characterization and Path Generation for Understanding Spatial Reasoning Capability of Large Language Models

Md Imbesat Hassan Rizvi, Xiaodan Zhu, Iryna Gurevych
6/7/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: UKPLab/acl2024-sparc-and-sparp (2 stars, Apache-2.0, last commit 2025-06-05).

Abstract

Spatial reasoning is a crucial component of both biological and artificial intelligence. In this work, we present a comprehensive study of the capability of current state-of-the-art large language models (LLMs) on spatial reasoning. To support our study, we created and contribute a novel Spatial Reasoning Characterization (SpaRC) framework and Spatial Reasoning Paths (SpaRP) datasets, to enable an in-depth understanding of the spatial relations and compositions as well as the usefulness of spatial reasoning chains. We found that all the state-of-the-art LLMs do not perform well on the datasets -- their performances are consistently low across different setups. The spatial reasoning capability improves substantially as model sizes scale up. Finetuning both large language models (e.g., Llama-2-70B) and smaller ones (e.g., Llama-2-13B) can significantly improve their F1-scores by 7--32 absolute points. We also found that the top proprietary LLMs still significantly outperform their open-source counterparts in topological spatial understanding and reasoning.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

SpaRC and SpaRP: Spatial Reasoning Characterization and Path Generation for Understanding Spatial Reasoning Capability of Large Language Models

22Shell, PythonMay 27, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{rizvi2024sparc,
  title  = {SpaRC and SpaRP: Spatial Reasoning Characterization and Path Generation for Understanding Spatial Reasoning Capability of Large Language Models},
  author = {Md Imbesat Hassan Rizvi and Xiaodan Zhu and Iryna Gurevych},
  year   = {2024},
  eprint = {2406.04566},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.04566v1}
}

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/2406.04566.svg)](https://codeofpaper.com/paper/2406.04566)

Discussion