Parameterized Knowledge Transfer for Personalized Federated Learning

Jie Zhang, Song Guo, Xiaosong Ma, Haozhao Wang, Wenchao Xu, Feijie Wu

Abstract

Federated Learning (FL) enables collaborative model training while preserving data privacy. However, practical deployment is often hindered by statistical heterogeneity in client data (Non-IID) and hardware heterogeneity across edge devices, which necessitates support for diverse model architectures. This paper introduces Parameterized Knowledge Transfer for Personalized Federated Learning (KT-pFL), a novel framework that decouples model architecture from the collaboration process. By leveraging knowledge distillation on a shared public dataset and a learnable "knowledge coefficient matrix," KT-pFL allows clients to maintain unique, personalized models. Experimental results demonstrate that KT-pFL significantly outperforms state-of-the-art methods in accuracy while reducing communication overhead by orders of magnitude.

Introduction

Standard Federated Learning algorithms, such as FedAvg, typically assume that client data is independent and identically distributed (IID) and that all clients utilize the exact same model architecture. In real-world edge networks, these assumptions rarely hold. Devices range from resource-constrained IoT sensors to powerful workstations, and data distributions are often highly skewed.

While Personalized Federated Learning (pFL) has emerged to address data heterogeneity, most existing methods still require model homogeneity because they rely on the aggregation of model parameters. This constraint is a significant bottleneck for heterogeneous edge environments. Existing attempts to use Knowledge Distillation (KD) to bridge this gap often fail to provide true personalization, as they typically average client predictions into a single global teacher model.

The KT-pFL Framework

KT-pFL addresses these challenges by shifting the focus from parameter sharing to knowledge transfer via soft predictions. Instead of sharing model weights, clients share the output probabilities (soft predictions) generated by their local models on a shared, unlabeled public dataset.

Overview of the KT-pFL framework showing the interaction between the server and heterogeneous clients through soft predictions and a learnable coefficient matrix.

The framework introduces several key innovations:

  1. Personalized Soft Predictions: The server maintains a unique, personalized aggregated prediction for each client rather than a single global average.
  2. Knowledge Coefficient Matrix: A parameterized matrix dictates the influence of each client's predictions on others. This matrix is not static; it is optimized via gradient descent alongside the local models.
  3. Simultaneous Optimization: By learning the collaboration weights, the system adaptively discovers and groups clients with similar data distributions, allowing for more effective knowledge transfer.

Experimental Evaluation

The authors evaluated KT-pFL on three image classification datasets: EMNIST, Fashion_MNIST, and CIFAR-10. To simulate real-world conditions, they used two highly Non-IID settings. MNIST served as the public dataset for EMNIST and Fashion_MNIST, while CIFAR-100 was used for CIFAR-10. Notably, the public data does not require labels, making it easier to source in practical applications.

Key Results and Insights

KT-pFL demonstrates superior performance in both heterogeneous and homogeneous model settings. By decoupling architecture from collaboration, a small model on a low-power device can effectively learn from a larger model on a more capable peer.

Average test accuracy of KT-pFL compared to baselines across EMNIST, Fashion_MNIST, and CIFAR-10 datasets.
  • Superior Accuracy: In heterogeneous settings on EMNIST, KT-pFL achieved up to 84.65% accuracy, significantly outperforming baselines like FedMD (71.37%). Even in homogeneous settings, it outperformed state-of-the-art parameter-sharing methods like pFedMe.
  • Communication Efficiency: Because it transfers soft predictions rather than massive model parameter sets, KT-pFL is incredibly efficient. On EMNIST, it required only ~48 MB of data transfer, a nearly 100x reduction compared to the ~4,777 MB required by conventional pFL methods.
  • Adaptive Collaboration: The learnable coefficient matrix proved more effective than static heuristics (like cosine similarity), as it allows the network to organically discover optimal collaboration patterns.

Conclusion

KT-pFL represents a significant step toward flexible, hardware-aware federated learning. By utilizing parameterized knowledge transfer, the framework overcomes the rigid barriers of model homogeneity and provides robust personalization for Non-IID data. Future work may explore the impact of public dataset selection and further optimize the trade-offs between public data size and convergence speed.

Summary updated

BibTeX
@inproceedings{zhang2021parameterized,
  author = {Jie Zhang and Song Guo and Xiaosong Ma and Haozhao Wang and Wenchao Xu and Feijie Wu},
  title = {{Parameterized Knowledge Transfer for Personalized Federated Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=VpOzbivX7ij},
}
Figure