DistRAG: Towards Distance-Based Spatial Reasoning in LLMs
On the map: LLM reasoning → Spatial and embodied reasoning
Abstract (arXiv)
Many real world tasks where Large Language Models (LLMs) can be used require spatial reasoning, like Point of Interest (POI) recommendation and itinerary planning. However, on their own LLMs lack reliable spatial reasoning capabilities, especially about distances. To address this problem, we develop a novel approach, DistRAG, that enables an LLM to retrieve relevant spatial information not explicitly learned during training. Our method encodes the geodesic distances between cities and towns in a graph and retrieves a context subgraph relevant to the question. Using this technique, our method enables an LLM to answer distance-based reasoning questions that it otherwise cannot answer. Given the vast array of possible places an LLM could be asked about, DistRAG offers a flexible first step towards providing a rudimentary `world model' to complement the linguistic knowledge held in LLMs.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Spatial and embodied reasoning, one of 17 directions in LLM reasoning. Builds on 7 of its 22 references that are in the map. First posted on arXiv 3 Jun 2025.
Builds on
7 of 22 references.
Closest ancestors · 1
Same direction, newest first
- 2025Spatial-RAG: Spatial Retrieval Augmented Generation for Real-World Geospatial Reasoning Questions4 Feb
Other references · 6
- 2024The Faiss librarycited by 370
- 2024Graph Retrieval-Augmented Generation: A Surveycited by 320
- 2023Language is All a Graph Needscited by 219
- 2023Talk like a Graph: Encoding Graphs for Large Language Modelscited by 175
- 2023Retrieve-Rewrite-Answer: A KG-to-Text Enhanced LLMs Framework for Knowledge Graph Question Answeringcited by 64
- 2023Graph Reasoning for Question Answering with Triplet Retrievalcited by 34
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2024Can Large Language Models Create New Knowledge for Spatial Reasoning Tasks?
- 2026MultiGlobeQA: A Multilingual and Globally Diverse Benchmark for Geospatial Reasoning
- 2025Stuck in the Matrix: Probing Spatial Reasoning in Large Language Models
- 2025Can Large Language Models Integrate Spatial Data? Empirical Insights into Reasoning Strengths and Computational Weaknesses
- 2026From Symbolic to Geometric: Enabling Spatial Reasoning in Large Language Models
- 2026Network-based Spatial Context Retrieval for Open-weight LLMs: A Faithfulness Benchmark for Grounded Geographic Reasoning
- 2024CityGPT: Empowering Urban Spatial Cognition of Large Language Models
- 2023Are Large Language Models Geospatially Knowledgeable?