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
关键词
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 条
  • [1] FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation
    Zhu, Rong
    Wu, Ziniu
    Han, Yuxing
    Zeng, Kai
    Pfadler, Andreas
    Qian, Zhengping
    Zhou, Jingren
    Cui, Bin
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2021, 14 (09): : 1489 - 1502
  • [2] Network Host Cardinality Estimation Based on Artificial Neural Network
    Jie, Xu
    Lan Haoliang
    Wei, Ding
    Ao, Ju
    SECURITY AND COMMUNICATION NETWORKS, 2022, 2022
  • [3] Accurate Head Pose Estimation Using Image Rectification and a Lightweight Convolutional Neural Network
    Li, Xiao
    Zhang, Dong
    Li, Ming
    Lee, Dah-Jye
    IEEE TRANSACTIONS ON MULTIMEDIA, 2023, 25 : 2239 - 2251
  • [4] FCDSN-DC: An Accurate and Lightweight Convolutional Neural Network for Stereo Estimation with Depth Completion
    Hirner, Dominik
    Fraundorfer, Friedrich
    2022 26TH INTERNATIONAL CONFERENCE ON PATTERN RECOGNITION (ICPR), 2022, : 3937 - 3943
  • [5] Accurate Summary-based Cardinality Estimation Through the Lens of Cardinality Estimation Graphs
    Chen, Jeremy
    Huang, Yuqing
    Wang, Mushi
    Salihoglu, Semih
    Salem, Kenneth
    SIGMOD RECORD, 2023, 52 (01) : 94 - 102
  • [6] Accurate Summary-based Cardinality Estimation Through the Lens of Cardinality Estimation Graphs
    Chen, Jeremy
    Huang, Yuqing
    Wang, Mushi
    Salihoglu, Semih
    Salem, Ken
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2022, 15 (08): : 1533 - 1545
  • [7] Deep Neural Network Compression for Lightweight and Accurate Fish Classification
    Salie, Daanyaal
    Brown, Dane
    Chieza, Kenneth
    ARTIFICIAL INTELLIGENCE RESEARCH, SACAIR 2024, 2025, 2326 : 300 - 318
  • [8] On the Use of Lateralization for Lightweight and Accurate Methodology for EEG Real Time Emotion Estimation Using Gaussian-Process Classifier
    Val-Calvo, Mikel
    Ramon Alvarez-Sanchez, Jose
    Diaz-Morcillo, Alejandro
    Ferrandez Vicente, Jose Manuel
    Fernandez-Jover, Eduardo
    UNDERSTANDING THE BRAIN FUNCTION AND EMOTIONS, PT I, 2019, 11486 : 191 - 201
  • [9] More accurate cardinality estimation in data streams
    Lu, Jie
    Chen, Hongchang
    Zhang, Zheng
    Xie, Jichao
    ELECTRONICS LETTERS, 2022, 58 (25) : 982 - 984
  • [10] Lightweight Neighborhood Cardinality Estimation in Dynamic Wireless Networks
    Cattani, Marco
    Zuniga, Marco
    Loukas, Andreas
    Langendoen, Koen
    PROCEEDINGS OF THE 13TH INTERNATIONAL SYMPOSIUM ON INFORMATION PROCESSING IN SENSOR NETWORKS (IPSN' 14), 2014, : 179 - 189