DBAILGMar 2, 2023

Cardinality Estimation over Knowledge Graphs with Embeddings and Graph Neural Networks

arXiv:2303.01140v214 citationsh-index: 14
Originality Highly original
AI Analysis

This addresses query optimization for knowledge graphs, offering improved accuracy and efficiency for dynamic processing scenarios.

The paper tackles cardinality estimation for knowledge graph queries by proposing GNCE, which uses embeddings and graph neural networks to predict query cardinalities, achieving lower q-Error and execution time than state-of-the-art methods.

Cardinality Estimation over Knowledge Graphs (KG) is crucial for query optimization, yet remains a challenging task due to the semi-structured nature and complex correlations of typical Knowledge Graphs. In this work, we propose GNCE, a novel approach that leverages knowledge graph embeddings and Graph Neural Networks (GNN) to accurately predict the cardinality of conjunctive queries. GNCE first creates semantically meaningful embeddings for all entities in the KG, which are then integrated into the given query, which is processed by a GNN to estimate the cardinality of the query. We evaluate GNCE on several KGs in terms of q-Error and demonstrate that it outperforms state-of-the-art approaches based on sampling, summaries, and (machine) learning in terms of estimation accuracy while also having lower execution time and less parameters. Additionally, we show that GNCE can inductively generalise to unseen entities, making it suitable for use in dynamic query processing scenarios. Our proposed approach has the potential to significantly improve query optimization and related applications that rely on accurate cardinality estimates of conjunctive queries.

Code Implementations1 repo
Foundations

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

Your Notes