Skip to main content
QUICK REVIEW

[Paper Review] The Case for Learned Spatial Indexes

Varun Pandey, Alexander van Renen|arXiv (Cornell University)|Aug 24, 2020
Data Management and AlgorithmsComputer Science44 references5 citations
TL;DR

This paper proposes replacing traditional binary search with learned models (e.g., RadixSpline) for refining spatial range queries within partitions of classical multi-dimensional indexes. By tuning partitioning techniques and leveraging machine learning for intra-partition search, the approach achieves 11.79% to 39.51% faster query performance, especially for low-selectivity queries, with 1D grid-based methods showing greater gains than tree-based structures.

ABSTRACT

Spatial data is ubiquitous. Massive amounts of data are generated every day from billions of GPS-enabled devices such as cell phones, cars, sensors, and various consumer-based applications such as Uber, Tinder, location-tagged posts in Facebook, Twitter, Instagram, etc. This exponential growth in spatial data has led the research community to focus on building systems and applications that can process spatial data efficiently. In the meantime, recent research has introduced learned index structures. In this work, we use techniques proposed from a state-of-the art learned multi-dimensional index structure (namely, Flood) and apply them to five classical multi-dimensional indexes to be able to answer spatial range queries. By tuning each partitioning technique for optimal performance, we show that (i) machine learned search within a partition is faster by 11.79\% to 39.51\% than binary search when using filtering on one dimension, (ii) the bottleneck for tree structures is index lookup, which could potentially be improved by linearizing the indexed partitions (iii) filtering on one dimension and refining using machine learned indexes is 1.23x to 1.83x times faster than closest competitor which filters on two dimensions, and (iv) learned indexes can have a significant impact on the performance of low selectivity queries while being less effective under higher selectivities.

Motivation & Objective

  • To evaluate the performance impact of integrating learned index models into classical multi-dimensional spatial indexing structures.
  • To identify which spatial partitioning techniques benefit most from learned refinement over traditional binary search.
  • To analyze the trade-offs between index build time, size, and query performance when using machine learning for spatial query processing.
  • To determine the conditions under which learned indexes outperform or underperform compared to conventional methods.
  • To explore the potential of linearizing spatial partitions and applying learned models to improve scalability and efficiency.

Proposed method

  • The authors implement five classical spatial partitioning techniques: Fixed-grid, Adaptive-grid, k-d tree, Quadtree, and STR-tree, each with a standard index lookup and refinement pipeline.
  • For the refinement phase, they replace binary search with learned models—specifically RadixSpline—trained on sorted data within each partition to predict query bounds.
  • The system is evaluated using real-world datasets (NYC Taxi Rides, OSM, Tweets) under varying selectivity levels and data distributions (uniform vs. skewed).
  • Performance is measured across three phases: index lookup, refinement (search), and scan, with query runtime and index build time as key metrics.
  • Partitioning schemes are tuned for optimal performance, and index size includes both metadata and data storage.
  • The approach leverages techniques from the Flood index (a state-of-the-art learned multi-dimensional index) to guide partitioning and model training.

Experimental results

Research questions

  • RQ1How does replacing binary search with a learned model in the refinement phase affect overall query performance across different spatial indexing structures?
  • RQ2Which spatial partitioning techniques benefit most from learned refinement, and why?
  • RQ3How does query selectivity influence the performance gain from using learned indexes?
  • RQ4What is the impact of index build time and size when using learned models in spatial indexes?
  • RQ5Can learned models improve performance more in 1D grid-based partitioning than in 2D tree-based partitioning, and if so, why?

Key findings

  • Replacing binary search with a learned model (RadixSpline) in the refinement phase improves query runtime by 11.79% to 39.51% across all partitioning techniques.
  • The performance gain is most significant for low-selectivity queries (e.g., 0.00001% selectivity), where index and refinement phases dominate query time.
  • 1D grid-based partitioning (e.g., Fixed-grid, Adaptive-grid) benefits more from learned refinement than 2D tree-based structures (e.g., Quadtree, k-d tree), due to higher refinement needs per partition.
  • Filtering on one dimension and refining with a learned model is 1.23x to 1.83x faster than the closest competitor that filters on two dimensions.
  • Index build time is fastest for Fixed-grid and Adaptive-grid (2.11× faster than STRtree), while Quadtree is slowest due to high cell count and data imbalance.
  • For on-disk workloads, I/O dominates performance, making 2D partitioning more favorable due to better alignment with physical page sizes and reduced unnecessary data access.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.