Lightweight and Accurate Cardinality Estimation by Neural Network Gaussian Process

被引:10
|
作者
Zhao, Kangfei [1 ]
Yu, Jeffrey Xu [1 ]
He, Zongyan [1 ]
Li, Rui [1 ]
Zhang, Hao [1 ]
机构
[1] Chinese Univ Hong Kong, Hong Kong, Peoples R China
来源
PROCEEDINGS OF THE 2022 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA (SIGMOD '22) | 2022年
关键词
Cardinality Estimation; Machine Learning; Gaussian Process; SELECTIVITY ESTIMATION; QUERIES;
D O I
10.1145/3514221.3526156
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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 a lightweight and accurate cardinality estimation for SQL queries, which is also uncertainty-aware. By lightweight, we mean that we can train a DL model in a few seconds. With uncertainty ensured, it 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 as cardinality estimators in database systems. 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 networks, and can utilize a much larger model space to model distribution-free data as a nonparametric model. We show our NNGP estimator achieves high accuracy, is built fast, and is robust to query workload shift, in our extensive performance studies by comparing with existing learned estimators. We also confirm the effectiveness of NNGP by integrating it into PostgreSQL.
引用
收藏
页码:973 / 987
页数:15
相关论文
共 50 条
  • [21] TabSim: A Siamese Neural Network for Accurate Estimation of Table Similarity
    Habibi, Maryam
    Starlinger, Johannes
    Leser, Ulf
    2020 IEEE INTERNATIONAL CONFERENCE ON BIG DATA (BIG DATA), 2020, : 930 - 937
  • [22] ASMNet: a Lightweight Deep Neural Network for Face Alignment and Pose Estimation
    Fard, Ali Pourramezan
    Abdollahi, Hojjat
    Mahoor, Mohammad
    2021 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION WORKSHOPS, CVPRW 2021, 2021, : 1521 - 1530
  • [23] Face age estimation based on cslbp and lightweight convolutional neural network
    Wang, Yang
    Tian, Ying
    Tian, Ou
    Computers, Materials and Continua, 2021, 69 (02): : 2203 - 2216
  • [24] A Unified Approach for Fast and Accurate Cardinality Estimation in RFID Systems
    Jiang, Wenchao
    Zhu, Yanmin
    2014 IEEE 11TH INTERNATIONAL CONFERENCE ON MOBILE AD HOC AND SENSOR SYSTEMS (MASS), 2014, : 407 - 415
  • [25] Face Age Estimation Based on CSLBP and Lightweight Convolutional Neural Network
    Wang, Yang
    Tian, Ying
    Tian, Ou
    CMC-COMPUTERS MATERIALS & CONTINUA, 2021, 69 (02): : 2203 - 2216
  • [26] Fast and Accurate Cardinality Estimation by Self-Morphing Bitmaps
    Wang, Haibo
    Ma, Chaoyi
    Chen, Shigang
    Wang, Yuanda
    IEEE-ACM TRANSACTIONS ON NETWORKING, 2022, 30 (04) : 1674 - 1688
  • [27] Extended target tracking using neural network and Gaussian process
    Wang, Hao
    Song, Liping
    ELECTRONICS LETTERS, 2025, 61 (01)
  • [28] Hierarchical Gaussian Process Priors for Bayesian Neural Network Weights
    Karaletsos, Theofanis
    Bui, Thang D.
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 33, NEURIPS 2020, 2020, 33
  • [29] Fauce: Fast and Accurate Deep Ensembles with Uncertainty for Cardinality Estimation
    Liu, Jie
    Dong, Wenqian
    Zhou, Qingqing
    Li, Dong
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2021, 14 (11): : 1950 - 1963
  • [30] Lightweight head pose estimation without keypoints based on multi-scale lightweight neural network
    Chen, Xiaolei
    Lu, Yubing
    Cao, Baoning
    Lin, Dongmei
    Ahmad, Ishfaq
    VISUAL COMPUTER, 2023, 39 (06): : 2455 - 2469