Reqo: A Comprehensive Learning-Based Cost Model for Robust and Explainable Query Optimization
Not on the map. Why?
Abstract (arXiv)
Although machine learning (ML) shows potential in improving query optimization by generating and selecting more efficient plans, ensuring the robustness of learning-based cost models (LCMs) remains challenging. These LCMs currently lack explainability, which undermines user trust and limits the ability to derive insights from their cost predictions to improve plan quality. Accurately converting tree-structured query plans into representations via tree models is also essential, as omitting any details may negatively impact subsequent cost model performance. Additionally, inherent uncertainty in cost estimation leads to inaccurate predictions, resulting in suboptimal plan selection. To address these challenges, we introduce Reqo, a Robust and Explainable Query Optimization cost model that comprehensively enhances three main stages in query optimization: plan generation, plan representation, and plan selection. Reqo integrates three innovations: the first explainability technique for LCMs that quantifies subgraph contributions and produces plan generation hints to enhance candidate plan quality; a novel tree model based on Bidirectional Graph Neural Networks (Bi-GNNs) with a Gated Recurrent Unit (GRU) aggregator to further capture both node-level and structural information and effectively strengthen plan representation; and an uncertainty-aware learning-to-rank cost estimator that adaptively integrates cost estimates with uncertainties to enhance plan selection robustness. Extensive experiments demonstrate that Reqo outperforms state-of-the-art approaches across all three stages.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 23 of its 50 references that are in the map. First posted on arXiv 29 Jan 2025.
Builds on
23 of 50 references.
References · 23
- 2017Attention Is All You Needcited by 60,361
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2016The Mythos of Model Interpretabilitycited by 721
- 2020Masked Label Prediction: Unified Message Passing Model for Semi-Supervised Classificationcited by 506
- 2018Tune: A Research Platform for Distributed Model Selection and Trainingcited by 395
- 2015Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networkscited by 306
- 2023Edge Directionality Improves Learning on Heterophilic Graphscited by 90
- 2019Neo: A Learned Query Optimizercited by 80
- 2020Bao: Learning to Steer Query Optimizerscited by 62
11 more
- 2022A Simple Approach to Improve Single-Model Deep Uncertainty via Distance-Awarenesscited by 49
- 2019An End-to-End Learning-based Cost Estimatorcited by 43
- 2021Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluationcited by 30
- 2022Graph Neural Networks with Adaptive Readoutscited by 29
- 2023Lero: A Learning-to-Rank Query Optimizercited by 26
- 2021Flow-Loss: Learning Cardinality Estimates That Mattercited by 22
- 2022Zero-Shot Cost Models for Out-of-the-box Learned Cost Predictioncited by 16
- 2023Kepler: Robust Learning for Faster Parametric Query Optimizationcited by 3
- 2024HERO: Hint-Based Efficient and Reliable Query Optimizercited by 3
- 2024Robust Plan Evaluation based on Approximate Probabilistic Machine Learningcited by 1
- 2024A Novel Technique for Query Plan Representation Based on Graph Neural Netscited by 1
Built on by
Not cited yet.