Abstract
Recent work on knowledge graph completion (KGC) focused on learning embeddings of entities and relations in knowledge graphs. These embedding methods require that all test entities are observed at training time, resulting in a time-consuming retraining process for out-of-knowledge-graph (OOKG) entities. To address this issue, current inductive knowledge embedding methods employ graph neural networks (GNNs) to represent unseen entities by aggregating information of known neighbors. They face three important challenges: (i) data sparsity, (ii) the presence of complex patterns in knowledge graphs (e.g., inter-rule correlations), and (iii) the presence of interactions among rule mining, rule inference, and embedding. In this paper, we propose a virtual neighbor network with inter-rule correlations (VNC) that consists of three stages: (i) rule mining, (ii) rule inference, and (iii) embedding. In the rule mining process, to identify complex patterns in knowledge graphs, both logic rules and inter-rule correlations are extracted from knowledge graphs based on operations over relation embeddings. To reduce data sparsity, virtual neighbors for OOKG entities are predicted and assigned soft labels by optimizing a rule-constrained problem. We also devise an iterative framework to capture the underlying relations between rule learning and embedding learning. In our experiments, results on both link prediction and triple classification tasks show that the proposed VNC framework achieves state-of-the-art performance on four widely-used knowledge graphs. Further analysis reveals that VNC is robust to the proportion of unseen entities and effectively mitigates data sparsity.
Introduction
Knowledge Graphs (KGs) such as DBpedia or Freebase are dynamic, evolving daily as new entities emerge. Traditional Knowledge Graph Embedding (KGE) methods are typically transductive, requiring all entities to be present during training. When a new entity arrives—an "Out-of-Knowledge-Graph" (OOKG) entity—these models often necessitate a full, time-consuming retraining process.
Existing inductive methods attempt to mitigate this by using Graph Neural Networks (GNNs) to represent new entities based on their existing neighbors. However, they encounter two significant hurdles:
- Data Sparsity: New entities often have very few connections, providing insufficient context for GNNs.
- Static Logic: While some models use logic rules to fill gaps, they often treat these rules as fixed and fail to capture "inter-rule correlations"—complex patterns where the structure of one rule informs another.
The VNC Framework
To address these challenges, we propose the Virtual Neighbor network with inter-rule Correlations (VNC). VNC is an iterative framework that integrates rule mining and representation learning to handle OOKG entities effectively.
The framework consists of three main stages:
- Rule Mining: The model extracts standard logic rules (Horn clauses) and inter-rule correlations. It leverages relation embeddings to calculate confidence scores for these rules.
- Rule Inference (Virtual Neighbors): To combat data sparsity, VNC uses mined rules to predict "virtual neighbors" (VNs) for OOKG entities. Instead of binary labels, it assigns soft labels to these predicted triples, allowing the model to express uncertainty and facilitating gradient-based learning.
- Embedding: The KG, augmented by virtual neighbors, is processed by a GNN-based encoder. This encoder utilizes structure-aware layers to understand graph topology and query-aware layers to focus on neighbors relevant to specific prediction tasks.
Crucially, these stages are iterative: improved embeddings lead to more accurate rule mining, which generates better virtual neighbors, further refining the embeddings.
Inter-Rule Correlations
A key innovation of VNC is the formalization of inter-rule correlations. By identifying that different segments of a KG often follow similar structural "blueprints," the model can transfer knowledge from dense areas of the graph to the sparse neighborhoods of new entities.
For example, as shown in the figure above, an analogy can be drawn between the solar system and an atom system. If the model understands the rules governing planets orbiting a sun, it can infer correlated rules for electrons orbiting a nucleus, even if the latter data is sparse.
Experimental Results
VNC was evaluated on standard benchmarks adapted for the inductive setting, including YAGO37, FB15K, and WN11.
- Link Prediction: On FB15K (Subject-10), VNC achieved an MRR of 54.3 and Hits@10 of 75.9, significantly outperforming the previous state-of-the-art (VN network at 46.3 MRR).
- Triple Classification: On WN11, VNC achieved the highest accuracy across all test scenarios, maintaining over 90% accuracy in several configurations.
- Robustness: As the ratio of unseen entities increased, VNC’s performance decayed much more slowly than competitors, demonstrating the effectiveness of the virtual neighbor strategy in mitigating sparsity.
Conclusion
VNC demonstrates that rule mining and representation learning are mutually reinforcing. By iteratively refining both, VNC achieves state-of-the-art performance for OOKG entities. Future work will explore handling unseen relations and identifying even more complex graph patterns beyond current inter-rule correlations.
Summary updated