FedHe: Heterogeneous Models and Communication-Efficient Federated Learning

Chan Yun Hin, Edith C. H. Ngai · DOI

Abstract

Federated learning (FL) is able to manage edge devices to cooperatively train a model while maintaining the training data local and private. One common assumption in FL is that all edge devices share the same machine learning model in training, for example, identical neural network architecture. However, the computation and store capability of different devices may not be the same. Moreover, reducing communication overheads can improve the training efficiency though it is still a challenging problem in FL. In this paper, we propose a novel FL method, called FedHe, inspired by knowledge distillation, which can train heterogeneous models and support asynchronous training processes with significantly reduced communication overheads. Our analysis and experimental results demonstrate that the performance of our proposed method is better than the state-of-the-art algorithms in terms of communication overheads and model accuracy.

Introduction

Standard Federated Learning, such as the widely used FedAvg algorithm, operates under a rigid assumption: every participating device must use the exact same model architecture. In the real world, this is rarely practical. A high-end smartphone and a low-power IoT sensor have vastly different computational and memory constraints. Forcing a "one-size-fits-all" model leads to the straggler problem, where the slowest device dictates the speed of the entire network.

Furthermore, traditional FL requires exchanging millions of model parameters (weights) between clients and the server, creating a massive communication bottleneck. While some existing solutions for heterogeneous models (like FedMD) exist, they typically require a shared "public dataset" at the server to align different models—a requirement that is often impossible to meet due to privacy concerns or the lack of relevant data.

Methodology: The FedHe Framework

The authors introduce FedHe (Heterogeneous models and Efficient Federated learning), which draws inspiration from Knowledge Distillation (KD). Instead of synchronizing weights, FedHe synchronizes "knowledge" in the form of logits (the raw predictions from the second-to-last layer of a neural network).

System architecture of FedHe showing heterogeneous models and logit exchange with a central server.

The FedHe Workflow:

  1. Local Training: Each client trains its unique model architecture on its private data using a standard cross-entropy loss.
  2. Logit Collection: During training, the client calculates the average logit vector for each class (e.g., what does a "3" look like to this specific model?).
  3. Asynchronous Exchange: Clients send these compact logit averages to the server. Because logits only depend on the number of output classes, they serve as a "universal language" between different architectures.
  4. Knowledge Sharing: The server aggregates logits from all clients to create a global average for each class and sends this back to clients.
  5. Distillation Training: Clients update their models using a dual-objective loss function that balances learning from local data and mimicking global average logits.

Experimental Evaluation

The researchers evaluated FedHe using two benchmark computer vision datasets: MNIST and CIFAR-10. They simulated a heterogeneous environment with 10 clients using 10 different CNN architectures (ranging from 2-layer to 3-layer CNNs with varying filter counts).

Key Insights

  • Logits as a Universal Interface: While model weights are architecture-specific, logits are task-specific. This allows a tiny model on a sensor to learn from a giant model on a workstation without ever seeing its parameters.
  • Privacy Without Proxies: Unlike previous distillation-based FL methods, FedHe does not require a public dataset. The "knowledge" is generated directly from the private data, making it more practical for sensitive applications.
  • Heterogeneity Performance: Even in a collaborative environment, clients with more complex models achieved higher individual accuracy than those with simpler models, though both groups performed better than they would have training alone.

Results and Discussion

FedHe achieved extreme communication efficiency, reducing overhead by over 99.9% compared to FedAvg. For MNIST, while FedAvg required transmitting ~324,672 weights per round, FedHe only transmitted 110 values (10 classes × 11 dimensions).

Accuracy comparison on CIFAR-10 dataset between FedHe, Private training, FedAvg, and FedMD.

Despite the massive reduction in data transfer, FedHe achieved 98.9% accuracy on MNIST (nearly matching FedAvg's 99%) and 66% on CIFAR-10 (close to FedAvg's 69%). FedHe consistently outperformed FedMD in both accuracy and communication efficiency, largely because it doesn't rely on potentially irrelevant public data.

Conclusion

FedHe breaks the homogeneity barrier in federated learning by enabling the use of heterogeneous models and significantly reducing communication costs. While it converges slightly slower than purely private training due to the dual-objective loss, its ability to facilitate collaboration across diverse hardware without a public dataset makes it a robust solution for real-world FL deployments. Future work will focus on its performance under non-IID data distributions and formal security analysis against model inversion attacks.

Summary updated

BibTeX
@inproceedings{hin2021fedhe,
  author = {Chan Yun Hin and Edith C. H. Ngai},
  title = {{FedHe: Heterogeneous Models and Communication-Efficient Federated Learning}},
  booktitle = {MSN},
  year = {2021},
  doi = {10.1109/msn53354.2021.00043},
}
Figure