MonoM: Enhancing Monotonicity in Learned Cardinality Estimators
Lyu Yi, Weiqi Feng, Yuanbiao Wang, Yuhong Kan

TL;DR
This paper introduces MonoM, a metric and training framework that enhances the monotonicity and accuracy of learned cardinality estimators in database query optimization.
Contribution
It proposes a novel monotonic training method with a workload generator and regularization, improving both monotonicity adherence and estimation accuracy.
Findings
Monotonic training improves estimator monotonicity.
Regularization reduces overfitting and enhances accuracy.
MonoM metric effectively measures monotonicity adherence.
Abstract
Cardinality estimation is a key component of database query optimization. Recent studies have demonstrated that learned cardinality estimation techniques can surpass traditional methods in accuracy. However, a significant barrier to their adoption in production systems is their tendency to violate fundamental logical principles such as monotonicity. In this paper, we explore how learned models specifically MSCN, a query driven deep learning algorithm can breach monotonicity constraints. To address this, we propose a metric called MonoM, which quantitatively measures how well a cardinality estimator adheres to monotonicity across a given query workload. We also propose a monotonic training framework which includes a workload generator that produces directly comparable queries (one query's predicates are strictly more relaxed than another's, enabling monotonicity inference without actual…
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 · Data Quality and Management · Data Management and Algorithms
