Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

A Practical Theory of Generalization in Selectivity Learning

About

Query-driven machine learning models have emerged as a promising estimation technique for query selectivities. Yet, surprisingly little is known about the efficacy of these techniques from a theoretical perspective, as there exist substantial gaps between practical solutions and state-of-the-art (SOTA) theory based on the Probably Approximately Correct (PAC) learning framework. In this paper, we aim to bridge the gaps between theory and practice. First, we demonstrate that selectivity predictors induced by signed measures are learnable, which relaxes the reliance on probability measures in SOTA theory. More importantly, beyond the PAC learning framework (which only allows us to characterize how the model behaves when both training and test workloads are drawn from the same distribution), we establish, under mild assumptions, that selectivity predictors from this class exhibit favorable out-of-distribution (OOD) generalization error bounds. These theoretical advances provide us with a better understanding of both the in-distribution and OOD generalization capabilities of query-driven selectivity learning, and facilitate the design of two general strategies to improve OOD generalization for existing query-driven selectivity models. We empirically verify that our techniques help query-driven selectivity models generalize significantly better to OOD queries both in terms of prediction accuracy and query latency performance, while maintaining their superior in-distribution generalization performance.

Peizhi Wu, Haoshu Xu, Ryan Marcus, Zachary G. Ives• 2024

Related benchmarks

TaskDatasetResultRank
Cardinality EstimationCEB 1a-varied In-Distribution Query Center Move
RMSE0.01
6
Cardinality EstimationCEB-1a-varied Out-of-Distribution Query Center Move
RMSE0.019
6
Cardinality EstimationCEB-1a-varied In-Distribution Query Granularity Shift
RMSE0.012
6
Cardinality EstimationCEB 1a-varied Out-of-Distribution Query Granularity Shift
RMSE0.012
6
Cardinality EstimationIMDb small Out-of-Distribution Query Center Move
RMSE0.035
4
Cardinality EstimationIMDb small Out-of-Distribution Query Granularity Shift
RMSE0.047
4
Cardinality EstimationIMDb small In-Distribution Query Center Move
RMSE0.022
4
Cardinality EstimationIMDb small In-Distribution Query Granularity Shift
RMSE0.024
4
Cardinality EstimationDSB Out-of-Distribution Query Center Move
RMSE0.158
4
Cardinality EstimationDSB In-Distribution, Query Center Move
RMSE0.061
4
Showing 10 of 12 rows

Other info

Follow for update