Why Are Learned Indexes So Effective but Sometimes Ineffective?
Learned indexes have attracted significant research interest due to their potential to offer better space-time trade-offs compared to 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 provably superior performance over conventional B+-tree indexes. However, despite numerous efforts to optimize the design of the PGM-Index, few systematically study the root causes of performance mismatches observed in practice. In this paper, we explore two key research questions. Q1 : Why are PGM-Indexes theoretically effective? and Q2 : Why do PGM-Indexes underperform in practice? For Q1 , we show that for a set of N sorted keys, the PGM-Index can achieve a lookup time of O (log log N ) while using O ( N ) space. For Q2 , we identify that querying PGM-Indexes is highly memory-bound, where the internal index search operations often become the bottleneck. To fill the performance gap, we propose PGM++, a simple yet effective extension to the original PGM-Index that employs a mixture of different search strategies, with hyper-parameters automatically tuned through a cost model calibrated by theoretical findings. Extensive experiments show that, at comparable space costs, PGM++ speeds up index lookup queries by up to 2.31X and 1.56X when compared to the original PGM-Index and SOTA baselines.
Authors
- Longlong Lin (ORCID: https://orcid.org/0000-0002-2194-8146)
- Qiyu Liu (ORCID: https://orcid.org/0000-0003-1475-2732)
- Yanlin Qi (ORCID: https://orcid.org/0000-0001-6572-1093)
- Jin Li (ORCID: https://orcid.org/0000-0003-4844-2572)
- Lei Chen (ORCID: https://orcid.org/0000-0002-4279-3892)
- S. Han (ORCID: https://orcid.org/0009-0006-3642-2194)
- Junxiang Peng (ORCID: https://orcid.org/0000-0003-0292-5237)
Institutions
- Southwest University (CN)
- Hong Kong University of Science and Technology (HK)
- Harvard University Press (US)
- Hindustan Petroleum Corporation Limited (India) (IN)
Publication Details
- Journal
- Proceedings of the VLDB Endowment
- Published
- 2025-05-01
- DOI
- https://doi.org/10.14778/3746405.3746415
- Citations
- 1
- Primary Topic
- Algorithms and Data Compression
- Type
- article
- Field-Weighted Citation Impact
- 2.48