ACE: A Cardinality Estimator for Set-Valued Queries

Yufan Sheng, Xin Cao, Kaiqi Zhao, Yixiang Fang, Jianzhong Qi +2 more
3/19/2025
cs.DBcs.LG

No confident code implementation found for this paper.

Abstract

Cardinality estimation is a fundamental functionality in database systems. Most existing cardinality estimators focus on handling predicates over numeric or categorical data. They have largely omitted an important data type, set-valued data, which frequently occur in contemporary applications such as information retrieval and recommender systems. The few existing estimators for such data either favor high-frequency elements or rely on a partial independence assumption, which limits their practical applicability. We propose ACE, an Attention-based Cardinality Estimator for estimating the cardinality of queries over set-valued data. We first design a distillation-based data encoder to condense the dataset into a compact matrix. We then design an attention-based query analyzer to capture correlations among query elements. To handle variable-sized queries, a pooling module is introduced, followed by a regression model (MLP) to generate final cardinality estimates. We evaluate ACE on three datasets with varying query element distributions, demonstrating that ACE outperforms the state-of-the-art competitors in terms of both accuracy and efficiency.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sheng2025ace,
  title  = {ACE: A Cardinality Estimator for Set-Valued Queries},
  author = {Yufan Sheng and Xin Cao and Kaiqi Zhao and Yixiang Fang and Jianzhong Qi and Wenjie Zhang and Christian S. Jensen},
  year   = {2025},
  eprint = {2503.14929},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.14929v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.14929.svg)](https://codeofpaper.com/paper/2503.14929)

Discussion