GenJoin: Conditional Generative Plan-to-Plan Query Optimizer that Learns from Subplan Hints
Not on the map. Why?
Abstract (arXiv)
Query optimization has become a research area where classical algorithms are being challenged by machine learning algorithms. At the same time, recent trends in learned query optimizers have shown that it is prudent to take advantage of decades of database research and augment classical query optimizers by shrinking the plan search space through different types of hints (e.g. by specifying the join type, scan type or the order of joins) rather than completely replacing the classical query optimizer with machine learning models. It is especially relevant for cases when classical optimizers cannot fully enumerate all logical and physical plans and, as an alternative, need to rely on less robust approaches like genetic algorithms. However, even symbiotically learned query optimizers are hampered by the need for vast amounts of training data, slow plan generation during inference and unstable results across various workload conditions. In this paper, we present GenJoin - a novel learned query optimizer that considers the query optimization problem as a generative task and is capable of learning from a random set of subplan hints to produce query plans that outperform the classical optimizer. GenJoin is the first learned query optimizer that significantly and consistently outperforms PostgreSQL as well as state-of-the-art methods on two well-known real-world benchmarks across a variety of workloads using rigorous machine learning evaluations.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 17 of its 58 references that are in the map. First posted on arXiv 7 Nov 2024.
Builds on
17 of 58 references.
References · 17
- 2013Auto-Encoding Variational Bayescited by 3,980
- 2016Variational Inference: A Review for Statisticianscited by 1,466
- 2019Neo: A Learned Query Optimizercited by 80
- 2018Learned Cardinalities: Estimating Correlated Joins with Deep Learningcited by 64
- 2020Bao: Learning to Steer Query Optimizerscited by 62
- 2018Learning to Optimize Join Queries With Deep Reinforcement Learningcited by 32
- 2023Lero: A Learning-to-Rank Query Optimizercited by 26
- 2018Deep Reinforcement Learning for Join Order Enumerationcited by 25
- 2020FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimationcited by 22
- 2022Balsa: Learning a Query Optimizer Without Expert Demonstrationscited by 18
- 2022Zero-Shot Cost Models for Out-of-the-box Learned Cost Predictioncited by 16
- 2022FactorJoin: A New Cardinality Estimation Framework for Join Queriescited by 13
5 more
- 2018Towards a Hands-Free Query Optimizer through Deep Learningcited by 8
- 2019Join Query Optimization with Deep Reinforcement Learning Algorithmscited by 7
- 2023COOOL: A Learning-To-Rank Approach for SQL Hint Recommendationscited by 4
- 2023Is Your Learned Query Optimizer Behaving As You Expect? A Machine Learning Perspectivecited by 3
- 2023JoinGym: An Efficient Query Optimization Environment for Reinforcement Learningcited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.