TL;DR
This paper unifies clustered federated learning (FL) into a single bi-level optimization framework and introduces WeCFL (Weighted Clustered Federated Learning), an algorithm that integrates client data weights directly into the clustering process. The authors provide a novel theoretical convergence analysis based on a new "clusterability" metric, demonstrating that WeCFL achieves state-of-the-art performance and faster convergence on cluster-wise non-IID data.
What Problem Does This Paper Address?
Federated Learning (FL) allows multiple decentralized clients to collaboratively train a machine learning model without sharing their raw data. However, standard FL algorithms (like FedAvg) struggle significantly when client data is Non-IID (not identically and independently distributed). Traditional approaches typically force a single global model on all clients—which performs poorly on highly diverse data—or train completely personalized models for each individual client, risking overfitting and losing the benefits of collaborative generalization.
Clustered FL offers an elegant middle ground: it groups clients with similar data distributions into distinct cohorts and trains a shared model tailored to each cluster. However, existing clustered FL methods treat clustering as an ad-hoc add-on rather than an integrated part of the optimization objective. They often ignore client dataset sizes during the clustering step and lack rigorous convergence guarantees that account for how naturally "clusterable" the clients actually are.
Methods
The authors address these gaps by introducing three key contributions:
- Bi-level Optimization Framework: They formulate clustered FL as a unified bi-level optimization problem. The upper-level objective minimizes the global FL loss function, while the lower-level objective optimizes client cluster assignments.
- WeCFL (Weighted Clustered Federated Learning): A novel algorithm that introduces client-specific importance weights (proportional to their local dataset sizes) directly into the clustering objective function. This ensures that the clustering metric aligns perfectly with the overall FL learning objective. WeCFL alternates between an Expectation step (assigning clients to the closest cluster center in parameter space) and a Maximization step (updating cluster centers via federated aggregation).
- Clusterability Measure ($B$): The authors introduce a new mathematical metric, $B$, to quantify the variance of client gradients within a cluster. This metric forms the foundation of a new theoretical framework proving a linear convergence rate of $O(1/T)$ for both the clustering and FL optimization objectives.
Datasets
The authors evaluate their approach on two standard computer vision benchmarks, specifically pre-processed to simulate realistic cluster-wise non-IID scenarios:
- Fashion-MNIST: 70,000 grayscale images across 10 product classes.
- CIFAR-10: 60,000 color images across 10 classes, representing a significantly higher degree of statistical heterogeneity.
To simulate cluster-wise non-IID data, they employ two distinct partition strategies:
- Dirichlet Allocation: A Dirichlet distribution ($\alpha=0.1$) creates a large variance between clusters, while a separate distribution ($\alpha=10$) ensures low variance within each cluster.
- n-class Partition: Each cluster is randomly assigned 3 distinct classes, and clients within that cluster are given a subset of 2 classes.
Key Insights and Ideas
- Clustering Needs Weights: Traditional clustering treats every data point (client) equally. In FL, clients have vastly different dataset sizes. By weighting the clustering step by client data size, WeCFL prevents small clients from distorting cluster centers, leading to more stable and meaningful client cohorts.
- The Geometry of Convergence: The paper mathematically proves that convergence is strictly bounded by the "clusterability" ($B$) of the clients. If a dataset cannot be cleanly clustered (resulting in a high $B$), the algorithm can diverge.
- Rapid Clustering Stabilization: Empirically, client cluster assignments stabilize incredibly quickly—often within the first 1 to 5 communication rounds. Once clustering converges, the remaining training rounds naturally reduce to running cluster-specific vanilla FedAvg, keeping computational overhead low.
Key Results
- State-of-the-Art Performance: WeCFL consistently outperformed single-model baselines (FedAvg, FedProx) and existing clustered FL methods (IFCA, FeSEM) across both datasets.
- Robustness on Complex Data: On the highly heterogeneous CIFAR-10 dataset (under the 3,2-class setting with $K=10$ clusters), WeCFL achieved 72.13% accuracy and a 50.65 macro F1-score, significantly outperforming alternative clustered methods like IFCA (which achieved 34.06% accuracy).
- Clustering Stability: Unlike IFCA, which suffers from unstable clustering due to a loss-performance similarity metric, WeCFL's parameter-space Euclidean distance metric provided highly robust and predictable convergence curves.
Limitations and Future Work
- Fixed Cluster Count ($K$): The algorithm requires specifying the number of clusters ($K$) beforehand. In real-world deployments, the optimal number of client cohorts is rarely known in advance.
- Server-Side Overhead: While WeCFL converges quickly, maintaining and broadcasting multiple cluster models simultaneously increases server-side storage and management complexity compared to standard single-model FL.
- Future Directions: The authors suggest that future work could explore dynamically estimating the optimal $K$ during training or extending the framework to handle asynchronous client participation and communication-efficient sparse updates.
Summary updated