DBJun 22

SemCEB: A Cardinality Estimation Benchmark for Semantic Operators

arXiv:2606.2308110.3
Predicted impact top 31% in DB · last 90 daysOriginality Synthesis-oriented
AI Analysis

This benchmark addresses the need for accurate, fast, and cheap cardinality estimates for query optimization in modern data systems using semantic operators, a problem that is increasingly important but lacks standardized evaluation.

The paper introduces SemCEB, the first benchmark for cardinality estimation over semantic operators (filters and joins defined by natural-language instructions). It evaluates sampling-based algorithms and Semantic Histograms, finding that sampling is robust but costly and does not scale, while Semantic Histograms have limited applicability and sensitivity to predicate categories.

Modern data systems increasingly expose multi-modal large language models as semantic operators: SQL operators, including filters and joins, whose predicates are defined by a natural-language instruction. Query optimization in these systems still rests on the same foundations as in traditional databases$\unicode{x2013}$plan enumeration and cost models$\unicode{x2013}$yet faces new challenges, e.g., a larger plan space and the lack of efficient cardinality estimates. The elevated per-tuple costs of semantic operators make bad plan choices worse by orders of magnitude. Therefore, precise$\unicode{x2013}$but also fast and cheap$\unicode{x2013}$cardinality estimates for semantic filters and joins are of high importance for optimizing query plans that include semantic operators. In this paper, we introduce SemCEB, the first benchmark for cardinality estimation over semantic operators, based on a real-world dataset of (semi-)structured text and images with 102 hand-curated, diverse queries spanning a wide range of selectivities, assessing cardinality estimation for semantic filters and joins in isolation. We evaluate sampling-based algorithms and Semantic Histograms, a state-of-the-art cardinality estimation algorithm for semantic operators, with respect to their accuracy, cost, latency, and memory overhead. We show that, while sampling is robust across different predicate categories, it does not scale and comes with high costs. Our adaptation of Semantic Histograms, on the other hand, is limited in its applicability, and its performance appears sensitive to the predicate category.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes