Abstract
Conventional knowledge graph representation learn the representation of entities and relations by projecting triples in the knowledge graph to a continuous vector space. The vector representation increases the precision of link prediction and the efficiency of downstream tasks. However, these methods cannot process previously unseen entities during the knowledge graph evolution. In other words, the model trained on the source knowledge graph cannot be applied to the target knowledge graph containing new unseen entities. Recently, a few subgraph-based link prediction models obtained the inductive ability, but they all neglect semantic information. In this work, we propose an inductive representation learning model TGraiL which considers not only the topological structure but also semantic information. First, distance in the subgraph is used to encode the node's topological structure. Second, the projection matrix is used to encode the entity type information. Finally, both kinds of information are fused for training to acquire the ultimate vector representation of entities. The experimental results indicate that the model's performance has been significantly improved compared to the existing baseline models, demonstrating the method's effectiveness and superiority.
Introduction
Knowledge Graphs (KGs) are essential for various AI applications, from search engines to recommendation systems. Traditional embedding models like TransE or RotatE are transductive, meaning they can only reason about entities seen during training. In dynamic real-world scenarios where new entities are constantly added, these models fail. Inductive models address this by learning to predict relations based on local graph structures rather than fixed entity IDs. However, existing inductive models often ignore the rich semantic information—specifically entity types—that can guide inference.
The TGraiL Framework
This paper introduces TGraiL, an inductive framework that fuses topological subgraph features with hierarchical semantic type information.
1. Topology Representation Module
TGraiL extracts directed 2-hop subgraphs around a target relation. Unlike undirected approaches, preserving edge direction is crucial for capturing the correct semantics of relationships (e.g., distinguishing "Parent_of" from "Child_of"). The model uses Distance-based Relative Node Labeling (DRNL) to encode node positions relative to the head and tail entities, which are then processed by a Relational Graph Convolutional Network (RGCN).
2. Type Representation Module
A key innovation of TGraiL is its use of hierarchical entity types. In an inductive setting, specific types might not generalize well to unseen entities. TGraiL employs a weighted hierarchical encoding scheme that prioritizes abstract, high-level categories (e.g., "Person") over hyper-specific ones (e.g., "Quantum Physicist"). This ensures that even for a brand-new entity, its broad category provides a useful prior for relationship prediction.
Experimental Evaluation
The model was tested on inductive versions of WN18RR and FB15K-237, where training and test sets contain entirely disjoint entities. TGraiL consistently outperformed state-of-the-art baselines:
- WN18RR (V1): Achieved an AUC-PR of 96.10%, surpassing GraiL (94.32%).
- FB15K-237 (V1): Reached a Hits@10 of 64.63%, significantly better than rule-based methods like RuleN (49.76%).
Ablation studies confirmed that the inclusion of weighted hierarchical type information is critical for performance, especially when the graph topology is sparse.
Conclusion
TGraiL demonstrates that combining structural topology with semantic hierarchy significantly improves inductive link prediction. By leveraging abstract entity types as a "safety net," the model generalizes more effectively to unseen entities than purely structure-based methods. Future work will explore integrating global graph features to further enhance these representations.
Summary updated