Abstract
Knowledge Graph (KG) completion is often hindered by the long-tail problem, where most relations possess only a few triplets. While few-shot learning models have been developed to address this, they typically treat relations as independent tasks, ignoring semantic and structural correlations. This paper presents TransNet, a framework designed to break the "independent task" assumption by leveraging cross-task knowledge transfer. By combining edge-based graph kernels for task similarity with an adaptive meta-learning strategy, TransNet achieves state-of-the-art performance on benchmark datasets, demonstrating that knowledge from frequent relations can effectively bolster the learning of rare ones.
Introduction
Modern AI applications rely heavily on Knowledge Graphs like Wikidata or NELL, yet these graphs are frequently incomplete. A primary challenge in KG completion is the scarcity of data for the vast majority of relations. Existing few-shot models attempt to learn these rare relations from minimal examples but often fail to exploit the inherent relationships between different tasks. For instance, understanding the "nationality" relation should logically assist in predicting a "birthplace" relation. TransNet addresses this by quantifying task similarities and transferring relevant knowledge without introducing noise from irrelevant tasks.
Methodology
TransNet introduces several novel components to facilitate effective cross-task knowledge sharing:
- Edge-based Task Similarity: Unlike standard Graph Neural Networks that focus on nodes, TransNet adapts the Weisfeiler-Lehman (WL) subtree test to edges. This allows the model to mathematically represent the structural patterns surrounding relations and measure similarity between different few-shot tasks.
- Transformer-based Meta Relation Learner (MRL): A Transformer architecture captures complex interactions between head and tail entities in the support set, ensuring a robust relation representation that is invariant to example ordering.
- Knowledge Merge Module: This module acts as the transfer engine, using an attention mechanism to update a target relation's embedding by aggregating information from similar "neighboring" tasks.
- SkipTransD Scoring: Building on the TransD model, this component utilizes skip connections to project entities into relation-specific spaces while preserving essential original features.
- Task-Conditioned Meta-Learning: TransNet employs an adaptive scaling factor ($\alpha_r$) to dynamically adjust the meta-learning step size based on the specific difficulty and characteristics of each task.
Experimental Setup
The model was evaluated on two primary benchmarks for few-shot KG completion:
- NELL-One: A subset of the Never-Ending Language Learning dataset, containing 67 tasks.
- Wiki-One: A larger, more diverse subset of Wikidata containing 183 tasks.
Results and Analysis
TransNet consistently outperformed state-of-the-art baselines, including HiRe and MetaR, across both datasets and shot settings.
Key Insights
- Structural Similarity: Treating relations as structural entities via the edge-based WL test successfully bridged the gap between different relations sharing similar graph topologies.
- The Warm-up Phase: On the diverse Wiki-One dataset, the authors found that a "warm-up" phase—learning basic representations before attempting transfer—was crucial to filter out noise and prevent negative transfer.
- Ablation Study: Removing the transfer component led to a significant performance drop (e.g., MRR falling from 0.309 to 0.285 on NELL-One), confirming that cross-task knowledge sharing is a critical driver of the model's success.
Conclusion and Future Work
TransNet demonstrates the power of leveraging inter-task correlations for few-shot KG completion. While the model shows significant gains, its generalizability to entirely different domains (e.g., moving from social science to specialized medical relations) remains a subject for future study. Additionally, the model's reliance on existing graph structures suggests that performance may be limited in extremely sparse KGs. Future research will explore integrating large-scale pre-trained entity embeddings to further enhance generalizability.
Summary updated