FACE

Author:

Wang Jiayi1,Chai Chengliang1,Liu Jiabin1,Li Guoliang1

Affiliation:

1. Tsinghua University, China

Abstract

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 data-driven 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.

Publisher

Association for Computing Machinery (ACM)

Subject

General Earth and Planetary Sciences,Water Science and Technology,Geography, Planning and Development

Reference50 articles.

1. Monotonicity Preserving Approximation of Multivariate Scattered Data

2. Laurent Dinh , David Krueger , and Yoshua Bengio . 2015 . NICE: Non-linear Independent Components Estimation. In ICLR , Yoshua Bengio and Yann LeCun (Eds.). http://arxiv.org/abs/1410.8516 Laurent Dinh, David Krueger, and Yoshua Bengio. 2015. NICE: Non-linear Independent Components Estimation. In ICLR, Yoshua Bengio and Yann LeCun (Eds.). http://arxiv.org/abs/1410.8516

3. Selectivity estimation for range predicates using lightweight models

4. Monotone Piecewise Cubic Interpolation

5. Mathieu Germain , Karol Gregor , Iain Murray , and Hugo Larochelle . 2015 . MADE: Masked Autoencoder for Distribution Estimation. In ICML (JMLR Workshop and Conference Proceedings), Francis R. Bach and David M. Blei (Eds.) , Vol. 37 . JMLR.org, 881--889. http://proceedings.mlr.press/v37/germain15.html Mathieu Germain, Karol Gregor, Iain Murray, and Hugo Larochelle. 2015. MADE: Masked Autoencoder for Distribution Estimation. In ICML (JMLR Workshop and Conference Proceedings), Francis R. Bach and David M. Blei (Eds.), Vol. 37. JMLR.org, 881--889. http://proceedings.mlr.press/v37/germain15.html

Cited by 44 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Auto-proctoring using computer vision in MOOCs system;Multimedia Tools and Applications;2024-09-09

2. Half-Xor: A Fully-Dynamic Sketch for Estimating the Number of Distinct Values in Big Tables;IEEE Transactions on Knowledge and Data Engineering;2024-07

3. A Spark Optimizer for Adaptive, Fine-Grained Parameter Tuning;Proceedings of the VLDB Endowment;2024-07

4. ReJOOSp: Reinforcement Learning for Join Order Optimization in SPARQL;Big Data and Cognitive Computing;2024-06-27

5. Learned Query Optimizer: What is New and What is Next;Companion of the 2024 International Conference on Management of Data;2024-06-09

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3