TL;DR
The paper introduces Dynamic Heterogeneous Federated Learning (DHFL), a realistic scenario where decentralized clients receive new data tasks over time and face extreme class imbalances. To solve this, the authors propose FedMLP, a framework that uses multi-level prototypes (class-level and semantic clusters) and specialized regularizations to prevent "catastrophic forgetting" and ensure the global model remains unbiased even when some classes are rare.
What Problem Does This Paper Address?
Standard Federated Learning (FL) allows multiple devices (clients) to train a shared global model without sharing their raw data. However, most existing research assumes a static environment where the data distribution on each device never changes.
In the real world, data is dynamic and heterogeneous. For example, a smartphone user might take photos of different subjects over months (incremental tasks), and different users will have vastly different photo libraries (label skew). This leads to two major issues:
- Local Catastrophic Forgetting: When a client learns a new task, it tends to forget the knowledge from previous tasks.
- Global Concept Drift: Because the global distribution of all classes is often "long-tailed" (some classes are very common, others are rare), the aggregated global model becomes heavily biased toward majority classes.
Existing FL methods struggle to maintain accuracy when new classes arrive or when the global data is highly unbalanced.
Methods
The authors propose Federated Multi-Level Prototypes (FedMLP). Instead of relying solely on model weights, they use prototypes—the average feature vectors for each class—to guide learning.
The Multi-Level Architecture:
- Federated Prototypes: These represent the "average" feature for a specific class across all clients.
- Federated Semantic Prototypes: The server uses unsupervised clustering to group similar class prototypes into "semantic clusters." This allows minority classes (with few samples) to "borrow" structural knowledge from similar, more common classes.
The Regularization Trio:
To keep the training stable, FedMLP introduces three loss functions:
- Prototype-Based Regularization ($L_P$): Forces local features to stay close to the global class prototypes, ensuring all clients speak the same "feature language."
- Semantic Prototype-Based Regularization ($L_S$): Specifically helps minority classes by aligning their features with the broader semantic cluster they belong to.
- Federated Inter-Task Regularization ($L_I$): Uses KL-divergence to ensure that as a client learns a new task, its feature space remains consistent with the prototypes of previous tasks, effectively "anchoring" the model to prevent forgetting.
Datasets
The researchers evaluated FedMLP on four standard computer vision benchmarks, modified to simulate dynamic and long-tailed distributions:
- MNIST & FEMNIST: Handwritten digits and characters (FEMNIST has 62 classes).
- CIFAR-10 & CIFAR-100: General object recognition.
They used two partitioning strategies: Sharding (fixed number of classes per task) and Dirichlet Distribution Allocation (DDA) (a more complex, realistic distribution). They also introduced an "imbalance rate" ($\gamma$) to test how the model handles extremely rare classes.
Key Insights and Ideas
- Knowledge Complements: The most innovative idea is using Semantic Prototypes. By clustering classes (e.g., grouping "Dog" and "Wolf"), the model can use the well-defined feature space of a common class to help regularize a rare, similar class.
- Prototypes as Anchors: By saving prototypes from previous tasks, the client has a "memory" of what it learned before. The Inter-Task Regularization acts as a bridge, ensuring new learning doesn't destroy old feature boundaries.
- Communication Efficiency: Prototypes are significantly smaller than full model parameters. Sharing prototypes instead of complex model updates (in some phases) reduces the communication burden on edge devices.
Key Results
FedMLP consistently outperformed state-of-the-art methods like FedAvg, FedProx, and FedNTD across all settings.
- Massive Accuracy Gains: On the difficult CIFAR-100 dataset, FedMLP achieved a global accuracy of 61.02%, while the next best method (FedProto) only reached 57.09%, and standard FedAvg trailed at 37.32%.
- Robustness to Imbalance: Even when the rarest class had only 5% as many samples as the most common class ($\gamma = 0.05$), FedMLP maintained high accuracy and faster convergence.
- Visual Clarity: t-SNE visualizations (see Figure 5 in the paper) show that FedMLP creates much tighter, more distinct class clusters in the feature space compared to FedAvg, which results in "messy" overlapping boundaries.
Limitations and Future Work
While FedMLP shows great promise, the paper leaves a few stones unturned:
- Model Homogeneity: The framework assumes all clients use the same model architecture. In a truly heterogeneous world, clients might have different hardware capabilities requiring different model sizes.
- Privacy Risks: Although the authors mention that prototypes are more privacy-preserving than raw data, prototypes can still be vulnerable to "inversion attacks" where an adversary tries to reconstruct the original images. Further differential privacy measures could be an area for future work.
- Unsupervised Clustering: The semantic clusters are formed via unsupervised learning. Exploring whether a pre-defined taxonomic hierarchy (like WordNet) could improve the semantic grouping is a potential next step.
Summary updated