DistJoin: A Decoupled Join Cardinality Estimator based on Adaptive Neural Predicate Modulation

Kaixin Zhang, Hongzhi Wang, Ziqi Li, Yabin Lu, Yingze Li +2 more
3/12/2025
cs.DBcs.AI

No confident code implementation found for this paper.

Abstract

Research on learned cardinality estimation has made significant progress in recent years. However, existing methods still face distinct challenges that hinder their practical deployment in production environments.

Show full abstract

We define these challenges as the ``Trilemma of Cardinality Estimation'', where learned cardinality estimation methods struggle to balance generality, accuracy, and updatability. To address these challenges, we introduce DistJoin, a join cardinality estimator based on efficient distribution prediction using multi-autoregressive models. Our contributions are threefold: (1) We propose a method to estimate join cardinality by leveraging the probability distributions of individual tables in a decoupled manner. (2) To meet the requirements of efficiency for DistJoin, we develop Adaptive Neural Predicate Modulation (ANPM), a high-throughput distribution estimation model. (3) We demonstrate that an existing similar approach suffers from variance accumulation issues by formal variance analysis. To mitigate this problem, DistJoin employs a selectivity-based approach to infer join cardinality, effectively reducing variance. In summary, DistJoin not only represents the first data-driven method to support both equi and non-equi joins simultaneously but also demonstrates superior accuracy while enabling fast and flexible updates. The experimental results demonstrate that DistJoin achieves the highest accuracy, robustness to data updates, generality, and comparable update and inference speed relative to existing methods.

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{zhang2025distjoin,
  title  = {DistJoin: A Decoupled Join Cardinality Estimator based on Adaptive Neural Predicate Modulation},
  author = {Kaixin Zhang and Hongzhi Wang and Ziqi Li and Yabin Lu and Yingze Li and Yu Yan and Yiming Guan},
  year   = {2025},
  eprint = {2503.08994},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.08994v3}
}

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.08994.svg)](https://codeofpaper.com/paper/2503.08994)

Discussion