English

Querying in Constant Expected Time with Learned Indexes

Databases 2024-10-23 v4 Data Structures and Algorithms

Abstract

Learned indexes leverage machine learning models to accelerate query answering in databases, showing impressive practical performance. However, theoretical understanding of these methods remains incomplete. Existing research suggests that learned indexes have superior asymptotic complexity compared to their non-learned counterparts, but these findings have been established under restrictive probabilistic assumptions. Specifically, for a sorted array with nn elements, it has been shown that learned indexes can find a key in O(log(logn))O(\log(\log n)) expected time using at most linear space, compared with O(logn)O(\log n) for non-learned methods. In this work, we prove O(1)O(1) expected time can be achieved with at most linear space, thereby establishing the tightest upper bound so far for the time complexity of an asymptotically optimal learned index. Notably, we use weaker probabilistic assumptions than prior research, meaning our work generalizes previous results. Furthermore, we introduce a new measure of statistical complexity for data. This metric exhibits an information-theoretical interpretation and can be estimated in practice. This characterization provides further theoretical understanding of learned indexes, by helping to explain why some datasets seem to be particularly challenging for these methods.

Keywords

Cite

@article{arxiv.2405.03851,
  title  = {Querying in Constant Expected Time with Learned Indexes},
  author = {Luis Croquevielle and Guang Yang and Liang Liang and Ali Hadian and Thomas Heinis},
  journal= {arXiv preprint arXiv:2405.03851},
  year   = {2024}
}
R2 v1 2026-06-28T16:18:43.110Z