arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1712.01208cs.DBcs.DScs.NE
收藏

学习索引结构的案例

The Case for Learned Index Structures

Tim Kraska, Alex Beutel, Ed H. Chi, Jeffrey Dean, Neoklis Polyzotis

摘要:

索引是模型:B树索引可以被看作是将关键字映射到已排序数组内的记录的位置的模型,散列索引可以被看作是将关键字映射到未排序数组内的记录的位置的模型,位图索引可以被看作是指示数据记录是否存在的模型。在这篇探索性的研究论文中,我们从这个前提开始,并认为所有现有的索引结构都可以被其他类型的模型取代,包括深度学习模型,我们称之为学习索引。关键思想是模型可以学习查找键的排序顺序或结构,并使用此信号有效地预测记录的位置或存在。我们从理论上分析了在哪些条件下学习索引优于传统的索引结构,并描述了在设计学习索引结构的主要挑战。我们的初步结果表明,通过使用神经网络,我们能够在速度上超过缓存优化的B树高达70%,同时在几个真实世界的数据集上节省了一个数量级的内存。但更重要的是,我们相信通过学习模型替换数据管理系统的核心组件的想法对未来的系统设计具有深远的影响,这项工作只是提供了可能的一瞥。

英文摘要:

Indexes are models: a B-Tree-Index can be seen as a model to map a key to the position of a record within a sorted array, a Hash-Index as a model to map a key to a position of a record within an unsorted array, and a BitMap-Index as a model to indicate if a data record exists or not. In this exploratory research paper, we start from this premise and posit that all existing index structures can be replaced with other types of models, including deep-learning models, which we term learned indexes. The key idea is that a model can learn the sort order or structure of lookup keys and use this signal to effectively predict the position or existence of records. We theoretically analyze under which conditions learned indexes outperform traditional index structures and describe the main challenges in designing learned index structures. Our initial results show, that by using neural nets we are able to outperform cache-optimized B-Trees by up to 70% in speed while saving an order-of-magnitude in memory over several real-world data sets. More importantly though, we believe that the idea of replacing core components of a data management system through learned models has far reaching implications for future systems designs and that this work just provides a glimpse of what might be possible.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑