arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.04113cs.DBcs.LGmath.OC
收藏

UpLIF:一种可更新的自调优学习索引框架

UpLIF: An Updatable Self-Tuning Learned Index Framework

Huawei Cloud(华为云)

Alireza Heidari, Amirhossein Ahmadi, Wei Zhang

AI总结:

本文提出 UpLIF 自适应学习索引框架,通过模型调整、更新分布预测和强化学习优化结构,无需重训练即可支持更新操作,在实验中吞吐量最高提升 3.12 倍且内存减少 1000 倍。

摘要:

学习索引的出现使我们对索引的认知发生了范式转变,它将索引视为预测数据集中键位置的预测模型,从而在键搜索效率和索引大小缩减方面取得了显著改进;然而,学习索引建模中固有的一个重大挑战是其对更新操作的支持受限,这是由记录分布必须固定这一要求所导致的。先前的研究提出了各种方法来解决这一问题,但其缺点是多次模型重训练带来的高开销。在本文中,我们提出了 UpLIF,一种自适应自调优学习索引,它调整模型以适应传入的更新,预测更新分布以提升性能,并利用强化学习优化其索引结构。我们还引入了平衡模型调整的概念,该概念确定模型的固有属性(即偏差和方差),使得这些因素能够集成到现有索引模型中,而无需使用新数据进行重训练。我们的综合实验表明,该系统超越了最先进的索引解决方案(包括传统方案和基于机器学习的方案),吞吐量提升最高达 3.12 倍,同时内存使用量减少 1000 倍。

英文摘要:

The emergence of learned indexes has caused a paradigm shift in our perception of indexing by considering indexes as predictive models that estimate keys' positions within a data set, resulting in notable improvements in key search efficiency and index size reduction; however, a significant challenge inherent in learned index modeling is its constrained support for update operations, necessitated by the requirement for a fixed distribution of records. Previous studies have proposed various approaches to address this issue with the drawback of high overhead due to multiple model retraining. In this paper, we present UpLIF, an adaptive self-tuning learned index that adjusts the model to accommodate incoming updates, predicts the distribution of updates for performance improvement, and optimizes its index structure using reinforcement learning. We also introduce the concept of balanced model adjustment, which determines the model's inherent properties (i.e. bias and variance), enabling the integration of these factors into the existing index model without the need for retraining with new data. Our comprehensive experiments show that the system surpasses state-of-the-art indexing solutions (both traditional and ML-based), achieving an increase in throughput of up to 3.12 times with 1000 times less memory usage.

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

↑