Back to search

Digital Repository at the University of Maryland

Spatial Reasoning through Artificial Intelligence

Abstract

dc:description.abstract

Searching for places using spatial information is useful in a variety of domains that are grounded in the physical world, including urban planning, civil engineering, travel, and many others. Use cases include region recommendation in urban planning, scene recognition in military and defense applications, and Point of Interest recommendation in the travel domain. These spatial search applications are not well-served by modern search engines and Global Navigation Satellite System-based mapping applications for a variety of reasons. Many spatial search questions are naturally specified using a visual query pattern capturing objects of interest and constraints between them, which requires a specialized interface that is not compatible with text-based search engines. Such cases also require a computationally expensive form of search, spatial pattern matching, to resolve. Further, the types of spatial relationships that can be used for spatial search are heterogeneous in nature, including concepts like distance, directionality, topology, and cyclic order, making it difficult to reason over them consistently. For some spatial relationships, searchable data is sparse, with pairwise relationships requiring expensive polygonal data to compute, before search can even begin. Finally, while modern Large Language Models can be used to approximately answer some spatial questions, geographic representation in these models varies, leaving less common places under-represented. To enable spatial search more broadly, we seek to address several challenges that have gone unaddressed in previous work; approximately reasoning over heterogeneous entity/relation types, handling data incompleteness for difficult-to-compute relations, and supporting spatial search using various query input types. With these challenges in mind, we leverage techniques in Artificial Intelligence and Natural Language Processing to develop a set of complementary approaches that make spatial search accessible and practically viable for widespread use in search and mapping applications. To address metric reasoning, we develop a Retrieval Augmented Generation approach that allows a Large Language Model to retrieve geodesic distances between places that it has not memorized during training, enabling it to accurately answer metric spatial reasoning questions. To address topological reasoning, we propose a new method for inferring topological relationships in geographic knowledge graphs, which are frequently missing topological relationships, since they are expensive to compute exactly. To address directional reasoning, we hierarchically decompose the region of interest and encode entities in a simplified grid format, then cluster objects based on location, enabling directional search at different levels of the hierarchy through recursive grid decomposition. To address cyclic order reasoning, we develop a tool-calling method that allows a Large Language Model to compute pairwise cyclic order relationships using a 2x2 determinant, enabling it to answer cyclic order questions. Finally, to address the query input format challenge we leverage a prompt-tuned Large Language Model to interpret spatial patterns described in natural language and convert them into pictorial queries for the approaches that require pictorial input, enabling seamless integration with the pre-existing text interfaces used by most search engines and mapping platforms. Since many search applications rely on Large Language Models, we also analyze how place names are represented in the embedding space of an open-source model, showing that performance on place-related questions correlates with embedding space representation of those places. Our primary contribution is advancing Artificial Intelligence-based spatial reasoning by developing approaches that enable fast, robust approximate search over spatial queries. We address the challenges currently preventing spatial pattern matching from being adopted in real-time search pipelines and build a system to showcase the viability of our approach, including support for multiple query modalities.

Degree

thesis:*
Department dc:contributor.department
Computer Science
Grantor dc:publisher
Digital Repository at the University of Maryland
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Schneider, Nicole
Advisor dc:contributor.advisor
  • Samet, Hanan

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
University of Maryland
Base URL
api.drum.lib.umd.edu/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

Schneider, Nicole. Spatial Reasoning through Artificial Intelligence. Digital Repository at the University of Maryland, 2026. http://hdl.handle.net/1903/36208