Abstract
Federated learning (FL) enables collaboratively training deep learning models on decentralized data. However, there are three types of heterogeneities in FL settings—Data, Objective, and Model (DOM)—that bring about distinctive challenges to the canonical federated learning algorithm (FedAvg). In this work, we present a novel federated learning paradigm, named Federated Mutual Learning (FML), dealing with these three heterogeneities. FML allows clients to train a generalized model collaboratively and a personalized model independently, designing their own private customized models. Thus, the Non-IIDness of data is no longer a bug but a feature that allows clients to be personally served better. Experiments show that FML can achieve better performance than alternatives in typical FL settings, and clients can benefit from FML even with different models and tasks.
Introduction
In the world of Federated Learning, the goal is to train a powerful global model across decentralized devices without compromising private data. However, real-world deployments face a "triple threat" of heterogeneity, which we categorize as DOM:
- Data Heterogeneity (DH): Real-world data is rarely independently and identically distributed (Non-IID). When data varies wildly between clients, global models often fail to converge.
- Objective Heterogeneity (OH): The central server seeks a generalist model, while individual clients pursue specialist models tailored to their specific local needs.
- Model Heterogeneity (MH): Diverse hardware capabilities (from GPUs to microcontrollers) make it restrictive to force a single architecture on all participants.
Federated Mutual Learning (FML) shifts the perspective, embracing these differences through a mutual learning strategy.
Methodology: The FML Framework
The core innovation of FML is the decoupling of the collaborative model from the local specialist. Each client maintains two models locally:
- The Meme Model: A "public" face with a standard architecture that is sent to the server for global averaging.
- The Personalized Model: A "private" specialist that can have any architecture the client desires and never leaves the device.
These models communicate via Deep Mutual Learning (DML). Unlike traditional knowledge distillation, DML is a peer-to-peer exchange. During local training, both models minimize their own classification loss while simultaneously matching the probability outputs (logits) of the other model using Kullback-Leibler (KL) divergence.
This creates a symbiotic relationship: the Meme Model absorbs local nuances to become a better collaborator, while the Personalized Model inherits global wisdom to become a better specialist.
Experimental Evaluation
FML was validated using standard benchmarks (MNIST, CIFAR-10, and CIFAR-100) modified to simulate varying degrees of Non-IIDness. The framework was compared against FedAvg and FedProx.
Key Results and Stability
In almost every setting, FML achieved higher Top-1 accuracy than the baselines. A striking result is the training stability; while FedAvg and FedProx often show severe oscillations in Non-IID settings, FML's accuracy rises rapidly and remains stable. This is particularly evident in the performance of the personalized models, which leverage local data characteristics effectively.
Insights: The "Catfish Effect"
The researchers observed a "Catfish Effect," where high-capability models can pull up the performance of weaker models through the shared Meme Model. Conversely, poorly trained models have a negligible negative impact on the rest of the network. Furthermore, because distillation happens via logits, the Personalized Model can be a completely different size or shape than the global model, solving the challenge of Model Heterogeneity.
Conclusion
Federated Mutual Learning demonstrates that data heterogeneity can be an asset rather than a hindrance. By allowing for decoupled architectures and mutual distillation, FML provides a flexible, stable, and high-performing alternative to traditional FL. Future work will focus on dynamic hyperparameter tuning and investigating the security implications of the collaborative "Catfish Effect."
Summary updated