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

01/03/2022
by   Benjamin Hilprecht, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/03/2021

One Model to Rule them All: Towards Zero-Shot Learning for Databases

In this paper, we present our vision of so called zero-shot learning for...
research
07/08/2022

Zero-Shot Cost Models for Distributed Stream Processing

This paper proposes a learned cost estimation model for Distributed Stre...
research
10/12/2020

SLEDGE-Z: A Zero-Shot Baseline for COVID-19 Literature Search

With worldwide concerns surrounding the Severe Acute Respiratory Syndrom...
research
03/31/2021

Transfer Learning for Node Regression Applied to Spreading Prediction

Understanding how information propagates in real-life complex networks y...
research
07/27/2020

Practical and sample efficient zero-shot HPO

Zero-shot hyperparameter optimization (HPO) is a simple yet effective us...
research
04/05/2022

"Does it come in black?" CLIP-like models are zero-shot recommenders

Product discovery is a crucial component for online shopping. However, i...
research
09/02/2019

DeepDB: Learn from Data, not from Queries!

The typical approach for learned DBMS components is to capture the behav...

Please sign up or login with your details

Forgot password? Click here to reset