Knowledge Graph (KG) research has traditionally focused on binary relations, represented as triples $(h, r, t)$. However, many real-world facts are $n$-ary, involving multiple entities simultaneously. For instance, a flight relation might link a carrier, a departure city, and multiple destination cities. Standard approaches to handle these multi-way relations involve reification or star-to-clique conversions, but these methods introduce "leaky" abstractions that hinder link prediction performance.
The Problem with Binary Reductions
Most modern KG models struggle with $n$-ary facts because they force-fit them into binary formats. Reification creates auxiliary "event" nodes, which leads to a cold-start problem for new entities at test time. Star-to-clique conversions lose the specific roles entities play within a relation, potentially leading the model to infer relations simply based on entity co-occurrence rather than structural roles.
To address these issues, we propose treating $n$-ary relations as hyperedges in a knowledge hypergraph and introduce two embedding-based models: HSimplE and HypE.
Proposed Methods: HSimplE and HypE
The proposed models treat the position of an entity within a relation as a primary feature, allowing the model to distinguish between different roles (e.g., "departure" vs. "arrival").
1. HSimplE (Hyper-SimplE)
Inspired by the SimplE model for binary graphs, HSimplE represents each entity as a single long vector. Depending on which position ($1$ to $k$) the entity occupies in a relation, the model "shifts" the vector. Conceptually, the entity vector is a concatenation of sub-vectors, one for each possible position. The score for a tuple is the element-wise product of the relation vector and these shifted entity vectors.
2. HypE (Hyper-Embedding)
HypE utilizes 1D convolutions to disentangle an entity's identity from its role. For each position $i$, the model learns a set of convolutional filters. When an entity appears in position $i$, its embedding is convolved with these filters. This approach is more parameter-efficient and robust, especially when entities appear in novel positions during testing.
Both models are theoretically shown to be fully expressive, meaning they are mathematically capable of representing any possible set of ground-truth facts given enough embedding dimensions.
Key Results and Evaluation
The models were evaluated on five datasets, including two new benchmarks (FB-AUTO and M-FB15K) specifically curated for multi-arity relations, alongside standard benchmarks like JF17K and binary KGs (WN18, FB15k).
HypE and HSimplE consistently outperformed state-of-the-art baselines like m-TransH and m-DistMult across all $n$-ary datasets. On JF17K, HypE achieved a Mean Reciprocal Rank (MRR) of 0.494, a significant improvement over the strongest previous baseline, m-TransH (0.444).
Key insights from the evaluation include:
- Robustness to Unseen Positions: In specialized "missing positions" tests, HypE significantly outperformed HSimplE, confirming that disentangling entity embeddings from positional filters allows for better generalization to new roles.
- Universal Applicability: On standard binary datasets, HSimplE and HypE performed as well as specialized binary models, proving they are viable "universal" choices for KG completion.
- Parameter Efficiency: HypE demonstrated superior performance over HSimplE when the embedding budget was low, thanks to its shared convolutional filters.
Conclusion and Future Work
By treating $n$-ary relations as native hypergraphs rather than reduced binary triples, HSimplE and HypE provide a more accurate and robust framework for knowledge representation. While effective, the models' complexity scales with the maximum arity of the relations. Future work will explore predicting multiple missing entities simultaneously and improving computational efficiency for extremely high-arity hypergraphs.
Summary updated