Lune

ICDE2024Top-tier venue

Duet: Efficient and Scalable Hybrid Neural Relation Understanding

Kaixin Zhang, Hongzhi Wang, Yabin Lu, Ziqi Li, Chang Shu, Yu Yan, Donghua Yang

Abstract

Learned cardinality estimation methods have achieved high precision compared to traditional methods. Among learned methods, query-driven approaches have faced the work-load drift problem for a long time. Although both data-driven and hybrid methods are proposed to avoid this problem, most of them suffer from high training and estimation costs, limited scalability, instability, and long-tail distribution problems on high-dimensional tables, which seriously affects the practical application of learned cardinality estimators. In this paper, we prove that most of these problems are directly caused by the widely used progressive sampling. We solve this problem by introducing predicate information into the autoregressive model and propose Duet, a stable, efficient, and scalable hybrid method to estimate cardinality directly without sampling or any non-differentiable process, which can not only reduce the inference complexity fromO(n)O(n)toO(1)O(1)compared to Naru and UAE but also achieve higher accuracy on high cardinality and high-dimensional tables. Experimental results show that Duet can achieve all the design goals above and be much more practical. Besides, Duet even has a lower inference cost on CPU than that of most learned methods on GPU.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Are We Ready For Learned Cardinality Estimation? cites Deep Unsupervised Cardinality Estimation
  • Are We Ready For Learned Cardinality Estimation? cites An End-to-End Learning-based Cost Estimator
  • DeepDB: Learn from Data, not from Queries! cites An End-to-End Learning-based Cost Estimator
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation cites Are We Ready For Learned Cardinality Estimation?
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation cites DeepDB: Learn from Data, not from Queries!
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation cites An End-to-End Learning-based Cost Estimator
  • A Practical Theory of Generalization in Selectivity Learning cites DeepDB: Learn from Data, not from Queries!
  • A Practical Theory of Generalization in Selectivity Learning cites An End-to-End Learning-based Cost Estimator
  • Data-Agnostic Cardinality Learning from Imperfect Workloads cites DeepDB: Learn from Data, not from Queries!
  • Data-Agnostic Cardinality Learning from Imperfect Workloads cites Deep Unsupervised Cardinality Estimation
  • Data-Agnostic Cardinality Learning from Imperfect Workloads cites Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
  • Data-Agnostic Cardinality Learning from Imperfect Workloads cites A Practical Theory of Generalization in Selectivity Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. A Practical Theory of Generalization in Selectivity LearningPeizhi Wu, Haoshu Xu, Ryan Marcus, Zack IvesVLDB 2025 · 2 citations
  2. Data-Agnostic Cardinality Learning from Imperfect WorkloadsPeizhi Wu, Rong Kang, Tieying Zhang, Jianjun Chen et al.VLDB 2025 · 1 citation

Builds on14

  1. An End-to-End Learning-based Cost EstimatorJi Sun, Guoliang LiVLDB 2020 · 251 citations
  2. Deep Unsupervised Cardinality EstimationZongheng Yang, Eric Liang, Amog Kamsetty, Chenggang Wu et al.VLDB 2020 · 206 citations
  3. Cardinality Estimation in DBMS: A Comprehensive Benchmark EvaluationYuxing Han, Ziniu Wu, Peizhi Wu, Rong Zhu et al.VLDB 2022 · 169 citations
  4. Are We Ready For Learned Cardinality Estimation?Xiaoying Wang, Changbo Qu, Weiyuan Wu, Jiannan Wang et al.VLDB 2021 · 156 citations
  5. DeepDB: Learn from Data, not from Queries!Benjamin Hilprecht, Andreas Schmidt, Moritz Kulessa, Alejandro Molina et al.VLDB 2020 · 154 citations

Related papers

  1. A Unified Deep Model of Learning from both Data and Queries for Cardinality EstimationPeizhi Wu, Gao CongSIGMOD 2021 · 73 citations
  2. FACE: A Normalizing Flow based Cardinality EstimatorJiayi Wang, Chengliang Chai, Jiabin Liu, Guoliang LiVLDB 2022
  3. CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation Using Joint CDFLankadinee Rathuwadu, Guanli Liu, Christopher Leckie, Renata Borovica-GajicICDE 2026
  4. Warper: Efficiently Adapting Learned Cardinality Estimators to Data and Workload DriftsBeibin Li, Yao Lu, Srikanth KandulaSIGMOD 2022 · 29 citations
  5. Small Selectivities Matter: Lifting the Burden of Empty SamplesAxel Hertzschuch, Guido Moerkotte, Wolfgang Lehner, Norman May et al.SIGMOD 2021 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines