Abstract
Knowledge Graphs (KGs) are essential for various AI applications but often suffer from incompleteness. This paper introduces TaRP (Type-augmented Relation Prediction), a framework that enhances relation prediction by integrating ontological type information as a Bayesian prior. Unlike previous methods that fuse types at the feature level, TaRP employs a decision-level integration, making it model-agnostic and highly data-efficient. Experimental results across multiple benchmarks demonstrate that TaRP significantly outperforms state-of-the-art embedding models, even when trained on a fraction of the available data.
Introduction
Knowledge Graphs like Freebase, YAGO, and DBpedia represent facts as triples (head entity, relation, tail entity). Despite their scale, these graphs are notoriously incomplete. The task of relation prediction aims to infer missing links between entities. Traditional methods primarily rely on instance-level information, representing entities and relations as vectors (embeddings) to capture structural patterns. However, these models often overlook the rich ontological metadata—the types or categories to which entities belong.
While some existing approaches attempt to incorporate type information, they typically do so at the feature level during embedding training. This coupling can lead to inflexibility, requiring full retraining if the base model or type information changes, and increased sensitivity to noise in the ontology.
Methodology: The TaRP Framework
TaRP addresses these limitations through a decision-level integration based on Bayes’ rule. It treats the output of any standard embedding model (e.g., TransE, RotatE) as a "likelihood" and the ontological type information as a "prior."
Bayesian Integration
The final prediction score for a triple is calculated as the product of the type-based prior and the embedding-based likelihood. This modular "plug-and-play" approach allows TaRP to act as a wrapper for any existing relation prediction model without requiring architectural changes.
Hierarchy-based Type Encoding
A key innovation in TaRP is the use of hierarchy-based type weights. In a typical ontology, types are organized hierarchically (e.g., /person/actor/award_winner). Generic types like "person" are less informative for specific relations than leaf-node types like "award_winner." TaRP employs an exponential weighting scheme to prioritize these more specific, informative types in the prior calculation.
Noise Robustness
To handle the inherent noise in large-scale KGs, TaRP includes a thresholding mechanism ($\eta$). This filters out rare or irrelevant types from a relation's domain and range, ensuring that the prior remains robust against outliers or incorrect annotations.
Experimental Evaluation
The authors evaluated TaRP on four major benchmarks: FB15K, FB15K-237, YAGO26K-906, and DB111K-174. These datasets vary in size and ontological complexity, providing a comprehensive testing ground for the framework.
Key Results and Data Efficiency
TaRP consistently achieved superior performance compared to baseline embedding models and other type-based methods like JOIE and TKRL. On the FB15K dataset, TaRP-R (using RotatE as the base) reached a Hits@1 of 92.91%, a significant jump from the baseline's 80.20%.
One of the most remarkable findings is TaRP's extreme data efficiency. As shown in the results, the framework can compensate for a lack of observed triples by leveraging ontological "common sense."
As illustrated in the experimental results, TaRP-R trained on only 20% of the training data outperformed the standard RotatE model trained on 100% of the data across all metrics (MR, Hits@1, and Hits@10). This suggests that ontological rules provide a powerful inductive bias that reduces the reliance on massive amounts of instance-level training data.
Conclusion
TaRP demonstrates that symbolic ontological knowledge and connectionist embeddings can be effectively combined through classical probability. By separating type logic from embedding logic, the framework offers a simple, modular, and powerful way to improve Knowledge Graph completion. Future work may focus on automatically inferring missing types for entities to further enhance the predictive power of the Bayesian prior in sparse KGs.
Summary updated