Papers
Topics
Authors
Recent
Search
2000 character limit reached

Evaluating Learned Spatial Indexes

Published 17 Jun 2026 in cs.DB | (2606.19034v1)

Abstract: Learned indexes improve query performance by adapting search structures to data and workload distributions. Although many learned indexes have been proposed, their trade-offs remain insufficiently understood for spatial range queries, where performance depends not only on model accuracy but also on data and query skew, layout granularity, selectivity, and storage behavior. In this work, we perform an experimental study of learned indexes for spatial range queries. We examine a representative set of indexes and address seven fundamental questions: (1) How does block size influence query latency, and what configurations yield optimal performance under varying selectivities? (2) How do skewed data and query distributions impact index performance? (3) How do indexes balance refinement and scan costs, and which designs favor one over the other? (4) How do disk-based storage conditions alter optimal block size and latency trade-offs compared to in-memory settings? (5) What are the construction costs of different indexes, and under what query volumes are these costs amortized? (6) For a given data and query workload, which index is expected to perform best? (7) Do index-selection insights learned from synthetic data generalize to real-world data distributions? To enable the analysis, we use a framework with a common storage backend, standardized query execution pipelines, and controlled variations in data and query skew. Our experiments reveal critical insights into refinement vs. scan trade-offs, the impact of block size, and the interplay between selectivity and layout effectiveness. We synthesize these findings into a workload-based decision tree for index selection and validate it on real OpenStreetMap point sets with synthetic queries, confirming that its recommendations exhibit minimal decision regret and typically yield near-optimal query performance.

Summary

  • The paper’s main contribution is the development of a unified benchmarking framework that rigorously compares learned and traditional spatial indexes under varied workloads.
  • It methodically analyzes the impact of block size, data/query skew, and the trade-off between refinement and scan latencies using both synthetic and real-world datasets.
  • The study introduces a decision-tree-based index selection guidance that quantifies cost trade-offs and tailors recommendations based on workload and storage conditions.

Authoritative Summary of "Evaluating Learned Spatial Indexes" (2606.19034)

Overview

The paper "Evaluating Learned Spatial Indexes" systematically benchmarks a spectrum of learned and traditional spatial indexes in the context of range-query workloads on two-dimensional static point data. The study addresses the gap in the literature regarding rigorous, controlled comparison frameworks for spatial indexes—especially learned variants—by evaluating their performance across critical axes: block size, data/query skew, refinement vs. scan costs, construction overhead, storage modality, and selection guidance. The investigation leverages both synthetic and real-world datasets, providing actionable insights into index behavior under varied workload and storage conditions.

Methodological Framework

A unified benchmarking framework was designed to facilitate direct comparison among spatial indexes. This included:

  • A storage backend standardizing block-based data layouts across all indexes.
  • Controlled synthetic workload generation (using Gaussian Mixture Models) allowing fine-grained manipulation of data and query skew.
  • Comprehensive index re-implementation, avoiding implementation-induced biases.
  • Classically optimized and query-aware learned indexes spanning grid-based, space-partitioning, data partitioning, and order-based families.

Experiments probed seven fundamental questions (RQ1–RQ7), systematically isolating influences such as block size and skew, dissecting latency sources, and quantifying construction versus query-time trade-offs.

Experimental Results and Analysis

Block Size Effects and Query Selectivity

The study confirms that block size substantially determines query latency for all index families. Optimal block size is workload-dependent and mediates the refinement–scan trade-off: finer blocks decrease false-positive scans but increase refinement overhead; coarser blocks invert this dynamic. Learned indexes (Flood, KDtree, QDtree, Rsmi, WAZI) display significant sensitivity to block-size tuning. ZMindex is notably block-size fragile, contrasting with the robust performance of KDtree and Flood under optimal granularity.

Impact of Data and Query Skew

Data skew exerts a larger influence on index performance than query skew. Learned and query-aware methods adapt layouts to concentrate query effort on dense regions, but this adaptation is not automatically robust—benefits are realized only when increased data skew aligns with effective block isolation. Query skew sometimes reduces workload for specific indexes (e.g., STR, R*tree) but can backfire when concentrated queries overlap inefficient block partitions.

Refinement vs. Scan Latency

Refinement cost is generally dominated by scan latency, with scan-to-refinement ratios scaling with query selectivity. The analysis reveals that aggressive pruning (as in KDtree, GridFile, Flood) minimizes scan overhead, whereas sophisticated learned partitioning (e.g., CUR, RWtree, ZMindex) can inadvertently increase refinement or scan costs. WAZI consistently minimizes false positives among order-based methods.

Disk-Backed Storage Dynamics

Transitioning to disk-backed storage amplifies the penalty for both excessive block fetches and high scan volumes. The optimal block size and index selection shift accordingly: KDtree, Rsmi, and WAZI become comparatively stronger while Flood’s block-size robustness reduces. In-memory and disk-backed granularities do not always align, underscoring the necessity for environment-specific tuning.

Index Construction Cost and Redemption Thresholds

Learned indexes commonly incur higher construction overhead, but the degree varies widely. Methods such as Rsmi require orders-of-magnitude more build time than STR or GridFile, necessitating larger query volumes for amortization. In the disk-backed setting, redemption thresholds for several methods exceed practical limits, favoring simpler structures or select learned variants (KDtree, QDtree, WAZI).

Data-Driven Index Selection Guidance

A decision tree classifier trained on experimental data provides low-regret recommendations for index selection, based on parameters such as data/query skew, selectivity, and storage medium. This classifier achieves 57.8% top-three accuracy and minimal decision regret (<1.008× optimal latency) on OpenStreetMap validation sets, demonstrating practical transferability of benchmarking insights.

Synthetic-to-Real Data Transfer

Validation against OpenStreetMap data confirms synthetic benchmarking provides reliable index-selection guidance: the decision tree recommendations nearly always include the best or near-best index, as measured by query latency. This establishes external validity for controlled synthetic studies in real deployment contexts.

Strong Numerical Results and Claims

  • Block-size tuning improves query latency 1.2–1.6× for most methods; ZMindex achieves up to 2.8× improvement.
  • Disk-backed scan latency is ~3.6× higher than in-memory, dominant over refinement cost.
  • Rsmi requires ~790M queries for redemption in-memory, highlighting scalability barriers for certain learned indexes.
  • The decision tree delivers <1.008× median decision regret in disk-backed OpenStreetMap settings, exhibiting robust selection performance.

Practical and Theoretical Implications

Practically, the results advocate for workload-aware, environment-adapted block-size tuning and caution against one-size-fits-all index deployments. Learned indexes are not universally optimal; their efficacy is contingent on careful configuration, construction cost amortization, and environmental constraints (memory, disk latency). The evaluation framework and selection guidance directly inform index deployment strategies in spatial DBMS and data-intensive applications.

Theoretically, the findings question the universality of learned index advantages, highlighting the interaction between modeling capacity, workload distribution, and system-level trade-offs. Future research should extend benchmarking to dynamic/online workloads, support incremental learning, and explore hybrid designs blending classical and learned structure features.

Conclusion

"Evaluating Learned Spatial Indexes" delivers a rigorous comparative benchmarking approach, exposing nuanced performance determinants for learned and traditional spatial indexes. The synthesis of empirical results into actionable selection guidance constitutes a significant practical contribution for DBMS designers and spatial data practitioners. Extending this methodology to broader data types, dynamic workloads, and heterogeneous storage environments remains a compelling direction for advancing spatial indexing in ML-integrated systems.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 2 likes about this paper.