Skip to main content

LpBound in Action: Cardinality Estimation with One−Sided Guarantees

Christoph Mayer‚ Haozhe Zhang‚ Mahmoud Abo Khamis‚ Dan Olteanu and Dan Suciu

Abstract

We demonstrate LpBound, a cardinality estimator that computes guaranteed upper bounds on the output size of a given query. Among the wealth of traditional, learned, and pessimistic estimators, LpBound's uniqueness lies in its use of two key ingredients: (1) data statistics based on ℓp-norms of degree sequences of the join columns, and (2) a linear program formulation of the cardinality estimation problem, whose constraints are the Shannon inequalities and new information inequalities derived from data statistics. LpBound comes with a visual interface accessible in the browser. The users can interact with the interface by choosing a query from the JOB, STATS, and Subgraph Matching benchmarks and the range of ℓp-norms available to LpBound. Within a few milliseconds, LpBound computes an upper bound on the query output size. This bound is explained by a closed-form formula using the available ℓp-norms. The users can also inspect the estimation errors of LpBound and a variety of other estimators.

Address
New York‚ NY‚ USA
Book Title
Companion of the 2025 International Conference on Management of Data
ISBN
9798400715648
Keywords
cardinality estimation‚ degree sequence‚ lp−norms
Location
Berlin‚ Germany
Pages
187–190
Publisher
Association for Computing Machinery
Series
SIGMOD/PODS '25
Year
2025