基于神经网络高斯过程的不确定基数估计
Uncertainty-aware Cardinality Estimation by Neural Network Gaussian Process
摘要:
深度学习(DL)在许多实际应用中取得了巨大成功。尽管它的成功,有一些主要的问题时,部署先进的DL模型在数据库系统中,如超参数调整,过拟合的风险,缺乏预测的不确定性。在本文中,我们研究了基数估计SQL查询的重点是不确定性,我们认为这是重要的数据库系统在处理大量的用户查询各种应用程序。在确保不确定性的情况下,查询优化器可以在学习到的估计器具有较大方差时探索其他选项,而不是信任所学习的估计器,并且还可以更新估计器以改善其在具有高不确定性的区域中的预测。我们探索的方法是不同的方向部署复杂的DL模型在数据库系统中建立基数估计。我们使用贝叶斯深度学习(BDL)作为贝叶斯推理和深度学习之间的桥梁。BDL的预测分布为预测提供了原则性的不确定性校准。此外,当BDL模型的网络宽度趋于无穷大时,该模型表现为高斯过程(GP)。这类特殊的BDL被称为神经网络高斯过程(NNGP),它继承了贝叶斯方法的优点,同时保持了神经网络的普适逼近性,并且可以利用更大的模型空间来建模无分布数据作为非参数模型。我们表明,我们的不确定性感知NNGP估计达到高精度,可以建立非常快,是强大的查询工作量的变化,在我们广泛的性能研究与现有的方法相比。
英文摘要:
Deep Learning (DL) has achieved great success in many real applications. Despite its success, there are some main problems when deploying advanced DL models in database systems, such as hyper-parameters tuning, the risk of overfitting, and lack of prediction uncertainty. In this paper, we study cardinality estimation for SQL queries with a focus on uncertainty, which we believe is important in database systems when dealing with a large number of user queries on various applications. With uncertainty ensured, instead of trusting an estimator learned as it is, a query optimizer can explore other options when the estimator learned has a large variance, and it also becomes possible to update the estimator to improve its prediction in areas with high uncertainty. The approach we explore is different from the direction of deploying sophisticated DL models in database systems to build cardinality estimators. We employ Bayesian deep learning (BDL), which serves as a bridge between Bayesian inference and deep learning.The prediction distribution by BDL provides principled uncertainty calibration for the prediction. In addition, when the network width of a BDL model goes to infinity, the model performs equivalent to Gaussian Process (GP). This special class of BDL, known as Neural Network Gaussian Process (NNGP), inherits the advantages of Bayesian approach while keeping universal approximation of neural network, and can utilize a much larger model space to model distribution-free data as a nonparametric model. We show that our uncertainty-aware NNGP estimator achieves high accuracy, can be built very fast, and is robust to query workload shift, in our extensive performance studies by comparing with the existing approaches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。