Why Are Learned Indexes So Effective but Sometimes Ineffective?
Qiyu Liu, Siyuan Han, Yanlin Qi, Jingshu Peng, Jin Li, Longlong Lin, Lei Chen
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 provably superior performance over conventional B+-tree indexes. In this paper, we explore two interesting research questions regarding the PGM-Index: ❶ Why are PGM-Indexes theoretically effective? and ❷ Why do PGM-Indexes underperform in practice? For question ❶, we first prove that, for a set of 𝑁 sorted keys, the PGM-Index can, with high probability, achieve a lookup time of 𝑂 (log log 𝑁 ) while using 𝑂 (𝑁 ) space. To the best of our knowledge, this is the tightest bound for learned indexes to date. For question ❷, 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 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 2.31× and 1.56× when compared to the original PGM-Index and state-of-the-art learned indexes.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext ceab7ce5-07a5-4d0b-8d98-1d0e03d2b235Builds on16
- ALEX: An Updatable Adaptive Learned IndexJialin Ding, Umar Farooq Minhas, Jia Yu, Chi Wang et al.SIGMOD 2020 · 274 citations
- Bao: Making Learned Query Optimization PracticalRyan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul et al.SIGMOD 2021 · 242 citations
- The PGM-index: a fully-dynamic compressed learned index with provable worst-case boundsPaolo Ferragina, Giorgio VinciguerraVLDB 2020 · 178 citations
- Updatable Learned Index with Precise PositionsJiacheng Wu, Yong Zhang, Shimin Chen, Yu Chen et al.VLDB 2021 · 160 citations
- Are We Ready For Learned Cardinality Estimation?Xiaoying Wang, Changbo Qu, Weiyuan Wu, Jiannan Wang et al.VLDB 2021 · 156 citations
Related papers
- Updatable Learned Indexes Meet Disk-Resident DBMS - From Evaluations to Design ChoicesHai Lan, Zhifeng Bao, J. Shane Culpepper, Renata Borovica-GajicSIGMOD 2023 · 26 citations
- VEGA: An Active-tuning Learned Index with Group-Wise Learning GranularityMeng Li, Huayi Chai, Siqiang Luo, Haipeng Dai et al.SIGMOD 2025 · 3 citations
- On Distribution Dependent Sub-Logarithmic Query Time of Learned IndexingSepanta Zeighami, Cyrus ShahabiICML 2023 · 20 citations
- Learned Index with Dynamic Daoyuan Chen, Wuchao Li, Yaliang Li, Bolin Ding et al.ICLR 2023
- Making In-Memory Learned Indexes Efficient on DiskJiaoyi Zhang, Kai Su, Huanchen ZhangSIGMOD 2024 · 18 citations
