Lero: A Learning-to-Rank Query Optimizer
Rong Zhu, Wei Chen, Bolin Ding, Xingguang Chen, Andreas Pfadler, Ziniu, Wu, Jingren Zhou

TL;DR
Lero is a learning-to-rank query optimizer that improves existing database query plans by focusing on the relative ranking of plans rather than predicting exact costs, leading to more efficient and adaptable query optimization.
Contribution
Lero introduces a novel pairwise learning-to-rank approach for query optimization that is easy to implement on existing systems and significantly improves performance.
Findings
Reduces PostgreSQL plan execution time by up to 70%.
Achieves near optimal performance on several benchmarks.
Continuously learns and adapts to workload changes.
Abstract
A recent line of works apply machine learning techniques to assist or rebuild cost-based query optimizers in DBMS. While exhibiting superiority in some benchmarks, their deficiencies, e.g., unstable performance, high training cost, and slow model updating, stem from the inherent hardness of predicting the cost or latency of execution plans using machine learning models. In this paper, we introduce a learning-to-rank query optimizer, called Lero, which builds on top of a native query optimizer and continuously learns to improve the optimization performance. The key observation is that the relative order or rank of plans, rather than the exact cost or latency, is sufficient for query optimization. Lero employs a pairwise approach to train a classifier to compare any two plans and tell which one is better. Such a binary classification task is much easier than the regression task to predict…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCloud Computing and Resource Management · Data Management and Algorithms · Advanced Database Systems and Queries
MethodsNetwork On Network
