[Paper Review] Hierarchical Relational Learning for Few-Shot Knowledge Graph Completion
This paper proposes HiRe, a hierarchical relational learning framework for few-shot knowledge graph completion that jointly models context-level, triplet-level, and entity-level relational information using contrastive learning, a transformer-based meta-relation learner, and MTransD for entity-level refinement. HiRe achieves state-of-the-art performance on benchmark datasets by effectively capturing multi-level relational dependencies in few-shot settings.
Knowledge graphs (KGs) are powerful in terms of their inference abilities, but are also notorious for their incompleteness and long-tail distribution of relations. To address these challenges and expand the coverage of KGs, few-shot KG completion aims to make predictions for triplets involving novel relations when only a few training triplets are provided as reference. Previous methods have focused on designing local neighbor aggregators to learn entity-level information and/or imposing a potentially invalid sequential dependency assumption at the triplet level to learn meta relation information. However, pairwise triplet-level interactions and context-level relational information have been largely overlooked for learning meta representations of few-shot relations. In this paper, we propose a hierarchical relational learning method (HiRe) for few-shot KG completion. By jointly capturing three levels of relational information (entity-level, triplet-level and context-level), HiRe can effectively learn and refine meta representations of few-shot relations, and thus generalize well to new unseen relations. Extensive experiments on benchmark datasets validate the superiority of HiRe over state-of-the-art methods. The code can be found in https://github.com/alexhw15/HiRe.git.
Motivation & Objective
- To address the limitations of existing few-shot KG completion methods that overlook context-level and triplet-level relational information.
- To improve generalization to novel relations by jointly modeling three levels of relational information: entity-level, triplet-level, and context-level.
- To overcome the sequential dependency assumption in prior methods by modeling permutation-invariant pairwise interactions among reference triplets.
- To enhance meta representation learning of few-shot relations through contrastive learning on contextualized triplets.
- To validate the effectiveness of each component via ablation studies and hyperparameter sensitivity analysis.
Proposed method
- HiRe employs a contrastive learning mechanism to model context-level relational information by distinguishing true contexts from false ones for each target triplet.
- It uses a transformer-based module to capture pairwise triplet-level interactions among reference triplets, enabling permutation-invariant meta-relation learning.
- Entity-level relational learning is refined via MTransD, which constrains entity and relation embeddings while accounting for entity and relation diversity.
- A MAML-based training strategy is adopted to optimize the model on each meta-task within a unified framework, enabling fast adaptation to new relations.
- The overall loss function combines margin loss and contrastive loss, balanced by a hyperparameter λ to ensure effective supervision.
- The model is trained end-to-end using a unified framework that integrates all three levels of relational learning.
Experimental results
Research questions
- RQ1Can jointly modeling context-level, triplet-level, and entity-level relational information improve few-shot knowledge graph completion?
- RQ2How effective is a transformer-based approach for capturing permutation-invariant pairwise interactions among few-shot reference triplets?
- RQ3To what extent does contrastive learning on triplet contexts enhance meta representation learning for novel relations?
- RQ4How do the individual components of HiRe—context-level, triplet-level, and entity-level learning—contribute to overall performance?
- RQ5What is the optimal configuration of hyperparameters N (number of false contexts) and λ (loss balance) for robust performance?
Key findings
- HiRe outperforms state-of-the-art methods on two benchmark datasets, demonstrating superior generalization in few-shot knowledge graph completion.
- Ablation studies show that removing the MRL component (transformer-based triplet-level learning) causes a 4% drop in MRR under 3-shot and 5.4% under 5-shot, highlighting its critical role.
- Removing context-level contrastive learning leads to a significant performance drop, validating the importance of contextual information in few-shot learning.
- Substituting MTransD with TransE results in a significant performance drop, confirming the necessity of entity-level refinement with MTransD.
- The optimal number of false contexts N is 1, as increasing N beyond 1 degrades performance due to premature convergence on the contrastive loss.
- The optimal hyperparameter λ is 0.05, balancing the margin and contrastive losses effectively, with performance declining when λ is too large.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.