Lune

VLDB2023Top-tier venue

LEON: A New Framework for ML-Aided Query Optimization

Xu Chen, Haitian Chen, Zibo Liang, Shuncheng Liu, Jinghong Wang, Kai Zeng, Han Su, Kai Zheng

Abstract

Query optimization has long been a fundamental yet challenging topic in the database field. With the prosperity of machine learning (ML), some recent works have shown the advantages of reinforcement learning (RL) based learned query optimizer. However, they suffer from fundamental limitations due to the data-driven nature of ML. Motivated by the ML characteristics and database maturity, we propose LEON -a framework for ML-aidEd query OptimizatioN. LEON improves the expert query optimizer to self-adjust to the particular deployment by leveraging ML and the fundamental knowledge in the expert query optimizer. To train the ML model, a pairwise ranking objective is proposed, which is substantially different from the previous regression objective. To help the optimizer to escape the local minima and avoid failure, a ranking and uncertainty-based exploration strategy is proposed, which discovers the valuable plans to aid the optimizer. Furthermore, an ML model-guided pruning is proposed to increase the planning efficiency without hurting too much performance. Extensive experiments offer evidence that the proposed framework can outperform the state-of-the-art methods in terms of end-to-end latency performance, training efficiency, and stability.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

17 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • How Good are Learned Cost Models, Really? Insights from Query Optimization Tasks cites DACE: A Database-Agnostic Cost Estimator
  • How Good are Learned Cost Models, Really? Insights from Query Optimization Tasks cites An End-to-End Learning-based Cost Estimator
  • How Good are Learned Cost Models, Really? Insights from Query Optimization Tasks cites Is Your Learned Query Optimizer Behaving As You Expect? A Machine Learning Perspective
  • How Good are Learned Cost Models, Really? Insights from Query Optimization Tasks cites NeuroCard: One Cardinality Estimator for All Tables
  • How Good are Learned Cost Models, Really? Insights from Query Optimization Tasks cites Bao: Making Learned Query Optimization Practical
  • DACE: A Database-Agnostic Cost Estimator cites An End-to-End Learning-based Cost Estimator
  • DACE: A Database-Agnostic Cost Estimator cites Reinforcement Learning with Tree-LSTM for Join Order Selection
  • DACE: A Database-Agnostic Cost Estimator cites Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
  • DACE: A Database-Agnostic Cost Estimator cites Bao: Making Learned Query Optimization Practical
  • LIRA: A Learning-based Query-aware Partition Framework for Large-scale ANN Search cites DACE: A Database-Agnostic Cost Estimator
  • PilotScope: Steering Databases with Machine Learning Drivers cites NeuroCard: One Cardinality Estimator for All Tables
  • PilotScope: Steering Databases with Machine Learning Drivers cites Bao: Making Learned Query Optimization Practical
  • An End-to-End Learning-based Cost Estimator cites Reinforcement Learning with Tree-LSTM for Join Order Selection
  • Reinforcement Learning with Tree-LSTM for Join Order Selection cites An End-to-End Learning-based Cost Estimator
  • Is Your Learned Query Optimizer Behaving As You Expect? A Machine Learning Perspective cites Reinforcement Learning with Tree-LSTM for Join Order Selection
  • Is Your Learned Query Optimizer Behaving As You Expect? A Machine Learning Perspective cites Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
  • Is Your Learned Query Optimizer Behaving As You Expect? A Machine Learning Perspective cites NeuroCard: One Cardinality Estimator for All Tables
  • Is Your Learned Query Optimizer Behaving As You Expect? A Machine Learning Perspective cites Bao: Making Learned Query Optimization Practical
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation cites An End-to-End Learning-based Cost Estimator
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation cites NeuroCard: One Cardinality Estimator for All Tables
  • NeuroCard: One Cardinality Estimator for All Tables cites An End-to-End Learning-based Cost Estimator
  • Bao: Making Learned Query Optimization Practical cites An End-to-End Learning-based Cost Estimator
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers17

  1. PilotScope: Steering Databases with Machine Learning DriversRong Zhu, Lianggui Weng, Wenqing Wei, Di Wu et al.VLDB 2024 · 18 citations
  2. Is Your Learned Query Optimizer Behaving As You Expect? A Machine Learning PerspectiveClaude Lehmann, Pavel Sulimov, Kurt StockingerVLDB 2024 · 17 citations
  3. How Good are Learned Cost Models, Really? Insights from Query Optimization TasksRoman Heinrich, Manisha Luthra, Johannes Wehrstein, Harald Kornmayer et al.SIGMOD 2025 · 13 citations
  4. LIRA: A Learning-based Query-aware Partition Framework for Large-scale ANN SearchXimu Zeng, Liwei Deng, Penghao Chen, Xu Chen et al.WWW 2025 · 10 citations
  5. DACE: A Database-Agnostic Cost EstimatorZibo Liang, Xu Chen, Yuyang Xia, Runfan Ye et al.ICDE 2024 · 8 citations

Builds on12

  1. An End-to-End Learning-based Cost EstimatorJi Sun, Guoliang LiVLDB 2020 · 251 citations
  2. Bao: Making Learned Query Optimization PracticalRyan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul et al.SIGMOD 2021 · 242 citations
  3. Cardinality Estimation in DBMS: A Comprehensive Benchmark EvaluationYuxing Han, Ziniu Wu, Peizhi Wu, Rong Zhu et al.VLDB 2022 · 169 citations
  4. Reinforcement Learning with Tree-LSTM for Join Order SelectionXiang Yu, Guoliang Li, Chengliang Chai, Nan TangICDE 2020 · 168 citations
  5. NeuroCard: One Cardinality Estimator for All TablesZongheng Yang, Amog Kamsetty, Sifei Luan, Eric Liang et al.VLDB 2021 · 138 citations

Related papers

  1. Lero: A Learning-to-Rank Query OptimizerRong Zhu, Wei Chen, Bolin Ding, Xingguang Chen et al.VLDB 2023 · 102 citations
  2. FOSS: A Self-Learned Doctor for Query OptimizerKai Zhong, Luming Sun, Tao Ji, Cuiping Li et al.ICDE 2024 · 5 citations
  3. LOGER: A Learned Optimizer towards Generating Efficient and Robust Query Execution PlansTianyi Chen, Jun Gao, Hedui Chen, Yaofeng TuVLDB 2023 · 54 citations
  4. Lequa: A Learning-Based Query-Aware Framework for Selective Query OptimizationGuoneng Li, Pengfei Zheng, Ling Xu, Yan Li et al.ICDE 2026
  5. SEFRQO: A Self-Evolving Fine-Tuned RAG-Based Query OptimizerHanwen Liu, Qihan Zhang, Ryan Marcus, Ibrahim SabekSIGMOD 2026 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines