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

基于深度学习的多属性选择性估计

Multi-Attribute Selectivity Estimation Using Deep Learning

University of Texas at Arlington(德克萨斯大学阿灵顿分校);QCRI, HBKU(哈马德·本·哈利法大学卡塔尔计算研究所);University of Toronto(多伦多大学)

Shohedul Hasan, Saravanan Thirumuruganathan, Jees Augustine, Nick Koudas, Gautam Das

摘要:

选择性估计-估计查询结果大小的问题-是数据库中的一个基本问题。涉及多个相关属性的查询选择性的准确估计尤其具有挑战性。基数估计值不佳可能导致查询优化器选择错误的计划。我们研究了使用基于深度学习的方法进行点和范围查询的可行性,并提出了两种互补的方法。我们的第一种方法将选择性视为无监督的深度密度估计问题。为此,我们成功地引入了神经密度估计技术。其关键思想是将联合分布分解为一组易于处理的条件概率分布,使它们满足自回归特性。我们的第二种方法将选择性估计公式化为一个有监督的深度学习问题,该问题预测给定查询的选择性。我们还介绍并解决了在将深度学习应用于关系数据时出现的一些实际挑战。这些包括查询/数据特征化,将查询工作负载信息纳入深度学习框架,以及可以更新数据和工作负载查询的动态场景。我们的广泛的实验,特别强调查询大量的谓词和/或小的结果大小表明,我们提出的技术提供了快速和准确的选择性估计与最小的空间开销。

英文摘要:

Selectivity estimation - the problem of estimating the result size of queries - is a fundamental problem in databases. Accurate estimation of query selectivity involving multiple correlated attributes is especially challenging. Poor cardinality estimates could result in the selection of bad plans by the query optimizer. We investigate the feasibility of using deep learning based approaches for both point and range queries and propose two complementary approaches. Our first approach considers selectivity as an unsupervised deep density estimation problem. We successfully introduce techniques from neural density estimation for this purpose. The key idea is to decompose the joint distribution into a set of tractable conditional probability distributions such that they satisfy the autoregressive property. Our second approach formulates selectivity estimation as a supervised deep learning problem that predicts the selectivity of a given query. We also introduce and address a number of practical challenges arising when adapting deep learning for relational data. These include query/data featurization, incorporating query workload information in a deep learning framework and the dynamic scenario where both data and workload queries could be updated. Our extensive experiments with a special emphasis on queries with a large number of predicates and/or small result sizes demonstrates that our proposed techniques provide fast and accurate selective estimates with minimal space overhead.

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

↑