Skip to content

Retrieval Augmented Generation for Relative Distance-based Spatial Reasoning

Sep 2026 · ACM Transactions on Spatial Algorithms and Systems · 0 citations · 25 references
Constraint Satisfaction and Optimization

Abstract

Large Language Models (LLMs) can be applied to various real-world tasks, many of which require spatial reasoning, like pattern-based spatial search, Point of Interest (POI) recommendation, and itinerary or travel planning. However, on their own LLMs have been shown to lack reliable spatial reasoning capabilities, especially about distances. Further, success at these tasks requires the LLM to have been exposed to the relevant places and to successfully disambiguate their spatial interpretations, which is affected by the popularity of the place name. To address these problems, we develop a novel approach using spatial Retrieval Augmented Generation (RAG) to enable an LLM to use relevant distance information not explicitly learned during training when answering spatial questions that involve distance reasoning. Our method encodes a spatial graph of geodesic and road network distances between cities and towns, as well as a mapping to their alternative names, and compares a variety of techniques to provide the LLM with the appropriate spatial context from those knowledge stores. By incorporating relevant spatial information, our method significantly outperforms the baseline LLM on several tasks requiring distance-based spatial reasoning, including nearest-neighbor questions and distance analogy questions. We further show through experiments which graph storage and retrieval methods perform best, and which are brittle when applied to more challenging questions. Given the vast array of possible places an LLM could be asked to reason about, our work offers a first step towards providing a rudimentary distance-oriented spatial ‘world model’ to complement the vast linguistic knowledge held in LLMs.

Read PDF

Similar papers

#machine learning Preprint Sep 2026

Network-based Spatial Context Retrieval for Open-weight LLMs: A Faithfulness Benchmark for Grounded Geographic Reasoning

Large language models (LLMs) encode substantial latent geographic knowledge, yet they reason poorly over space and are unreliable when queried from coordinates alone. Useful behaviour emerges only when structured spatial context is supplied in the prompt. This raises a question geographic evaluation has left unexamined...

Joan Perez · 0 citations
#artificial intelligence Preprint Sep 2026

Geometry-Aware Test-Time Learning for Quantitative Spatial Reasoning

TTL-SR is proposed, a geometry-aware Test-Time Learning framework for quantitative Spatial Reasoning that leverages geometric consistency constraints and unlabeled test data to adapt models to target domains to boost spatial reasoning performance.

Ge-Ge Zhang, Shuai-Cheng Niu, Gang Dai et al. · 0 citations
Sep 2026

Canvas Beyond Words: Teaching Machines to Sketch Empowers Their Spatial Intelligence.

SIG is introduced, a structured grid-based schema that explicitly represents object layouts, inter-object relations, and physically grounded priors that demonstrates the generalizability of SIG across diverse scenarios and multiple MLLMs, and systematically examines how data sample selection influences SIG-based ICL.

Guan-Lin Wu, Bo-Yan Su, Yang Zhao et al. · 0 citations
Preprint Oct 2026

LOCUS: Landmark-Oriented Container Discrimination Using Spatial Graphs

As robots are increasingly deployed in unstructured, real-world environments, the ability to reason about complex spatial and semantic relationships among objects remains a fundamental challenge in enabling robust and generalizable manipulation and navigation. For example, deciding where to search for an object that is...

Taylor Bergeron, Shibani Senthilbabu, Kevin Leahy · 0 citations
Preprint Sep 2026

Beyond Spatial Benchmarks: From Spatial Reasoning to Navigation

This analysis reveals a gap between benchmark-oriented spatial specialization and navigation performance, and shows how aligning spatial supervision with navigation goals, phases, and decision learning improves navigation.

Xun Huang, Shi-Jia Zhao, Rong Qu et al. · 0 citations
Conference Aug 2026

Agentic Graph RAG: Hybrid Explicit-Implicit Retrieval and Reasoning Over the MITRE ATLAS Knowledge Graph

Combining large language models (LLMs) with structured knowledge graphs can be a potential way of addressing issues with reliability and explainability of question answering systems in particular domains. While LLMs have been shown to be effective at natural language understanding, they may still hallucinate or fail to...

S. Solanki, Bhupendra Kumar · 0 citations

Related blog posts

Microsoft Research Blog Oct 12, 2026

Simulating student learning for better AI tutoring

StudentSim is a research system for evaluating and improving AI tutoring tools before they are tested with learners. It models how individuals may engage with tutors, giving feedback to improve tutor performance across subjects like chess, writing, and mathematics. The post Simulating student learning for better AI tutoring appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.