Abstract
Knowledge Graphs (KGs) are fundamental for many AI tasks but often suffer from incompleteness. Traditional KG completion methods require extensive training data for each relation, failing to generalize to the "long tail" of relations with only a few known instances. We present Few-Shot Relation Learning (FSRL), a framework designed to predict new facts for relations with limited reference examples. FSRL utilizes a relation-aware neighbor encoder to capture entity semantics and a recurrent autoencoder to aggregate information from multiple few-shot references. Experimental results on NELL and Wikidata benchmarks demonstrate that FSRL significantly outperforms state-of-the-art baselines in few-shot scenarios.
Introduction
Knowledge Graphs like Wikidata and NELL represent vast networks of relational facts. Despite their scale, they are inherently incomplete. While existing link prediction algorithms perform well on frequent relations, they struggle with the "long-tail" distribution where most relations have very few associated entity pairs.
Previous attempts at few-shot KG completion faced two primary limitations:
- Neighbor Blindness: They often treated all neighbors of an entity as equally relevant, failing to distinguish informative connections from noise.
- Inefficient Aggregation: They typically relied on simple averaging to combine information from multiple reference examples, which ignores the complex interactions between these examples.
Methodology: The FSRL Framework
The FSRL model addresses these challenges through three integrated neural modules:
1. Relation-Aware Heterogeneous Neighbor Encoder ($f_\theta$)
To generate robust entity embeddings, FSRL employs an attention mechanism that considers the specific relations connecting an entity to its neighbors. By weighting neighbors based on their relational relevance, the model can prioritize "defining" connections (e.g., a company's CEO) over less informative ones (e.g., a list of competitors).
2. Recurrent Autoencoder Aggregator ($f_\epsilon$)
Instead of simple pooling, FSRL uses a recurrent autoencoder to aggregate the "few-shot" reference set. This module models the interactions between reference pairs, accumulating a more comprehensive representation of the target relation.
3. Recurrent Matching Network ($f_\mu$)
To evaluate a query pair against the aggregated reference set, the model uses a multi-step matching process. An LSTM-based architecture iteratively compares the query to the reference representation, producing a refined similarity score for ranking.
Experimental Evaluation
The authors evaluated FSRL on two public benchmarks: NELL and Wiki (Wikidata). These datasets were specifically filtered to focus on few-shot relations (those with 50 to 500 triples).
Key Results
FSRL demonstrated substantial improvements over traditional relational embedding methods (e.g., TransE, ComplEx) and the previous state-of-the-art few-shot model, GMatching.
- Performance Gains: On NELL, FSRL achieved up to a 34% improvement in Mean Reciprocal Rank (MRR) over the best baseline.
- Metric Consistency: The model showed superior performance across Hits@1, Hits@5, and Hits@10 metrics on both datasets.
- Ablation Studies: Each module (neighbor encoder, aggregator, and matching network) was shown to contribute significantly to the overall performance.
Conclusion and Future Work
FSRL represents a significant advancement in few-shot knowledge graph completion by effectively leveraging graph structure and sophisticated aggregation techniques. Future research directions include incorporating external textual context, exploring alternative meta-learning optimization strategies like MAML, and extending the model to handle entirely unseen entities at test time.
Summary updated