Abstract
Knowledge Graph Embedding (KGE) models typically rely on inductive inference, effectively "memorizing" patterns in a closed-book fashion to predict missing links. However, many triples in Knowledge Graphs (KGs) are "hard" because they do not follow frequent patterns, leading to poor predictive performance. This paper introduces AnKGE (Analogical Inference Enhanced Knowledge Graph Embedding), a self-supervised framework that enables analogical reasoning—an "open-book" approach that leverages similar entities, relations, and triples to refine predictions. AnKGE is model-agnostic and consistently improves performance across various base architectures, achieving state-of-the-art results on benchmark datasets.
Introduction
Knowledge Graphs (KGs) represent facts as triples: (head entity, relation, tail entity), such as (Steve Jobs, founded, Apple Inc.). Due to the inherent incompleteness of KGs, researchers employ Knowledge Graph Embeddings (KGEs) to infer missing links. Most existing KGE models rely on inductive inference, which the authors liken to a "closed-book exam" where the model must rely solely on internal patterns learned during training.
This approach struggles with infrequent or complex triples. To address this, the authors propose a shift toward analogical inference. By treating link prediction as an "open-book exam," a model can look for "analogical objects" to infer missing information. For instance, if a model is unsure who co-founded Apple, it might find an analogy in the relationship between other tech founders and their respective companies to narrow down the correct answer.
The AnKGE Framework
AnKGE is designed as a general framework that can be integrated into well-trained base models like TransE, RotatE, or HAKE. The architecture consists of three primary stages that transform standard embeddings into analogy-aware representations.
1. Analogical Object Retriever
For any given triple, the system retrieves analogical objects at three distinct levels:
- Entity-level: Identifies similar entities (e.g., "Larry Page" as an analogy for "Sergey Brin").
- Relation-level: Identifies similar relations (e.g., "founder" being analogous to "board member").
- Triple-level: Identifies similar (head, relation) pairs.
Crucially, the retriever utilizes the base KGE model's own score function to identify these objects, requiring no additional manual labeling or external data.
2. Analogy Function
The framework trains a projection function to map original embeddings to "analogical embeddings." This is achieved through a self-supervised loss that encourages the projected embedding to align with the weighted average of the retrieved analogical objects.
3. Adaptive Scoring
During the prediction phase, AnKGE interpolates the base model's score with the newly generated "analogy score." The framework employs adaptive weights based on the local density of the training data. If a specific entity or relation is well-represented in the training set, the model places higher trust in the analogical inference.
Experimental Evaluation
The model was evaluated on two gold-standard benchmarks: FB15k-237 (world facts with rich relational patterns) and WN18RR (hierarchical lexical data).
As shown in the experimental results, AnKGE consistently improves the performance of every base model tested. Notably, AnKGE-HAKE achieved an MRR (Mean Reciprocal Rank) of 0.385 on FB15k-237, a significant improvement over the base HAKE model's 0.349. On WN18RR, the framework improved the MRR of the base RotatE model from 0.473 to 0.480, demonstrating its effectiveness even in datasets with fewer relations.
Discussion and Insights
AnKGE acts as a refinement layer, providing a "second opinion" that is particularly effective at re-ranking hard-to-predict triples. By leveraging self-supervision, the framework improves itself without human-annotated similarity scores. Qualitative analysis revealed that for many difficult cases, AnKGE could move a correct answer from a low rank (e.g., 64th) to the top spot by identifying similar relational contexts.
Limitations
Despite its success, AnKGE faces challenges in environments with relation scarcity. On datasets like WN18RR, which contains only 11 relations, the benefit of relation-level analogy is diminished. Furthermore, the framework's performance is inherently tied to the quality of the base model; poor initial embeddings lead to inaccurate analogies.
Conclusion
AnKGE demonstrates that analogical reasoning is a powerful, missing component in traditional Knowledge Graph Embedding. By shifting from pure memorization to a referential, analogical approach, the framework provides a robust and model-agnostic method for improving link prediction accuracy and efficiency.
Summary updated