SpaRAGraph: Spatial Reasoning using Retrieval-Augmented Generation

SpaRAGraph: пространственное рассуждение с использованием генерации с дополненной поиском информацией
Nikos Mamoulis, John Pavlopoulos, Thanasis Georgiadis, John Pavlopoulos
2026-02-26

SpaRAGraphretrieval-augmented generationspatial reasoningspatial reasoning benchmarkspatial-to-RDF processing
The advent of large language models (LLMs) has enabled powerful applications across several domains such as science, healthcare, finance, and law. However, the spatial inference capabilities of LLMs are limited. Our goal is to facilitate more accurate LLM responses to spatial queries. To this end, we leverage inference-time retrieval augmented generation (RAG) to enrich LLM context using external data. We present SpaRAGraph, a framework that (i) performs spatial-to-RDF data processing to capture spatial relations between nearby entities, (ii) indexes relation-RDFs using a graph to facilitate semantic traversal, and (iii) retrieves the relevant context to a question at inference time, contextualizing it with factual, spatial information enhancing the LLM’s accuracy. Additionally, we present a spatial reasoning benchmark that challenges LLMs on binary, multiclass and multilabel classification tasks on real-world, spatial entities. Overall, SpaRAGraph sets the ground for using spatial knowledge retrieval techniques to improve LLM effectiveness in spatial reasoning tasks.
1
SpaRAGraph improves LLM spatial reasoning by augmenting inference-time context with retrieved factual spatial information.
2
SpaRAGraph supports spatial queries involving relations between nearby real-world entities.
3
The framework converts spatial data into RDF relations, indexes them in a graph, and semantically traverses the graph to retrieve question-relevant context.
4
The framework establishes a retrieval-based approach for enhancing LLM accuracy on spatial reasoning, although the abstract reports no quantitative performance results.
5
The paper introduces a benchmark covering binary, multiclass, and multilabel spatial reasoning classification tasks.

Large language models answering spatial queries using external spatial knowledge

Accuracy and spatial reasoning performance enhanced by retrieval-augmented generation over graph-indexed RDF relations

Publication Details
Publication Date
2026-02-26
Journal
Publisher
ISSN
Cited by
1
Access Type
Author Information
Authors
Nikos Mamoulis
John Pavlopoulos
Thanasis Georgiadis
John Pavlopoulos
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat →
Make a presentation
100%