Abstract
Federated Knowledge Graph Embedding (FKGE) enables collaborative model training across siloed datasets while preserving data privacy. However, achieving high accuracy typically requires high-dimensional embeddings, which impose significant storage and communication burdens on edge devices. This paper introduces FedKD, a lightweight framework that utilizes knowledge distillation to compress FKGE models. By employing a novel Adaptive Asymmetric Temperature Scaling (ATS) mechanism and dynamic weight adjustment, FedKD allows a 128-dimensional student model to achieve performance comparable to a 256-dimensional teacher model. Experimental results across multiple benchmarks demonstrate that FedKD reduces communication overhead by 50% with negligible loss in accuracy, and in some cases, even improves performance over the teacher model.
Introduction
Knowledge Graphs (KGs) are fundamental to modern AI, representing facts as triples (head entity, relation, tail entity). They power critical applications ranging from search engines to medical decision support. In the current regulatory landscape, characterized by frameworks like GDPR, data is often distributed across multiple organizations that cannot share raw information due to privacy concerns. Federated Knowledge Graph Embedding (FKGE) addresses this by allowing decentralized training without sharing raw data.
Despite its benefits, FKGE faces a major "dimension dilemma." High-dimensional embeddings (e.g., 256 dimensions) are necessary for state-of-the-art accuracy but are impractical for resource-constrained mobile and edge devices. These large models increase storage requirements, slow down inference, and create a communication bottleneck during the frequent model updates required by federated learning. Existing compression techniques often require multi-stage training that is too communication-intensive for federated settings.
Methodology
The researchers propose FedKD, a distillation-based framework designed to bridge the gap between high performance and low communication costs. FedKD integrates a pre-trained, high-dimensional Teacher model with a smaller, low-dimensional Student model.
The framework's core innovation is Adaptive Asymmetric Temperature Scaling (ATS). In traditional knowledge distillation, a global temperature parameter is used to soften the teacher's output distribution. However, teachers are often over-confident in their predictions for positive triples, resulting in a "spiky" distribution that hides the "dark knowledge" contained in negative samples. ATS uses a lightweight Multi-Layer Perceptron (MLP) to adaptively learn a specific temperature for each positive triple, effectively flattening the distribution and forcing the student to learn more nuanced relationships from the teacher's relative rankings of negative samples.
Additionally, FedKD employs Dynamic Weight Adjustment. During the initial phases of training, the student model prioritizes "hard labels" from the ground truth data. As training matures, the focus shifts toward the "soft labels" provided by the teacher. This curriculum-like approach ensures a stable and efficient optimization process. Crucially, FedKD performs distillation locally on the client side, requiring no additional communication rounds with the central server.
Experimental Setup
The effectiveness of FedKD was evaluated using three benchmark datasets derived from FB15k-237: FB-R3, FB-R5, and FB-R10, representing distributions across 3, 5, and 10 clients, respectively. The framework was tested across three popular KGE scoring functions: TransE, RotatE, and ComplEx.
Key Results
The experimental results highlight the efficiency of the FedKD approach. The student model (FedEKD, 128-dim) was compared against a high-dimensional teacher (FedEH, 256-dim) and a standard low-dimensional baseline (FedEL, 128-dim).
As shown in the table above, FedEKD consistently retains 99% to 100% of the teacher's performance across various metrics. Notably, on the FB-R10 dataset using the ComplEx method, FedEKD achieved an MRR of 0.2956, a significant improvement over the 0.2453 achieved by the FedEL baseline—a gain of over 20%. In several instances, such as Hits@1 on FB-R5 with RotatE, the 128-dimensional student actually outperformed its 256-dimensional teacher, suggesting that the distillation process provides a beneficial regularizing effect.
Discussion and Conclusion
The success of FedKD demonstrates that the information in high-dimensional embedding spaces is often redundant and can be effectively distilled into lower dimensions without sacrificing accuracy. The ATS mechanism is pivotal in this process, overcoming the "over-confidence trap" of teacher models to reveal deeper semantic structures.
While FedKD offers a robust solution for client-server federated architectures, future work could extend these principles to decentralized, peer-to-peer environments. Additionally, exploring alternative confidence measures for the ATS mechanism, such as distribution entropy, might further refine the distillation process. By significantly reducing the communication and storage footprint of FKGE, FedKD paves the way for more efficient and scalable privacy-preserving knowledge graph applications on the edge.
Summary updated