pith. sign in

arxiv: 2410.00846 · v1 · pith:VW4J4FOFnew · submitted 2024-10-01 · 💻 cs.DB

Why Are Learned Indexes So Effective but Sometimes Ineffective?

classification 💻 cs.DB
keywords indexeslearnedpgm-indexempheffectivepgm-indexescomparederror-bounded
0
0 comments X
read the original abstract

Learned indexes have attracted significant research interest due to their ability to offer better space-time trade-offs compared to traditional B+-tree variants. Among various learned indexes, the PGM-Index based on error-bounded piecewise linear approximation is an elegant data structure that has demonstrated \emph{provably} superior performance over conventional B+-tree indexes. In this paper, we explore two interesting research questions regarding the PGM-Index: (a) \emph{Why are PGM-Indexes theoretically effective?} and (b) \emph{Why do PGM-Indexes underperform in practice?} For question~(a), we first prove that, for a set of $N$ sorted keys, the PGM-Index can, with high probability, achieve a lookup time of $O(\log\log N)$ while using $O(N)$ space. To the best of our knowledge, this is the \textbf{tightest bound} for learned indexes to date. For question~(b), we identify that querying PGM-Indexes is highly memory-bound, where the internal error-bounded search operations often become the bottleneck. To fill the performance gap, we propose PGM++, a \emph{simple yet effective} extension to the original PGM-Index that employs a mixture of different search strategies, with hyper-parameters automatically tuned through a calibrated cost model. Extensive experiments on real workloads demonstrate that PGM++ establishes a new Pareto frontier. At comparable space costs, PGM++ speeds up index lookup queries by up to $\mathbf{2.31\times}$ and $\mathbf{1.56\times}$ when compared to the original PGM-Index and state-of-the-art learned indexes.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. HIRE: A Hybrid Learned Index for Robust and Efficient Performance under Mixed Workloads

    cs.DB 2025-11 unverdicted novelty 5.0

    HIRE is a hybrid learned index that achieves up to 41.7x higher throughput under mixed workloads and reduces tail latency by up to 98% compared to state-of-the-art learned and traditional indexes.

  2. LiLIS: A Lightweight Distributed Learned Index Framework for Spatial Decision Analysis

    cs.DB 2025-04 unverdicted novelty 4.0

    LiLIS is a lightweight prototype that combines learned indices with spatial partitioning in distributed frameworks to support point, range, kNN, and join queries with reduced latency and construction cost.