Salvato in:
Dettagli Bibliografici
Autori principali: Yi, Lyu, Feng, Weiqi, Wang, Yuanbiao, Kan, Yuhong
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:https://arxiv.org/abs/2512.22122
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866918264383209472
author Yi, Lyu
Feng, Weiqi
Wang, Yuanbiao
Kan, Yuhong
author_facet Yi, Lyu
Feng, Weiqi
Wang, Yuanbiao
Kan, Yuhong
contents 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 execution) and a novel regularization term added to the loss function. Experimental results show that our monotonic training algorithm not only enhances monotonicity adherence but also improves cardinality estimation accuracy. This improvement is attributed to the regularization term, which reduces overfitting and improves model generalization.
format Preprint
id arxiv_https___arxiv_org_abs_2512_22122
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MonoM: Enhancing Monotonicity in Learned Cardinality Estimators
Yi, Lyu
Feng, Weiqi
Wang, Yuanbiao
Kan, Yuhong
Databases
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 execution) and a novel regularization term added to the loss function. Experimental results show that our monotonic training algorithm not only enhances monotonicity adherence but also improves cardinality estimation accuracy. This improvement is attributed to the regularization term, which reduces overfitting and improves model generalization.
title MonoM: Enhancing Monotonicity in Learned Cardinality Estimators
topic Databases
url https://arxiv.org/abs/2512.22122