Pith. sign in

Adding Domain Knowledge to Query-Driven Learned Databases

1 Pith paper cite this work. Polarity classification is still indexing.

1 Pith paper citing it
abstract

In recent years, \emph{learned cardinality estimation} has emerged as an alternative to traditional query optimization methods: by training machine learning models over observed query performance, learned cardinality estimation techniques can accurately predict query cardinalities and costs -- accounting for skew, correlated predicates, and many other factors that traditional methods struggle to capture. However, query-driven learned cardinality estimators are dependent on sample workloads, requiring vast amounts of labeled queries. Further, we show that state-of-the-art query-driven techniques can make significant and unpredictable errors on queries that are outside the distribution of their training set. We show that these out-of-distribution errors can be mitigated by incorporating the \emph{domain knowledge} used in traditional query optimizers: \emph{constraints} on values and cardinalities (e.g., based on key-foreign-key relationships, range predicates, and more generally on inclusion and functional dependencies). We develop methods for \emph{semi-supervised} query-driven learned query optimization, based on constraints, and we experimentally demonstrate that such techniques can increase a learned query optimizer's accuracy in cardinality estimation, reduce the reliance on massive labeled queries, and improve the robustness of query end-to-end performance.

fields

cs.DB 1

years

2025 1

verdicts

CONDITIONAL 1

representative citing papers

Conformal Prediction for Verifiable Learned Query Optimization

cs.DB · 2025-05-04 · conditional · novelty 5.0

Conformal prediction can turn a learned query optimizer's cost estimates into latency bounds with a user-chosen confidence level, enabling pre-execution verification and a search heuristic that improves planning time.

citing papers explorer

Showing 1 of 1 citing paper.

  • Conformal Prediction for Verifiable Learned Query Optimization cs.DB · 2025-05-04 · conditional · none · ref 59 · internal anchor

    Conformal prediction can turn a learned query optimizer's cost estimates into latency bounds with a user-chosen confidence level, enabling pre-execution verification and a search heuristic that improves planning time.