NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Best of Both Worlds: Accurate Global and Personalized Models through Federated Learning with Data-Free Hyper-Knowledge Distillation

Huancheng Chen, Chianing Wang, Haris Vikalo

Introduction

Federated Learning (FL) has emerged as a pivotal paradigm for training machine learning models across decentralized devices while maintaining data privacy. However, a persistent challenge in FL is the "tug-of-war" between global model generalization and local model personalization, particularly in the presence of non-IID (independent and identically distributed) data. This paper introduces FedHKD (Federated Hyper-Knowledge Distillation), a novel framework designed to achieve state-of-the-art accuracy for both global and personalized models without the need for shared public datasets or computationally expensive generative models.

The Heterogeneity Dilemma

In real-world FL deployments, data distribution across clients is often highly heterogeneous. For instance, different users may capture vastly different types of images or use different labels based on their specific environment. Standard algorithms like FedAvg often fail in these scenarios, resulting in a global model that represents a poor compromise for all participants. While Personalized Federated Learning (pFL) attempts to address this by allowing local adaptations, it frequently does so at the expense of the global model's performance.

Existing solutions often turn to Knowledge Distillation (KD) to bridge this gap. However, traditional KD-based FL methods typically require a shared public dataset—which is often unavailable or violates privacy constraints—or the training of complex Generative Adversarial Networks (GANs) on the server, which is computationally prohibitive for many edge applications.

The FedHKD Framework: Leveraging Hyper-Knowledge

FedHKD overcomes these limitations by introducing the concept of Hyper-Knowledge. This approach allows clients to share the "essence" of their local data distributions in a compact, privacy-preserving manner.

1. Hyper-Knowledge Extraction

During local training, each client computes two specific metrics for every class present in their local dataset:

  • Mean Latent Representation: The average feature vector produced by the model's encoder before the final classification layer.
  • Mean Soft Prediction: The average probability distribution (logits) output by the model.

2. Privacy and Communication

To ensure privacy, these class-wise averages are perturbed using Differential Privacy (DP) techniques, specifically by adding Gaussian noise. This protects against membership inference attacks. These noisy averages—the "hyper-knowledge"—are then transmitted to the central server. This process is significantly more communication-efficient than transmitting full model weights or synthetic data.

3. Global Aggregation and Distillation

The server aggregates the hyper-knowledge from all participating clients to form a global hyper-knowledge base. In subsequent rounds, clients download this global consensus. The local training objective is then modified to include two regularization terms:

  • Feature Alignment: This term encourages the local feature extractor to align its representations with the global class-wise means.
  • Prediction Alignment: This term forces the local classifier to produce soft predictions that are consistent with the global average for each class.

Experimental Evaluation

The authors evaluated FedHKD against seven state-of-the-art FL methods, including FedAvg, FedProx, and Moon. Experiments were conducted using three benchmark computer vision datasets: SVHN, CIFAR-10, and CIFAR-100. To simulate varying degrees of data heterogeneity, the researchers employed a Dirichlet distribution to partition the data among 10 to 50 clients.

Results and Discussion

FedHKD demonstrated superior performance across all benchmarks, effectively balancing local personalization with global robustness.

  • Accuracy Gains: On the SVHN dataset, FedHKD achieved a remarkable 20.6% improvement in local test accuracy and a 39.5% increase in global test accuracy compared to FedAvg.
  • Complexity Handling: Even on the more complex CIFAR-100 dataset, FedHKD maintained a significant lead over other "data-free" FL methods.
  • Efficiency: The computational overhead of FedHKD is minimal, with training times only slightly exceeding those of FedAvg. This makes it a practical choice for resource-constrained environments compared to GAN-based distillation methods.
  • Agnostic Potential: While the study utilized consistent architectures (ShuffleNetV2 and ResNet18) for experimental control, the KD-based nature of FedHKD theoretically supports heterogeneous model architectures across different clients.

Conclusion and Future Work

FedHKD provides a robust solution to the data heterogeneity problem in Federated Learning. By sharing class-wise hyper-knowledge rather than raw data or complex models, it achieves a high level of accuracy and privacy with low communication costs.

Future research directions include exploring the framework's performance in environments with extreme architectural heterogeneity and developing automated methods for tuning the distillation hyperparameters ($\lambda$ and $\gamma$). Additionally, addressing scenarios where certain classes are extremely sparse across the entire network remains an open challenge for ensuring consistent global knowledge.

Summary updated

BibTeX
@inproceedings{chen2023best,
  author = {Huancheng Chen and Chianing Wang and Haris Vikalo},
  title = {{The Best of Both Worlds: Accurate Global and Personalized Models through Federated Learning with Data-Free Hyper-Knowledge Distillation}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=29V3AWjVAFi},
}
Figure