English

Optimize Cardinality Estimation Model Pretraining by Simplifying the Training Datasets

Databases 2025-05-29 v2 Machine Learning

Abstract

The cardinality estimation is a key aspect of query optimization research, and its performance has significantly improved with the integration of machine learning. To overcome the "cold start" problem or the lack of model transferability in learned cardinality estimators, some pre-training cardinality estimation models have been proposed that use learning across multiple datasets and corresponding workloads. These models typically train on a dataset created by uniformly sampling from many datasets, but this approach may not be optimal. By applying the Group Distributionally Robust Optimization (Group DRO) algorithm to training datasets, we find that some specific training datasets contribute more significantly to model performance than others. Based on this observation, we conduct extensive experiments to delve deeper into pre-training cardinality estimators. Our results show how the performance of these models can be influenced by the datasets and corresponding workloads. Finally, we introduce a simplified training dataset, which has been reduced to a fraction of the size of existing pretraining datasets. Sufficient experimental results demonstrate that the pre-trained cardinality estimator based on this simplified dataset can still achieve comparable performance to existing models in zero-shot setups.

Keywords

Cite

@article{arxiv.2502.14350,
  title  = {Optimize Cardinality Estimation Model Pretraining by Simplifying the Training Datasets},
  author = {Boyang Fang},
  journal= {arXiv preprint arXiv:2502.14350},
  year   = {2025}
}

Comments

Preliminary analysis uncovered data quality concerns in our experimental dataset

R2 v1 2026-06-28T21:51:01.724Z