TL;DR
Knowledge graphs (KGs) are powerful tools for representing relational data, but they are often incomplete. While pooling data from multiple sources to improve them is an obvious solution, it is frequently blocked by strict data privacy concerns. This paper introduces FedE, a federated learning framework for Knowledge Graph Embedding (KGE) that allows multiple clients to collaboratively learn high-quality global entity representations without ever sharing their private relational data.
What Problem Does This Paper Address?
In real-world applications like finance and healthcare, entities (e.g., a specific person or company) often exist across multiple distinct Knowledge Graphs held by different organizations. For instance, a user might have different financial footprints across three different banks.
Combining these KGs would vastly improve Knowledge Graph Completion (KGC)—the task of predicting missing links or facts. However, strict data privacy regulations (like GDPR) and commercial sensitivity prevent organizations from pooling their raw data. The authors tackle the challenge of "Multi-Source KG" completion: How can multiple clients collaboratively train a KGE model to benefit from each other's data without exposing their private relations and triples?
Methods
The authors propose FedE, a Federated Knowledge Graph Embedding framework. It adapts standard federated learning (like FedAvg) to the unique structure of KGs.
- Client-Server Architecture: Each client holds its own private KG (relations and triples). The central server only knows about the entities (nodes) and maintains a global entity embedding table.
- Server Aggregation: The server sends global entity embeddings to a subset of clients. After clients train locally, the server aggregates the updated entity embeddings using a weighted average based on which entities exist in which clients. Permutation matrices are used to map local entity IDs to the global table securely.
- Client Updating: Clients update both the received entity embeddings and their own strictly private relation embeddings. They do this using standard KGE scoring functions (the framework is agnostic and supports TransE, DistMult, ComplEx, and RotatE) and self-adversarial negative sampling.
- Model Fusion: To get the best of both worlds, clients use a linear classifier to fuse the scores from the federated model with scores from a model trained purely on their local, isolated data.
What's new? Applying federated learning specifically to KGE by decoupling shared entity embeddings from private relation embeddings and triples, ensuring that sensitive graph structures cannot be inferred by the server or other clients.
Datasets
Because standard federated KG benchmarks did not exist, the authors created new datasets derived from two popular KGE benchmarks: FB15k-237 and NELL-995.
They distributed triples into different clients based on randomly selected relations to simulate the federated setting. The newly introduced datasets are:
- FB15k-237-Fed3, -Fed5, -Fed10 (split across 3, 5, and 10 clients respectively)
- NELL-995-Fed3 (split across 3 clients)
Key Insights and Ideas
- Entity sharing is sufficient for knowledge transfer: By only sharing entity embeddings and keeping relation embeddings strictly local, clients can indirectly benefit from the structural knowledge of other graphs without exposing the specific nature of their links.
- Privacy doesn't have to mean a performance penalty: Surprisingly, FedE not only beats models trained on isolated local data but frequently outperforms models trained on the entire pooled dataset. This suggests that the federated architecture might act as a form of beneficial regularization, preventing the model from being overwhelmed by heterogeneous relations.
- Local + Global = Better: The model fusion technique proves that local-only models and federated models learn complementary features. Combining them yields a steady performance boost across the board.
- Computation vs. Convergence trade-off: Increasing local computation (more local epochs, smaller batch sizes) speeds up the convergence rate but can actually degrade the final model performance. This highlights the need to carefully tune local training dynamics in federated graph settings.
Key Results
- Significant gains over isolated training: Compared to the "Single" setting (training only on local data), FedE using the RotatE model improved Mean Reciprocal Rank (MRR) by an average of 5.7% on FB15k-237-Fed3 and a massive 14.2% on NELL-995-Fed3.
- Beating centralized training: FedE consistently outperformed the "Entire" setting (where all data is pooled together, violating privacy) in most cases. For example, on NELL-995-Fed3 (Client 1), FedE achieved an MRR of 0.4843 compared to Entire's 0.4520 (using DistMult).
- Scalability: The framework remains highly effective even as the number of clients increases. FedE maintained strong performance gains when scaling from 3 to 10 clients on the FB15k-237 dataset.
- Parallelism helps: Increasing the fraction of clients participating in each communication round (multi-client parallelism) significantly boosted the convergence rate.
Limitations and Future Work
While the paper does not feature a dedicated "Limitations" section, a few constraints are apparent from the text:
- Communication Overhead: The authors note that the convergence rate impacts communication costs between the server and clients. Because entire entity embedding tables must be transmitted back and forth, this could become a bottleneck for massive, industry-scale KGs.
- Entity Overlap Assumption: The framework relies heavily on the assumption that clients have overlapping entity sets. If KGs are completely disjoint, FedE has no mechanism to transfer knowledge.
- Future Directions: While not explicitly stated, the success of FedE opens the door for exploring more complex Graph Neural Network (GNN) architectures in federated settings, as well as developing methods to optimize the communication efficiency of transmitting large embedding tables.
Summary updated