Abstract
Knowledge hypergraphs (KHGs) extend traditional knowledge graphs by representing complex facts as $n$-ary relations involving multiple entities. A critical challenge in KHG link prediction is capturing the distinct semantic roles and positions of entities within these relations. This paper presents PosKHG, a position-aware model that utilizes a latent space of basis vectors to represent roles and a multi-linear scoring function. PosKHG is proven to be fully expressive and achieves state-of-the-art results on benchmark datasets, including a 4.1% average improvement in Mean Reciprocal Rank (MRR) while maintaining linear computational complexity.
Introduction
Traditional Knowledge Graphs (KGs) typically represent information as binary relations (triples), such as (head, relation, tail). However, many real-world facts are inherently $n$-ary, involving multiple entities simultaneously. For instance, the fact that "LeBron James won the Best Scorer award in the 07-08 season" involves three entities: LeBron James, Best Scorer, and 07-08 Season.
In these complex relations, the position (the index of the entity in the tuple) and the semantic role (the specific meaning of the entity's participation, such as "Winner" or "Season") are critical. Swapping entities between positions often results in nonsensical facts. Existing models frequently fail to distinguish between these two concepts or treat $n$-ary relations as mere extensions of binary ones. PosKHG addresses this by explicitly modeling both position and role.
Methodology: The PosKHG Architecture
PosKHG (Position-Aware Knowledge Hypergraph) introduces several innovations to handle the nuances of $n$-ary data:
Latent Space for Roles
Rather than assigning a static embedding to every possible role, PosKHG defines a latent space using $L$ basis vectors. Any specific role is represented as a linear combination of these vectors. This approach allows the model to capture semantic overlaps between different roles and generalize better to rare roles by relating them to more common ones.
Multi-Embedding and Position Awareness
Entities often play diverse roles across different relations. To account for this, PosKHG assigns multiple embeddings to each entity. Furthermore, the model incorporates position information by shifting entity embeddings based on their index within a tuple, ensuring the model is inherently "position-aware."
Scoring Function
The plausibility of a tuple is determined by a multi-linear scoring function. The authors provide a theoretical proof that this mechanism is fully expressive, meaning it can represent any possible relational pattern without the "blind spots" found in simpler embedding models.
Evaluation and Results
The model was rigorously tested on $n$-ary datasets (JF17K, FB-AUTO) and standard binary benchmarks (WN18, FB15k).
Key findings include:
- State-of-the-Art Performance: PosKHG consistently outperformed existing models like RAM, HypE, and HINGE on $n$-ary link prediction tasks.
- Significant Accuracy Gains: The model achieved a 4.1% average improvement in Mean Reciprocal Rank (MRR) over previous state-of-the-art methods.
- Ablation Studies: Removing either position or role information led to a significant drop in performance, validating the necessity of both components for accurate predictions.
- Efficiency: Despite its semantic depth, the model maintains linear time and space complexity ($O(d)$), making it practical for large-scale real-world applications.
Conclusion
PosKHG represents a significant step forward in knowledge hypergraph modeling. By formalizing the distinction between position and role and utilizing a latent basis for semantic representation, it provides a robust and efficient framework for $n$-ary link prediction. Future work may explore non-linear interactions between roles and positions to further enhance the model's expressive power.
Summary updated