Heterogeneous Ensemble Knowledge Transfer for Training Large Models in Federated Learning

Yae Jee Cho, Andre Manoel, Gauri Joshi, Robert Sim, Dimitrios Dimitriadis · DOI · OpenReview

TL;DR

This paper introduces Fed-ET, a novel federated learning approach that enables training large server models using smaller, heterogeneous client models. By employing a weighted consensus distillation with diversity regularization, Fed-ET effectively leverages diverse client data and model architectures to achieve superior performance and communication efficiency compared to existing methods, especially under data heterogeneity.

What Problem Does This Paper Address?

Federated Learning (FL) allows devices to collaboratively train models without sharing private data. However, a major hurdle is the requirement for identical model architectures across all clients and the server. This is often impractical because edge devices have limited computational resources, preventing them from training large, state-of-the-art models. Furthermore, the data on these devices is inherently heterogeneous, meaning a model trained on one client's data might perform poorly on another's. Existing FL methods struggle to address both model heterogeneity (different architectures) and data heterogeneity simultaneously, leading to suboptimal global models. This paper tackles the challenge of training a large, powerful server model by effectively utilizing an ensemble of smaller, diverse models trained on clients with varying architectures and data distributions.

Methods

The core of Fed-ET is an ensemble knowledge transfer mechanism designed for the FL setting. It operates in three main steps:

  1. Client Local Training & Representation Transfer: Clients, each assigned a small, potentially different model from a server-maintained hashmap, train their local models on their private data. Crucially, they also transfer their model's representation layer (e.g., the output of the penultimate layer) to the server.
  2. Weighted Consensus Distillation with Diversity Regularization: The server aggregates the client representations and uses a public, unlabeled dataset to train its large model. This step is key:
  3. Weighted Consensus: It calculates a weighted average of client model logits (soft predictions) based on their confidence (variance of their predictions). More confident clients contribute more to the consensus. This helps filter out unreliable or erroneous client predictions.
  4. Diversity Regularization: A regularization term is added to encourage the server model to learn from clients that might deviate from the consensus. This captures valuable information from diverse perspectives, even from less confident clients.
  5. Server Representation Transfer: The server's updated large model's representation layer is then broadcast back to the small models in its hashmap, allowing them to benefit from the improved global knowledge.

This process allows the server to learn from an ensemble of heterogeneous client models without requiring clients to train large models or share their private data.

Datasets

The paper evaluates Fed-ET on two types of tasks:

  • Image Classification: CIFAR-10 and CIFAR-100 datasets were used. Data was split heterogeneously across 100 clients using a Dirichlet distribution (Dirκ(α)) with varying imbalance parameters (α = 0.1 for high heterogeneity, α = 0.5 for lower heterogeneity). A public dataset was generated using data augmentation.
  • Language Tasks: The Sent140 (Twitter sentiment classification) dataset was used. Users with fewer than 100 sentences were filtered out, resulting in 106 clients. Data was split into training, testing, and public sets.

Key Insights and Ideas

  • Heterogeneity is a Feature, Not a Bug: Instead of forcing clients to use identical models, Fed-ET embraces model and data heterogeneity, using it to build a more robust and generalized server model.
  • Confidence-Weighted Consensus is Key: By weighting client contributions based on their confidence (inferred from logit variance), Fed-ET effectively filters out noisy or incorrect predictions, leading to a more reliable ensemble.
  • Diversity Matters for Generalization: The diversity regularization term is crucial. It ensures that valuable insights from clients that might not perfectly align with the majority are still incorporated, improving the overall generalization capabilities of the server model.
  • Efficient Communication: By training smaller models on clients and only transferring representations and model updates, Fed-ET significantly reduces communication overhead compared to methods that require clients to train and send large models.

Key Results

  • Superior Test Accuracy: Fed-ET consistently achieved higher test accuracy on CIFAR-10 and Sent140, especially under high data heterogeneity (α = 0.1), outperforming both homogeneous and heterogeneous FL baselines. For example, on CIFAR-10 with α = 0.1, Fed-ET achieved 78.66% accuracy, significantly better than MOON (75.68%) and FedDF (65.27%).
  • Reduced Communication Cost: Fed-ET achieved target test accuracies with approximately 3x fewer communicated parameters compared to baselines that require model homogeneity.
  • Robustness to Heterogeneity: The method demonstrated strong performance even with highly imbalanced and skewed data distributions across clients.
  • Effect of Diversity Parameter (λ): Experiments showed that the diversity regularization parameter (λ) plays a role in performance, with optimal values varying by task, suggesting that a moderate amount of diversity regularization is beneficial for generalization.

Limitations and Future Work

  • Client Selection: While the paper mentions sampling clients, the specific strategy for selecting clients for each round could be further explored for optimization.
  • Generalization Bound: The paper provides a generalization bound that supports the weighted consensus approach, but further theoretical analysis for the full Fed-ET framework could be beneficial.
  • Deployment Strategies: The authors suggest exploring different strategies for deploying heterogeneous models to clients.
  • Broader Applicability: Extending Fed-ET to a more general ensemble knowledge transfer framework beyond FL is a potential future direction.

Summary updated

BibTeX
@inproceedings{cho2022heterogeneous,
  author = {Yae Jee Cho and Andre Manoel and Gauri Joshi and Robert Sim and Dimitrios Dimitriadis},
  title = {{Heterogeneous Ensemble Knowledge Transfer for Training Large Models in Federated Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/399},
}
Figure