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 条
  • [31] Population Monte Carlo With Normalizing Flow
    Pal, Soumyasundar
    Valkanas, Antonios
    Coates, Mark
    IEEE SIGNAL PROCESSING LETTERS, 2024, 31 : 16 - 20
  • [32] CELA: An Accurate Learned Cardinality Estimator with Strong Generalization Ability and Dimensional Adaptability
    Zhou, Weiqing
    Zhan, Siyu
    Guo, Lei
    Dai, Bo
    WEB INFORMATION SYSTEMS ENGINEERING - WISE 2021, PT I, 2021, 13080 : 111 - 118
  • [33] Multiple face tracking using Kalman estimator based color SSD algorithm
    Baek, K
    Kim, B
    Park, S
    Han, Y
    Hahn, H
    AI 2005: ADVANCES IN ARTIFICIAL INTELLIGENCE, 2005, 3809 : 1229 - 1232
  • [34] FlowVocoder: A small Footprint Neural Vocoder based Normalizing Flow for Speech Synthesis
    Manh Luang
    Viet Anh Tran
    INTERSPEECH 2022, 2022, : 1576 - 1580
  • [35] Unsupervised Anomaly Detection and Localization Based on Two-Hierarchy Normalizing Flow
    Jiang, Jielin
    Wei, Shun
    Xu, Xiaolong
    Cui, Yan
    Liu, Xiying
    IEEE Transactions on Instrumentation and Measurement, 2024, 73
  • [36] A Normalizing Flow-Based Co-Embedding Model for Attributed Networks
    Liang, Shangsong
    Ouyang, Zhuo
    Meng, Zaiqiao
    ACM TRANSACTIONS ON KNOWLEDGE DISCOVERY FROM DATA, 2022, 16 (03)
  • [37] Normalizing Flow based Feature Synthesis for Outlier-Aware Object Detection
    Kumar, Nishant
    Segvic, Sinisa
    Eslami, Abouzar
    Gumhold, Stefan
    2023 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, CVPR, 2023, : 5156 - 5165
  • [38] Training Energy-Based Normalizing Flow with Score-Matching Objectives
    Chao, Chen-Hao
    Sun, Wei-Fang
    Hsu, Yen-Chang
    Kira, Zsolt
    Lee, Chun-Yi
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 36 (NEURIPS 2023), 2023,
  • [39] Training Energy-Based Normalizing Flow with Score-Matching Objectives
    Chao, Chen-Hao
    Sun, Wei-Fang
    Hsu, Yen-Chang
    Kira, Zsolt
    Lee, Chun-Yi
    Advances in Neural Information Processing Systems, 2023, 36 : 43826 - 43851
  • [40] Research on Visual Anomaly Detection Based on Multi-scale Normalizing Flow
    Mao G.-J.
    Wu X.-Z.
    Xing S.-L.
    Zidonghua Xuebao/Acta Automatica Sinica, 2024, 50 (03): : 640 - 648