Meta-Learning Based Knowledge Extrapolation for Knowledge Graphs in the Federated Setting

Mingyang Chen, Wen Zhang, Zhen Yao, Xiangnan Chen, Mengxiao Ding, Fei Huang, Huajun Chen

Abstract

Knowledge Graphs (KGs) are fundamental to modern information retrieval and recommendation systems, yet they are inherently incomplete and dynamic. Traditional Knowledge Graph Embedding (KGE) methods operate under a closed-world assumption, failing to generalize to unseen entities and relations. This challenge is exacerbated in federated settings where data privacy prevents the centralization of local KGs. This paper presents MaKEr, a meta-learning framework designed for knowledge extrapolation. By leveraging structural patterns through a Relation Position Graph (RPG) and a specialized Graph Neural Network (GNN), MaKEr enables link prediction for entirely new entities and relations in decentralized environments without compromising data privacy.

Introduction

Knowledge Graphs—structured as (head, relation, tail) triples—serve as the backbone for various AI applications. However, real-world KGs are rarely static. New entities (e.g., new users) and relations (e.g., new interaction types) emerge constantly, particularly on edge devices like smartphones. Current research faces two primary obstacles: the Extrapolation Gap, where models cannot handle components not seen during training, and the Federated Constraint, where privacy regulations prevent the merging of local, emerging KGs with a central server.

To address these, we introduce MaKEr (Meta-Learning Based Knowledge Extrapolation). MaKEr shifts the focus from learning static embeddings to "learning how to learn" the structural representations of new graph components.

Methodology

MaKEr is built upon three integrated modules designed to extract features from the local topology of a graph rather than relying on pre-defined entity or relation IDs.

1. Relation Feature Representation

To handle unseen relations, MaKEr constructs a Relation Position Graph (RPG). In this graph, relations themselves act as nodes. Edges are established between relations based on their relative positions in the training data (for instance, if two relations frequently share the same head entity). This allows the model to estimate a feature vector for a brand-new relation by observing its structural neighbors within the RPG.

2. Entity Feature Representation

Similarly, new entities are represented by aggregating the features of the relations they are associated with. By focusing on the types of interactions an entity participates in, the model can infer its properties even if the entity itself is novel.

3. Knowledge Extrapolation GNN

These initial features are processed by a Knowledge Extrapolation Graph Neural Network, an evolution of the CompGCN architecture. The GNN refines these features into final embeddings. These embeddings are then compatible with standard scoring functions such as TransE or RotatE to perform link prediction.

Meta-Learning Strategy

The model is trained using a meta-learning approach. By sampling "tasks" from an existing KG that simulate the appearance of unseen components, the model is forced to predict missing links based purely on local neighborhood structures. This training regime ensures that at test time, the model can generalize to truly unseen data in a federated setting.

Experimental Setup

To evaluate MaKEr’s extrapolation capabilities, the researchers developed two new benchmarks:

  • FB-Ext: Derived from FB15k-237 (Freebase).
  • NELL-Ext: Derived from NELL-995.

In these datasets, the test sets consist of entities and relations entirely absent from the training phase. Queries were categorized into three difficulty levels: unseen entities (u_ent), unseen relations (u_rel), and queries where both components were unseen (u_both).

Key Results and Insights

MaKEr demonstrates significant improvements over state-of-the-art inductive models like GraIL and INDIGO, which typically struggle with unseen relations.

  • Superior Extrapolation: On the FB-Ext dataset, MaKEr achieved a Mean Reciprocal Rank (MRR) of 27.26% for the most challenging u_both queries. Traditional inductive methods, which are not designed for unseen relations, were largely unable to perform this task.
  • High Performance on NELL-Ext: When paired with the RotatE scoring function, MaKEr reached an MRR of 77.09% on unseen entities in the NELL-Ext dataset.
  • Structural Signal: The results confirm that the topology of the Relation Position Graph provides a sufficient signal for generating functional embeddings, even in the absence of textual descriptions or metadata.
  • Ablation Studies: Removing the GNN or the meta-learning framework led to a drastic drop in performance, confirming that both structural aggregation and the meta-training strategy are essential for effective extrapolation.

Discussion and Future Work

While MaKEr represents a significant step forward for federated knowledge graphs, it relies purely on structural information. Future iterations could incorporate literal information (such as entity names or descriptions) to further enhance accuracy. Additionally, the model’s performance is currently sensitive to sparsity; entities with very few "support triples" are harder to represent accurately. Improving the model's robustness in extremely sparse environments and increasing the explainability of the feature representation modules remain key areas for future research.

Summary updated

BibTeX
@inproceedings{chen2022meta,
  author = {Mingyang Chen and Wen Zhang and Zhen Yao and Xiangnan Chen and Mengxiao Ding and Fei Huang and Huajun Chen},
  title = {{Meta-Learning Based Knowledge Extrapolation for Knowledge Graphs in the Federated Setting}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/273},
}
Figure