arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2305.17674cs.DBcs.DS
收藏

一石二鸟:一种支持基数估计的轻量级多维学习索引

One stone, two birds: A lightweight multidimensional learned index with cardinality support

Yingze Li, Hongzhi Wang, Xianglong Liu

AI总结:

本文提出CardIndex结构,以KB级参数同时实现快速多维学习索引和轻量级基数估计,并结合混合估计算法在低选择性查询中实现微秒级精确估计。

摘要:

近年来,基于学习的创新结构被提出用于解决索引和基数估计任务,具体包括学习索引和数据驱动的基数估计器。这些结构在捕捉数据分布方面表现出色,因而有望集成到人工智能驱动的数据库内核中。然而,对边界情况查询进行准确估计需要大量网络参数,导致在昂贵的GPU上消耗更多计算资源并增加存储开销。此外,基数估计器和学习索引的分离实现造成冗余浪费,因为单表分布被存储了两次。这些都为设计人工智能驱动的数据库内核带来了挑战。在真实数据库场景中,紧凑的内核对于在有限的存储和时间预算内处理查询是必要的。直接集成这两种人工智能方法会由于大量网络参数和数据分布参数的重复存储而导致内核沉重且复杂。我们提出的CardIndex结构有效地实现了一石二鸟。它是一种快速的多维学习索引,同时也是一个轻量级的基数估计器,其参数量控制在KB级别。由于其特殊结构和较小的参数规模,它能够以1到10微秒的极低延迟同时获取元组的CDF和PDF信息。对于低选择性估计任务,我们没有通过增加模型参数来获得细粒度点密度,而是充分利用我们结构的特性,提出了一种混合估计算法,以提供快速且精确的结果。

英文摘要:

Innovative learning based structures have recently been proposed to tackle index and cardinality estimation tasks, specifically learned indexes and data driven cardinality estimators. These structures exhibit excellent performance in capturing data distribution, making them promising for integration into AI driven database kernels. However, accurate estimation for corner case queries requires a large number of network parameters, resulting in higher computing resources on expensive GPUs and more storage overhead. Additionally, the separate implementation for CE and learned index result in a redundancy waste by storage of single table distribution twice. These present challenges for designing AI driven database kernels. As in real database scenarios, a compact kernel is necessary to process queries within a limited storage and time budget. Directly integrating these two AI approaches would result in a heavy and complex kernel due to a large number of network parameters and repeated storage of data distribution parameters. Our proposed CardIndex structure effectively killed two birds with one stone. It is a fast multidim learned index that also serves as a lightweight cardinality estimator with parameters scaled at the KB level. Due to its special structure and small parameter size, it can obtain both CDF and PDF information for tuples with an incredibly low latency of 1 to 10 microseconds. For tasks with low selectivity estimation, we did not increase the model's parameters to obtain fine grained point density. Instead, we fully utilized our structure's characteristics and proposed a hybrid estimation algorithm in providing fast and exact results.

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

↑