arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2201.00561cs.DBcs.AI
收藏

用于开箱即用学习成本预测的Zero-Shot成本模型

Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction

TU Darmstadt(达姆施塔特工业大学)

Benjamin Hilprecht, Carsten Binnig

摘要:

在本文中,我们介绍了zero-shot成本模型,使学习成本估计,推广到看不见的数据库。与需要在每个新数据库上执行大量训练查询的现有技术的工作负载驱动方法相比,zero-shot成本模型因此允许在不需要昂贵的训练数据收集的情况下实例化现成的学习成本模型。为了实现这种zero-shot成本模型,我们提出了一种基于预训练成本模型的新学习范式。作为支持将这种预先训练的成本模型转移到看不见的数据库的核心贡献,我们引入了一种新的模型架构和表示技术,用于将查询工作负载编码为这些模型的输入。正如我们将在评估中显示的那样,zero-shot成本估计可以为广泛的(真实世界)数据库提供比最先进的模型更准确的成本估计,而不需要对看不见的数据库执行任何查询。此外,我们证明了zero-shot成本模型可以用于Few-Shot模式,通过对看不见的数据库进行少量额外的训练查询来重新训练它们,从而进一步提高它们的质量。

英文摘要:

In this paper, we introduce zero-shot cost models which enable learned cost estimation that generalizes to unseen databases. In contrast to state-of-the-art workload-driven approaches which require to execute a large set of training queries on every new database, zero-shot cost models thus allow to instantiate a learned cost model out-of-the-box without expensive training data collection. To enable such zero-shot cost models, we suggest a new learning paradigm based on pre-trained cost models. As core contributions to support the transfer of such a pre-trained cost model to unseen databases, we introduce a new model architecture and representation technique for encoding query workloads as input to those models. As we will show in our evaluation, zero-shot cost estimation can provide more accurate cost estimates than state-of-the-art models for a wide range of (real-world) databases without requiring any query executions on unseen databases. Furthermore, we show that zero-shot cost models can be used in a few-shot mode that further improves their quality by retraining them just with a small number of additional training queries on the unseen database.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑