Efficient Federated Learning on Knowledge Graphs via Privacy-preserving Relation Embedding Aggregation

Kai Zhang, Yu Wang, Hongyi Wang, Lifu Huang, Carl Yang, Xun Chen, Lichao Sun

Introduction

Knowledge Graphs (KGs) are essential for modern information retrieval and recommendation systems. However, KGs are frequently distributed across different organizations, creating data silos. Federated Learning (FL) offers a solution by allowing collaborative model training without direct data sharing. While previous state-of-the-art frameworks like FedE focused on aggregating entity embeddings, they introduced significant privacy risks and communication overhead.

This paper introduces FEDR (Federated Relation embedding aggregation), a framework that shifts the focus from entities to relations. By aggregating only relation embeddings, FEDR enhances privacy, reduces communication costs by over 99%, and maintains high predictive performance.

The Privacy-Efficiency Trade-off in KG Federated Learning

Existing methods like FedE aggregate entity embeddings across clients. The authors identify three major drawbacks to this approach:

  1. Privacy Vulnerability: Sharing entity embeddings makes the system susceptible to reconstruction attacks. A malicious server can infer private triplets by analyzing shared embeddings.
  2. Sensitivity: Entity names (e.g., specific users or patients) are often more sensitive than the relations between them (e.g., "purchased" or "diagnosed with").
  3. Communication Bottleneck: KGs typically contain millions of entities but only a small number of relations. Syncing massive entity tables is computationally expensive and slow.

The FEDR Framework

FEDR addresses these issues by keeping entity embeddings strictly local and only sharing relation embeddings with the central aggregator.

Comparison of FedE (entity aggregation) and FEDR (relation aggregation) architectures.

The core innovation lies in the Asymmetry of Information. In a KG triplet $(h, r, t)$, the relation $r$ is a "many-to-many" mapping. While knowing two entities can often pinpoint a specific relation, knowing a relation leaves a vast number of possible entity pairs, making graph reconstruction mathematically difficult.

Technical Components

  • Private Set Union (PSU): Aligns the set of unique relations across clients at the start of training without revealing client-specific relation ownership.
  • Secure Aggregation (SecAgg): Uses masking techniques to ensure the server only sees the aggregate sum of updates, preventing the inspection of individual client contributions.
  • Relation Aggregation: Clients send updates for the relatively small relation embedding table, drastically reducing the data transferred per round.

Experimental Evaluation

The authors evaluated FEDR using three benchmark datasets: FB15k-237 (general knowledge), WN18RR (lexical relations), and DDB14 (medical domain). They tested the framework across five Knowledge Graph Embedding (KGE) models: TransE, RotatE, DistMult, ComplEx, and the GNN-based NoGE.

Hits@10 performance across different datasets and KGE models as the number of clients increases.

Key Results

  • Privacy Protection: In simulated reconstruction attacks, FedE leaked approximately 97% of entities. FEDR reduced this leakage by over 98% even without encryption. When combined with SecAgg, the leakage rate dropped to zero.
  • Predictive Performance: FEDR achieved competitive Mean Reciprocal Rank (MRR) compared to FedE. For models like DistMult and ComplEx, FEDR consistently outperformed both local training and the entity-sharing baseline.
  • Communication Efficiency: By focusing on relations, FEDR reduces the data transferred per round by approximately 99.9% in large-scale KGs. Furthermore, FEDR reached target accuracy levels in significantly fewer rounds; for example, on the DDB14 dataset, FEDR-DistMult converged in 10 rounds compared to 45 for FedE.

Conclusion and Future Work

FEDR demonstrates that aggregating relation embeddings is a superior strategy for federated KG learning, offering a robust defense against privacy attacks while significantly improving communication efficiency.

Future research will focus on handling highly non-IID data distributions, where clients have minimal overlap in their relation sets. Additionally, exploring heterogeneous environments where different clients utilize different KGE models remains an open challenge. Improving the memory efficiency of complex models like GNNs within the federated framework is also a priority for scaling to even larger knowledge graphs.

Summary updated

BibTeX
@inproceedings{zhang2022efficient,
  author = {Kai Zhang and Yu Wang and Hongyi Wang and Lifu Huang and Carl Yang and Xun Chen and Lichao Sun},
  title = {{Efficient Federated Learning on Knowledge Graphs via Privacy-preserving Relation Embedding Aggregation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.43},
}
Figure