Conformal Prediction for Verifiable Learned Query Optimization
Hanwen Liu, Shashank Giridhara, Ibrahim Sabek

TL;DR
This paper introduces a conformal prediction framework to verify and improve learned query optimizers in databases, ensuring performance guarantees and robustness against distribution shifts, with significant improvements in plan quality and efficiency.
Contribution
It is the first to formulate LQO verification as a conformal prediction problem, providing bounded latency ranges, violation detection, adaptive confidence, and CP-guided plan search.
Findings
Achieves tight latency bounds for LQOs.
Effectively detects and handles performance violations.
Improves query plan quality and reduces planning time.
Abstract
Query optimization is critical in relational databases. Recently, numerous Learned Query Optimizers (LQOs) have been proposed, demonstrating superior performance over traditional hand-crafted query optimizers after short training periods. However, the opacity and instability of machine learning models have limited their practical applications. To address this issue, we are the first to formulate the LQO verification as a Conformal Prediction (CP) problem. We first construct the CP model and obtain user-controlled bounded ranges for the actual latency of LQO plans before execution. Then, we introduce CP-based runtime verification along with violation handling to ensure performance prior to execution. For both scenarios, we further extend our framework to handle distribution shifts in the dynamic environment using adaptive CP approaches. Finally, we present CP-guided plan search, which…
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.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Database Systems and Queries · Neural Networks and Applications · Machine Learning and Algorithms
