On Distribution Dependent Sub-Logarithmic Query Time of Learned Indexing
Sepanta Zeighami, Cyrus Shahabi
Abstract
A fundamental problem in data management is to find the elements in an array that match a query. Recently, learned indexes are being extensively used to solve this problem, where they learn a model to predict the location of the items in the array. They are empirically shown to outperform non-learned methods (e.g., B-trees or binary search that answer queries in O(log n) time) by orders of magnitude. However, success of learned indexes has not been theoretically justified. Only existing attempt shows the same query time of O(log n), but with a constant factor improvement in space complexity over non-learned methods, under some assumptions on data distribution. In this paper, we significantly strengthen this result, showing that under mild assumptions on data distribution, and the same space complexity as non-learned methods, learned indexes can answer queries in O(log log n) expected query time. We also show that allowing for slightly larger but still near-linear space overhead, a learned index can achieve O(1) expected query time. Our results theoretically prove learned indexes are orders of magnitude faster than non-learned methods, theoretically grounding their empirical success.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Why Are Learned Indexes So Effective? cites ALEX: An Updatable Adaptive Learned Index
- Why Are Learned Indexes So Effective? cites The PGM-index: a fully-dynamic compressed learned index with provable worst-case bounds
- Benchmarking Learned Indexes cites ALEX: An Updatable Adaptive Learned Index
- Benchmarking Learned Indexes cites The PGM-index: a fully-dynamic compressed learned index with provable worst-case bounds
- Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability cites ALEX: An Updatable Adaptive Learned Index
- Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability cites Why Are Learned Indexes So Effective?
- Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability cites The PGM-index: a fully-dynamic compressed learned index with provable worst-case bounds
- Discovering Data Structures: Nearest Neighbor Search and Beyond cites ALEX: An Updatable Adaptive Learned Index
- LiBox: A Learned Index as an Array to Minimize Last-Mile Search cites ALEX: An Updatable Adaptive Learned Index
- LiBox: A Learned Index as an Array to Minimize Last-Mile Search cites Benchmarking Learned Indexes
- LiBox: A Learned Index as an Array to Minimize Last-Mile Search cites The PGM-index: a fully-dynamic compressed learned index with provable worst-case bounds
- Understanding Robustness Issues of Updatable Learned Indexes: [Experiments & Analysis] cites ALEX: An Updatable Adaptive Learned Index
- Understanding Robustness Issues of Updatable Learned Indexes: [Experiments & Analysis] cites Why Are Learned Indexes So Effective?
- Understanding Robustness Issues of Updatable Learned Indexes: [Experiments & Analysis] cites Benchmarking Learned Indexes
- Understanding Robustness Issues of Updatable Learned Indexes: [Experiments & Analysis] cites The PGM-index: a fully-dynamic compressed learned index with provable worst-case bounds
- Why Are Learned Indexes So Effective but Sometimes Ineffective? cites ALEX: An Updatable Adaptive Learned Index
- Why Are Learned Indexes So Effective but Sometimes Ineffective? cites Why Are Learned Indexes So Effective?
- Why Are Learned Indexes So Effective but Sometimes Ineffective? cites The PGM-index: a fully-dynamic compressed learned index with provable worst-case bounds
Cited by top-tier papers6
- Why Are Learned Indexes So Effective but Sometimes Ineffective?Qiyu Liu, Siyuan Han, Yanlin Qi, Jingshu Peng et al.VLDB 2025 · 12 citations
- Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution LearnabilitySepanta Zeighami, Cyrus ShahabiICML 2024 · 5 citations
- Understanding Robustness Issues of Updatable Learned Indexes: [Experiments & Analysis]Yuanhui Luo, Minhui Xie, Yiheng Tong, Shichao Jiang et al.SIGMOD 2026 · 1 citation
- Discovering Data Structures: Nearest Neighbor Search and BeyondOmar Salemohamed, Laurent Charlin, Shivam Garg, Vatsal Sharan et al.NeurIPS 2025
- LiBox: A Learned Index as an Array to Minimize Last-Mile SearchJian Zhou, Luna Wang, Shuaihua Zhao, Chen Zhong et al.VLDB 2026
Builds on4
- ALEX: An Updatable Adaptive Learned IndexJialin Ding, Umar Farooq Minhas, Jia Yu, Chi Wang et al.SIGMOD 2020 · 274 citations
- Benchmarking Learned IndexesRyan Marcus, Andreas Kipf, Alexander van Renen, Mihail Stoian et al.VLDB 2021 · 185 citations
- The PGM-index: a fully-dynamic compressed learned index with provable worst-case boundsPaolo Ferragina, Giorgio VinciguerraVLDB 2020 · 178 citations
- Why Are Learned Indexes So Effective?Paolo Ferragina, Fabrizio Lillo, Giorgio VinciguerraICML 2020 · 63 citations
Related papers
- Learned Index with Dynamic Daoyuan Chen, Wuchao Li, Yaliang Li, Bolin Ding et al.ICLR 2023
- Towards Establishing Guaranteed Error for Learned Database OperationsSepanta Zeighami, Cyrus ShahabiICLR 2024 · 4 citations
- Learned Index: A Comprehensive Experimental EvaluationZhaoyan Sun, Xuanhe Zhou, Guoliang LiVLDB 2023 · 87 citations
- DIndex: an Efficient on-Disk Learned Index for Memory-Constrained EnvironmentsJiahuan Shen, Chuzhe Tang, Haoning Lan, Ren Ren et al.ICDE 2026
- Effectively Learning Spatial IndicesJianzhong Qi, Guanli Liu, Christian S. Jensen, Lars KulikVLDB 2020 · 121 citations
