arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.11807cs.DBcs.LG
收藏

NFL:基于分布变换的鲁棒学习指数

NFL: Robust Learned Index via Distribution Transformation

City University of Hong Kong(香港城市大学)

Shangyu Wu, Yufei Cui, Jinghuan Yu, Xuan Sun, Tei-Wei Kuo, Chun Jason Xue

摘要:

近年来的研究成果为索引领域开辟了一个新的方向。学习索引的关键见解是用分段线性函数近似键和位置之间的映射。这样的方法需要划分键空间以获得更好的近似。虽然许多算法被提出来提高近似质量,但瓶颈是分割开销可能会阻碍整体性能。本文通过在构造学习索引之前对键应用\textit{distribution transformation}来解决近似问题。提出了一种基于规范化流的两阶段学习索引框架(NFL),该框架首先将原始的复杂密钥分布转换为近似均匀的分布,然后利用转换后的密钥构建学习索引。为了有效的分布变换,我们提出了一个数值归一化流(数值NF)。基于变换后密钥的特点,我们提出了一个鲁棒的后流学习索引(AFLI)。为了验证性能,对合成和真实世界的工作负载进行了全面的评估,结果表明,与最先进的学习指标相比,所提出的NFL产生了最高的吞吐量和最低的尾部延迟。

英文摘要:

Recent works on learned index open a new direction for the indexing field. The key insight of the learned index is to approximate the mapping between keys and positions with piece-wise linear functions. Such methods require partitioning key space for a better approximation. Although lots of heuristics are proposed to improve the approximation quality, the bottleneck is that the segmentation overheads could hinder the overall performance. This paper tackles the approximation problem by applying a \textit{distribution transformation} to the keys before constructing the learned index. A two-stage Normalizing-Flow-based Learned index framework (NFL) is proposed, which first transforms the original complex key distribution into a near-uniform distribution, then builds a learned index leveraging the transformed keys. For effective distribution transformation, we propose a Numerical Normalizing Flow (Numerical NF). Based on the characteristics of the transformed keys, we propose a robust After-Flow Learned Index (AFLI). To validate the performance, comprehensive evaluations are conducted on both synthetic and real-world workloads, which shows that the proposed NFL produces the highest throughput and the lowest tail latency compared to the state-of-the-art learned indexes.

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

↑