通过编排学习和几何来取代传统索引
Superseding traditional indexes by orchestrating learning and geometry
摘要:
我们设计的第一个学习索引,解决了字典问题的时间和空间复杂度证明优于经典的数据结构的分层存储器,如B树,和现代的学习索引。我们称我们的解决方案为分段几何模型索引(PGM索引),因为它通过线性模型(即段)将键序列的索引转换为2D点序列的覆盖,这些线性模型适当地学习了查询时间与空间效率的交易。这个想法来自于一些已知的启发式结果,我们加强表明,这种段的最小数量可以通过已知的和最佳的流算法计算。然后,通过递归地应用这种几何思想来获得我们的索引,该几何思想保证了对输入数据的“几何复杂性”的平滑适应。最后,我们提出了一个变体的索引,不仅适应字典键的分布,而且适应它们的访问频率,从而获得第一个分布感知的学习索引。本文的第二个主要贡献是多准则数据结构概念的提出和研究,即要求数据结构以自动的方式适应应用程序的使用所施加的约束。我们表明,我们的索引是一个多准则的数据结构,因为它的存储和查询时间的显着灵活性,可以利用一个适当设计的优化算法,有效地找到其最佳的设计设置,以匹配的输入约束。一个彻底的实验分析表明,我们的索引和它的多标准的变种提高均匀,在时间和空间上,经典和学习指数几个数量级。
英文摘要:
We design the first learned index that solves the dictionary problem with time and space complexity provably better than classic data structures for hierarchical memories, such as B-trees, and modern learned indexes. We call our solution the Piecewise Geometric Model index (PGM-index) because it turns the indexing of a sequence of keys into the coverage of a sequence of 2D-points via linear models (i.e. segments) suitably learned to trade query time vs space efficiency. This idea comes from some known heuristic results which we strengthen by showing that the minimal number of such segments can be computed via known and optimal streaming algorithms. Our index is then obtained by recursively applying this geometric idea that guarantees a smoothed adaptation to the "geometric complexity" of the input data. Finally, we propose a variant of the index that adapts not only to the distribution of the dictionary keys but also to their access frequencies, thus obtaining the first distribution-aware learned index. The second main contribution of this paper is the proposal and study of the concept of Multicriteria Data Structure, namely one that asks a data structure to adapt in an automatic way to the constraints imposed by the application of use. We show that our index is a multicriteria data structure because its significant flexibility in storage and query time can be exploited by a properly designed optimisation algorithm that efficiently finds its best design setting in order to match the input constraints. A thorough experimental analysis shows that our index and its multicriteria variant improve uniformly, over both time and space, classic and learned indexes up to several orders of magnitude.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。