Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our Findings
Not on the map. Why?
Abstract (arXiv)
Query processing over big data is ubiquitous in modern clouds, where the system takes care of picking both the physical query execution plans and the resources needed to run those plans, using a cost-based query optimizer. A good cost model, therefore, is akin to better resource efficiency and lower operational costs. Unfortunately, the production workloads at Microsoft show that costs are very complex to model for big data systems. In this work, we investigate two key questions: (i) can we learn accurate cost models for big data systems, and (ii) can we integrate the learned models within the query optimizer. To answer these, we make three core contributions. First, we exploit workload patterns to learn a large number of individual cost models and combine them to achieve high accuracy and coverage over a long period. Second, we propose extensions to Cascades framework to pick optimal resources, i.e, number of containers, during query planning. And third, we integrate the learned cost models within the Cascade-style query optimizer of SCOPE at Microsoft. We evaluate the resulting system, Cleo, in a production environment using both production and TPC-H workloads. Our results show that the learned cost models are 2 to 3 orders of magnitude more accurate, and 20X more correlated with the actual runtimes, with a large majority (70%) of the plan changes leading to substantial improvements in latency as well as resource usage.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). First posted on arXiv 27 Feb 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 5; 2022: 3; 2023: 2; 2024: 4; 2025: 2.
16 papers.
Sort:
- 2025Barbarians at the Gate: How AI is Upending Systems Researchcited by 48
- 2022Zero-Shot Cost Models for Out-of-the-box Learned Cost Predictioncited by 16
- 2021A Survey on Advancing the DBMS Query Optimizer: Cardinality Estimation, Cost Model, and Plan Enumerationcited by 14
- 2021A Unified Transferable Model for ML-Enhanced DBMScited by 10
- 2022Detect, Distill and Update: Learned DB Systems Facing Out of Distribution Datacited by 6
- 2024Sibyl: Forecasting Time-Evolving Query Workloadscited by 4
- 2021Optimal Resource Allocation for Serverless Queriescited by 2
- 2022Deploying a Steered Query Optimizer in Production at Microsoftcited by 2
- 2023ML-Powered Index Tuning: An Overview of Recent Progress and Open Challengescited by 2
- 2025Let the Barbarians In: How AI Can Accelerate Systems Performance Researchcited by 2
- 2021Phoebe: A Learning-based Checkpoint Optimizercited by 1
- 2023Transfer Learning Across Heterogeneous Features For Efficient Tensor Program Generationcited by 1
4 more
- 2024Robust Plan Evaluation based on Approximate Probabilistic Machine Learningcited by 1
- 2021Baihe: SysML Framework for AI-driven Databasescited by 0
- 2024LearnedWMP: Workload Memory Prediction Using Distribution of Query Templatescited by 0
- 2024COSTREAM: Learned Cost Models for Operator Placement in Edge-Cloud Environmentscited by 0
- 2025Let the Barbarians In: How AI Can Accelerate Systems Performance Research16 Dec 2025
- 2025Barbarians at the Gate: How AI is Upending Systems Research7 Oct 2025
- 2024COSTREAM: Learned Cost Models for Operator Placement in Edge-Cloud Environments13 Mar 2024
- 2024Robust Plan Evaluation based on Approximate Probabilistic Machine Learning26 Jan 2024
- 2024LearnedWMP: Workload Memory Prediction Using Distribution of Query Templates22 Jan 2024
- 2024Sibyl: Forecasting Time-Evolving Query Workloads8 Jan 2024
- 2023ML-Powered Index Tuning: An Overview of Recent Progress and Open Challenges25 Aug 2023
- 2023Transfer Learning Across Heterogeneous Features For Efficient Tensor Program Generation11 Apr 2023
- 2022Deploying a Steered Query Optimizer in Production at Microsoft24 Oct 2022
- 2022Detect, Distill and Update: Learned DB Systems Facing Out of Distribution Data11 Oct 2022
- 2022Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction3 Jan 2022
- 2021Baihe: SysML Framework for AI-driven Databases29 Dec 2021
4 more
- 2021Phoebe: A Learning-based Checkpoint Optimizer5 Oct 2021
- 2021Optimal Resource Allocation for Serverless Queries19 Jul 2021
- 2021A Unified Transferable Model for ML-Enhanced DBMS6 May 2021
- 2021A Survey on Advancing the DBMS Query Optimizer: Cardinality Estimation, Cost Model, and Plan Enumeration5 Jan 2021
- 2025Barbarians at the Gate: How AI is Upending Systems Researchcited by 48
- 2022Zero-Shot Cost Models for Out-of-the-box Learned Cost Predictioncited by 16
- 2021A Survey on Advancing the DBMS Query Optimizer: Cardinality Estimation, Cost Model, and Plan Enumerationcited by 14
- 2021A Unified Transferable Model for ML-Enhanced DBMScited by 10
- 2022Detect, Distill and Update: Learned DB Systems Facing Out of Distribution Datacited by 6
- 2024Sibyl: Forecasting Time-Evolving Query Workloadscited by 4
- 2021Optimal Resource Allocation for Serverless Queriescited by 2
- 2022Deploying a Steered Query Optimizer in Production at Microsoftcited by 2
- 2023ML-Powered Index Tuning: An Overview of Recent Progress and Open Challengescited by 2
- 2025Let the Barbarians In: How AI Can Accelerate Systems Performance Researchcited by 2
- 2021Phoebe: A Learning-based Checkpoint Optimizercited by 1
- 2023Transfer Learning Across Heterogeneous Features For Efficient Tensor Program Generationcited by 1
12 most cited of 16 All 16 (JSON)
- 2025Let the Barbarians In: How AI Can Accelerate Systems Performance Research16 Dec 2025
- 2025Barbarians at the Gate: How AI is Upending Systems Research7 Oct 2025
- 2024COSTREAM: Learned Cost Models for Operator Placement in Edge-Cloud Environments13 Mar 2024
- 2024Robust Plan Evaluation based on Approximate Probabilistic Machine Learning26 Jan 2024
- 2024LearnedWMP: Workload Memory Prediction Using Distribution of Query Templates22 Jan 2024
- 2024Sibyl: Forecasting Time-Evolving Query Workloads8 Jan 2024
- 2023ML-Powered Index Tuning: An Overview of Recent Progress and Open Challenges25 Aug 2023
- 2023Transfer Learning Across Heterogeneous Features For Efficient Tensor Program Generation11 Apr 2023
- 2022Deploying a Steered Query Optimizer in Production at Microsoft24 Oct 2022
- 2022Detect, Distill and Update: Learned DB Systems Facing Out of Distribution Data11 Oct 2022
- 2022Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction3 Jan 2022
- 2021Baihe: SysML Framework for AI-driven Databases29 Dec 2021
12 newest of 16 All 16 (JSON)