Querying in Constant Expected Time with Learned Indexes

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Croquevielle, Luis, Yang, Guang, Liang, Liang, Hadian, Ali, Heinis, Thomas
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866929553075601408
author Croquevielle, Luis
Yang, Guang
Liang, Liang
Hadian, Ali
Heinis, Thomas
author_facet Croquevielle, Luis
Yang, Guang
Liang, Liang
Hadian, Ali
Heinis, Thomas
contents 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 $n$ elements, it has been shown that learned indexes can find a key in $O(\log(\log n))$ expected time using at most linear space, compared with $O(\log n)$ for non-learned methods. In this work, we prove $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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_03851
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Querying in Constant Expected Time with Learned Indexes
Croquevielle, Luis
Yang, Guang
Liang, Liang
Hadian, Ali
Heinis, Thomas
Databases
Data Structures and Algorithms
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 $n$ elements, it has been shown that learned indexes can find a key in $O(\log(\log n))$ expected time using at most linear space, compared with $O(\log n)$ for non-learned methods. In this work, we prove $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.
title Querying in Constant Expected Time with Learned Indexes
topic Databases
Data Structures and Algorithms
url https://arxiv.org/abs/2405.03851