FACE: A Normalizing Flow based Cardinality Estimator

被引:24
|
作者
Wang, Jiayi [1 ]
Chai, Chengliang [1 ]
Liu, Jiabin [1 ]
Li, Guoliang [1 ]
机构
[1] Tsinghua Univ, Beijing, Peoples R China
来源
PROCEEDINGS OF THE VLDB ENDOWMENT | 2021年 / 15卷 / 01期
基金
中国博士后科学基金;
关键词
PREDICTION;
D O I
10.14778/3485450.3485458
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Cardinality estimation is one of the most important problems in query optimization. Recently, machine learning based techniques have been proposed to effectively estimate cardinality, which can be broadly classified into query-driven and data-driven approaches. Query-driven approaches learn a regression model from a query to its cardinality; while data-driven approaches learn a distribution of tuples, select some samples that satisfy a SQL query, and use the data distributions of these selected tuples to estimate the cardinality of the SQL query. As query-driven methods rely on training queries, the estimation quality is not reliable when there are no high-quality training queries; while data-driven methods have no such limitation and have high adaptivity. In this work, we focus on data-driven methods. A good datadriven model should achieve three optimization goals. First, the model needs to capture data dependencies between columns and support large domain sizes (achieving high accuracy). Second, the model should achieve high inference efficiency, because many data samples are needed to estimate the cardinality (achieving low inference latency). Third, the model should not be too large (achieving a small model size). However, existing data-driven methods cannot simultaneously optimize the three goals. To address the limitations, we propose a novel cardinality estimator FACE, which leverages the Normalizing Flow based model to learn a continuous joint distribution for relational data. FACE can transform a complex distribution over continuous random variables into a simple distribution (e.g., multivariate normal distribution), and use the probability density to estimate the cardinality. First, we design a dequantization method to make data more "continuous". Second, we propose encoding and indexing techniques to handle Like predicates for string data. Third, we propose a Monte Carlo method to efficiently estimate the cardinality. Experimental results show that our method significantly outperforms existing approaches in terms of estimation accuracy while keeping similar latency and model size.
引用
收藏
页码:72 / 84
页数:13
相关论文
共 50 条
  • [41] PARAMETER ESTIMATOR FOR THE MEAN FLOW VELOCITY BASED ON THE CORRELATION PRINCIPLE
    PETERS, R
    BLISCHKE, F
    MEYR, H
    TECHNISCHES MESSEN, 1986, 53 (01): : 17 - 24
  • [42] The Expressive Power of a Class of Normalizing Flow Models
    Kong, Zhifeng
    Chaudhuri, Kamalika
    INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND STATISTICS, VOL 108, 2020, 108 : 3599 - 3608
  • [43] SoftFlow: Probabilistic Framework for Normalizing Flow on Manifolds
    Kim, Hyeongju
    Lee, Hyeonseung
    Kang, Woo Hyun
    Lee, Joun Yeop
    Kim, Nam Soo
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 33, NEURIPS 2020, 2020, 33
  • [44] BFCE: A Constant-time cardinality estimator for large-scale RFID systems
    Li, Binbin
    He, Yuan
    Liu, Wenyuan
    COMPUTER COMMUNICATIONS, 2017, 110 : 120 - 132
  • [45] A normalizing isospectral flow on complex Hessenberg matrices
    Arsie, Alessandro
    Pokharel, Krishna
    JOURNAL OF MATHEMATICAL ANALYSIS AND APPLICATIONS, 2015, 432 (02) : 787 - 805
  • [46] Role mining based on permission cardinality constraint and user cardinality constraint
    Ma, Xiaopu
    Li, Ruixuan
    Wang, Hongwei
    Li, Huaqing
    SECURITY AND COMMUNICATION NETWORKS, 2015, 8 (13) : 2317 - 2328
  • [47] Cauchy estimator discriminant analysis for face recognition
    Yang, Xipeng
    Cheng, Jun
    Feng, Wei
    Liang, Hong
    Bai, Zhengyao
    Tao, Dapeng
    NEUROCOMPUTING, 2016, 199 : 144 - 153
  • [48] Normalizing flow neural networks by JKO scheme
    Xu, Chen
    Cheng, Xiuyuan
    Xie, Yao
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 36 (NEURIPS 2023), 2023,
  • [49] Deep Hashing-based Dynamic Stock Correlation Estimation via Normalizing Flow
    Zheng, Xiaolin
    Liu, Mengpu
    Zhu, Mengying
    PROCEEDINGS OF THE THIRTY-SECOND INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, IJCAI 2023, 2023, : 4993 - 5001
  • [50] A Normalizing Flow-Based Bidirectional Mapping Residual Network for Unsupervised Defect Detection
    Zhang, Lanyao
    Kan, Shichao
    Cen, Yigang
    Chen, Xiaoling
    Zhang, Linna
    Huang, Yansen
    CMC-COMPUTERS MATERIALS & CONTINUA, 2024, 78 (02): : 1631 - 1648