English

LMKG: Learned Models for Cardinality Estimation in Knowledge Graphs

Databases 2021-02-23 v1

Abstract

Accurate cardinality estimates are a key ingredient to achieve optimal query plans. For RDF engines, specifically under common knowledge graph processing workloads, the lack of schema, correlated predicates, and various types of queries involving multiple joins, render cardinality estimation a particularly challenging task. In this paper, we develop a framework, termed LMKG, that adopts deep learning approaches for effectively estimating the cardinality of queries over RDF graphs. We employ both supervised (i.e., deep neural networks) and unsupervised (i.e., autoregressive models) approaches that adapt to the subgraph patterns and produce more accurate cardinality estimates. To feed the underlying data to the models, we put forward a novel encoding that represents the queries as subgraph patterns. Through extensive experiments on both real-world and synthetic datasets, we evaluate our models and show that they overall outperform the state-of-the-art approaches in terms of accuracy and execution time.

Keywords

Cite

@article{arxiv.2102.10588,
  title  = {LMKG: Learned Models for Cardinality Estimation in Knowledge Graphs},
  author = {Angjela Davitkova and Damjan Gjurovski and Sebastian Michel},
  journal= {arXiv preprint arXiv:2102.10588},
  year   = {2021}
}

Comments

12 pages, 11 figures, 2 tables

R2 v1 2026-06-23T23:22:19.381Z