Introduction
Knowledge Graphs (KGs) such as Wikidata, Freebase, and NELL serve as critical infrastructure for modern information retrieval, powering everything from semantic search to recommendation engines. Despite their scale, these graphs are inherently incomplete. A significant challenge in maintaining them is Few-Shot Relational Learning (FSRL), where a model must predict missing links for a new relation given only a handful of training examples. While traditional meta-learning has made strides in this area, existing methods often struggle with the inherent diversity and structural complexity of relational data.
The Problem: Isolation and Rigidity
Current meta-learning approaches for FSRL typically fall into two traps. First is the isolation pitfall, where models treat every new relation as an entirely independent task. This ignores the fact that many relations share underlying semantic or structural patterns (e.g., family-related predicates). Second is the rigidity pitfall, where models rely on a single global initialization for all tasks. Because KG relations vary significantly—ranging from simple one-to-one mappings to complex many-to-many (N-N) interactions—a "one-size-fits-all" starting point often fails to capture the specific nuances of a unique task.
The MoEMeta Framework
To address these limitations, we present MoEMeta, a framework that disentangles globally shared relational knowledge from task-specific local contexts. The architecture is built upon three primary pillars:
1. Attentive Neighbor Aggregation
Before reasoning about a specific triplet, MoEMeta enriches entity representations by examining their local graph neighborhood. Using a gating mechanism, the model identifies and aggregates the most informative 1-hop neighbors. This ensures that the model understands the immediate structural context of the entities involved before attempting to predict a relationship.
2. MoE-based Meta-Knowledge Learning
This component serves as the model's "global engine." Rather than utilizing a static set of parameters, MoEMeta employs a Mixture-of-Experts (MoE) architecture. For any given task, a gating network selects the top-$N$ most relevant experts from a pool to generate a "relational prototype." This allows the model to dynamically compose knowledge by reusing logic from previously encountered, semantically similar relations.
3. Task-Tailored Local Adaptation
To provide the flexibility required for diverse relations, MoEMeta introduces a "local engine." For each specific task, the model initializes lightweight projection vectors. During the meta-learning inner loop, these vectors are fine-tuned to project embeddings into a task-specific subspace. This adaptation is particularly crucial for handling N-N relations, where the tail entity may be highly ambiguous and requires specific contextual narrowing.
Experimental Evaluation
MoEMeta was evaluated on three standard KG benchmarks: Nell-One, Wiki-One, and FB15K-One. The model was tested across 1-shot, 3-shot, and 5-shot scenarios against state-of-the-art baselines including GANA, HiRe, and RelAdapter.
Performance Highlights
MoEMeta consistently established new state-of-the-art results across all datasets:
- Nell-One (1-shot): Achieved a Mean Reciprocal Rank (MRR) of 0.322, a substantial improvement over the previous best of 0.288.
- FB15K-One (3-shot): Reached an MRR of 0.423, outperforming RelAdapter’s 0.405.
Ablation studies confirmed the importance of the MoE component; its removal resulted in performance drops of up to 13.6%. This underscores that capturing shared global patterns through specialized experts is the most critical factor in the model's success.
Discussion and Insights
The success of MoEMeta lies in its ability to balance generalization and adaptation. By using MoE to handle broad relational patterns and projection vectors for local tweaks, the model avoids the common "jack of all trades, master of none" issue found in rigid meta-learning architectures. Visual analysis of the expert selection process reveals that semantically related tasks consistently activate the same subsets of experts, confirming that the model effectively learns and retrieves shared relational logic.
Furthermore, the model remains computationally efficient. Despite the sophisticated MoE structure, training times are comparable to simpler models like MetaR, and inference is performed in milliseconds, making it suitable for real-world KG applications.
Conclusion and Future Work
MoEMeta demonstrates that disentangling global and local knowledge is a powerful strategy for few-shot reasoning in Knowledge Graphs. While the model currently relies on 1-hop neighbor aggregation, future iterations could explore multi-hop reasoning or path-based logic to further improve performance on sparse graphs. Additionally, scaling the expert pool to accommodate the hundreds of thousands of relations found in massive, production-scale KGs remains a promising avenue for future research.
Summary updated