NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Knowledge Hypergraph Embedding Meets Relational Algebra

Bahare Fatemi, Perouz Taslakian, David Vázquez

Abstract

Knowledge Hypergraphs (KHGs) represent complex real-world data through multi-argument relations. Predicting missing information in these systems requires models that can capture high-level logical abstractions. We present ReAlE (Relational Algebra Embedding), a novel model grounded in relational algebra. ReAlE utilizes a window-based scoring function and is theoretically proven to be fully expressive, capable of representing fundamental operations like renaming, projection, and selection. Experimental results on real-world and synthetic benchmarks demonstrate that ReAlE achieves state-of-the-art performance in link prediction tasks.

Introduction

Standard Knowledge Graphs (KGs) typically store information as binary triples. However, many real-world facts involve more than two entities, necessitating the use of Knowledge Hypergraphs. For instance, a transaction might be recorded as sold(Seller, Buyer, Item, Price). The primary challenge in KHGs is "link prediction"—the task of inferring missing arguments within these complex relations.

Existing models for KHGs often lack a "relational inductive bias," failing to recognize that one relation may be a logical transformation of another. For example, a bought(Buyer, Item) relation is essentially a projection of a more comprehensive sold relation. Without the ability to model these algebraic transformations, systems struggle to generalize across different relational schemas.

Training and testing paradigms for link prediction in Knowledge Hypergraphs.

Methodology: Relational Algebra Embedding (ReAlE)

ReAlE is designed to mimic the querying logic of relational databases. It represents entities as vectors and relations as matrices, using a specific scoring function to evaluate the validity of a tuple.

The Window Approach

A core innovation of ReAlE is its "window" mechanism. The embedding dimension is partitioned into multiple segments or windows, analogous to the "heads" in multi-head attention. This allows the model to attend to different facets of relational patterns simultaneously, enhancing its representational power.

The window-based embedding architecture of ReAlE, showing how entity vectors and relation matrices are divided into segments for scoring.

Theoretical Foundations

The authors provide proofs that ReAlE is "fully expressive," meaning it can represent any set of facts. Crucially, it can explicitly model five primitive relational algebra operations: renaming, projection, selection, set union, and set difference. This grounding allows ReAlE to avoid the structural "blind spots" found in many previous models like m-TransH or NaLP.

Experiments and Results

The model was evaluated on three real-world benchmarks (JF17K, FB-AUTO, and m-FB15K) and a novel synthetic benchmark (REL-ER).

Real-World Performance

ReAlE consistently matched or outperformed baseline models. It showed particularly strong results in Hit@1 metrics, indicating high precision in identifying the exact missing entity in a relation.

Algebraic Mastery

On the REL-ER dataset—designed to test the learning of logical transformations—ReAlE significantly outperformed competitors. It demonstrated a superior ability to handle complex operations like set union and set difference compared to models like BoxE or HypE.

Conclusion and Future Work

ReAlE bridges the gap between neural embeddings and relational algebra, providing a robust framework for KHG completion. While it successfully models most primitive operations, representing the Cartesian product and Join operations remains a challenge. Future research will focus on extending the architecture to encompass the full suite of relational algebra, potentially leading to fully differentiable neural database engines.

Summary updated

BibTeX
@article{fatemi2023knowledge,
  author = {Bahare Fatemi and Perouz Taslakian and David Vázquez and David Poole},
  title = {{Knowledge Hypergraph Embedding Meets Relational Algebra}},
  journal = {J. Mach. Learn. Res.},
  year = {2023},
}
Figure