[Paper Review] FL-RMQ: A Learned Approach to Range Minimum Queries
This paper introduces SOSD, a new open-source benchmark for evaluating learned index structures on real-world and synthetic datasets. It demonstrates that learned models like RMI and RadixSpline can outperform traditional indexes (e.g., B-trees, ART) in lookup latency by leveraging data distribution-aware CDF approximation, especially on skewed or dense data, while maintaining low space overhead and high cache efficiency.
A groundswell of recent work has focused on improving data management systems with learned components. Specifically, work on learned index structures has proposed replacing traditional index structures, such as B-trees, with learned models. Given the decades of research committed to improving index structures, there is significant skepticism about whether learned indexes actually outperform state-of-the-art implementations of traditional structures on real-world data. To answer this question, we propose a new benchmarking framework that comes with a variety of real-world datasets and baseline implementations to compare against. We also show preliminary results for selected index structures, and find that learned models indeed often outperform state-of-the-art implementations, and are therefore a promising direction for future research.
Motivation & Objective
- Address skepticism in the database community about whether learned indexes can outperform highly optimized traditional indexes like B-trees and ART.
- Provide a standardized, open-source benchmarking framework (SOSD) to enable fair and reproducible comparison of in-memory search algorithms on sorted data.
- Evaluate the performance of diverse index structures—including on-the-fly algorithms, auxiliary indexes, CDF-approximating learned models, and traditional indexes—across varied real-world and synthetic datasets.
- Investigate the trade-offs between performance, space efficiency, and training complexity in learned index designs.
- Enable future research by supporting integration with databases, multi-threaded execution, and hardware accelerators like GPUs and FPGAs.
Proposed method
- Design and implement SOSD, an open-source C++ framework that supports 32-bit and 64-bit datasets and provides low-overhead, high-precision performance counters (cache misses, branch mispredictions, instructions executed).
- Benchmark 10 million equality lookups on 8 diverse datasets (e.g., Amazon sales, Wikipedia edits, Facebook IDs) with keys drawn from uniform distributions over the key set.
- Implement and compare 10 index techniques: on-the-fly (BinarySearch, InterpolationSearch, TIP), auxiliary indexes (RadixBinarySearch), CDF-approximating learned models (RMI, RadixSpline), and traditional indexes (ART, B-tree, FAST).
- Use a bottom-up approach to train RadixSpline by fitting linear splines to the CDF and indexing segments via a radix structure, contrasting with RMI’s top-down model tree construction.
- Measure end-to-end lookup latency, size overhead, and low-level performance counters (cache misses, branch mispredictions, instructions) to analyze performance bottlenecks.
- Use AWS c5.4xlarge and Intel Xeon E5-2680 v4 for consistent, reproducible measurements across all experiments.
Experimental results
Research questions
- RQ1Can learned index structures like RMI and RadixSpline outperform highly optimized traditional in-memory indexes (e.g., B-tree, ART, FAST) on real-world data workloads?
- RQ2How do different index structures perform across diverse data distributions (e.g., uniform, skewed, lognormal, sparse, dense) in terms of latency and space efficiency?
- RQ3To what extent do low-level performance counters (cache misses, branch mispredictions, instructions) explain differences in end-to-end lookup latency?
- RQ4What is the trade-off between training time and runtime performance for learned models like RMI and RadixSpline, and can they be made practical for real-world deployment?
- RQ5How does the choice of index structure depend on data characteristics and system constraints such as update frequency and available tuning time?
Key findings
- RadixSpline (RS) and Recursive Model Index (RMI) achieve the lowest lookup latencies across most datasets, with median latencies under 100 ns on dense and skewed data like uspr64 and uden32.
- On the dense integer dataset uspr64, RS achieves 54.2 ns per lookup, outperforming the next best (ART at 112 ns) by over 2x, demonstrating the benefit of data-aware modeling.
- On skewed data like omsc64, InterpolationSearch (IS) degrades to 95,076 ns per lookup, while RMI (402 ns) and RS (437 ns) remain efficient, showing the robustness of learned models.
- RMI and RS incur only ~10 cache misses per lookup, comparable to FAST (under 5), yet achieve superior search times, indicating that cache misses alone do not determine performance.
- The performance of learned models like RMI and RS is highly dependent on data distribution, with the best results on dense or skewed data, while IS dominates only on uniform, dense keys.
- Build times for learned models like RS are higher due to spline fitting, but remain acceptable (e.g., ~100s for 200M keys), and can be reduced with sampling or optimization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.