Abstract
In this paper, we address the dichotomy between heterogeneous models and simultaneous training in Federated Learning (FL) via a clustering framework. We define a new clustering model for FL based on the (optimal) local models of the users: two users belong to the same cluster if their local models are close; otherwise they belong to different clusters. A standard algorithm for clustered FL is proposed in [ghosh_efficient_2021], called IFCA, which requires suitable initialization and the knowledge of hyper-parameters like the number of clusters (which is often quite difficult to obtain in practical applications) to converge. We propose an improved algorithm, Successive Refine Federated Clustering Algorithm (SR-FCA), which removes such restrictive assumptions. SR-FCA treats each user as a singleton cluster as an initialization, and then successively refine the cluster estimation via exploiting similar users belonging to the same cluster. In any intermediate step, SR-FCA uses a robust federated learning algorithm within each cluster to exploit simultaneous training and to correct clustering errors. Furthermore, SR-FCA does not require any good initialization (warm start), both in theory and practice. We show that with proper choice of learning rate, SR-FCA incurs arbitrarily small clustering error. Additionally, we validate the performance of our algorithm on standard FL datasets in non-convex problems like neural nets, and we show the benefits of SR-FCA over baselines.
1. Introduction
Federated Learning (FL) allows multiple devices to train a model collaboratively without sharing raw data. However, a major hurdle is data heterogeneity—the distribution of data across clients is often significantly different. If a single global model is forced upon all users, it may perform poorly for everyone.
Clustered Federated Learning (CFL) addresses this by grouping users with similar data into clusters, each with its own specialized model. Despite its promise, existing state-of-the-art algorithms like IFCA face a "warm start" barrier: they require a good initial guess of the models and prior knowledge of the number of clusters ($K$) to converge. This creates a circular dependency where good clusters are needed for good models, but good models are needed to identify the clusters. We introduce SR-FCA to break this cycle.
2. The SR-FCA Framework
SR-FCA moves away from traditional top-down approaches toward an iterative, bottom-up refinement process. The algorithm is structured into two primary phases: initialization and iterative refinement.
2.1 ONE_SHOT Initialization
Instead of guessing models or cluster counts, every user trains a local model independently. The server then constructs a graph where edges connect users whose models are "close" in parameter space. By applying correlation clustering to this graph, the algorithm obtains an initial set of groups without requiring $K$ as an input.
2.2 The REFINE Step
Following initialization, the algorithm enters an iterative loop to improve both the cluster assignments and the models. This process involves three key sub-routines:
- TrimmedMeanGD: A robust training method that uses a "trimmed mean" of gradients within each cluster. This effectively ignores outliers (users who may be mis-clustered) during the update step.
- RECLUSTER: Users are reassigned to the cluster whose current model best fits their local data.
- MERGE: If the models of two distinct clusters become sufficiently similar, they are merged into one.
3. Robustness and Theoretical Insights
A core innovation of SR-FCA is the use of robust statistics as a bridge between poor initialization and accurate clustering. By treating mis-clustered users as "Byzantine" (noisy) outliers during gradient updates, the cluster model can improve despite initial impurities. As the model improves, mis-clustered users are correctly reassigned in subsequent steps.
Furthermore, SR-FCA relaxes the assumption that users in a cluster must have identical data distributions, requiring only that they be close. This makes the algorithm significantly more applicable to real-world edge devices where perfect identity is rare. Theoretically, we demonstrate that even with a "cold start," the clustering error decreases exponentially over time.
4. Experimental Results
We evaluated SR-FCA across diverse benchmarks, including synthetic linear regression, simulated heterogeneity (rotated MNIST and CIFAR-10), and real-world FL datasets (FEMNIST and Shakespeare).
- Superior Accuracy: SR-FCA consistently outperformed global models, local-only models, and the
IFCAbaseline. For instance, on the Shakespeare dataset, SR-FCA achieved approximately 47.7% accuracy, compared to 44.4% forIFCA. - Cluster Recovery: On simulated datasets, SR-FCA successfully recovered the true number of clusters and correct user assignments without prior knowledge of $K$.
- Efficiency: In practice, the algorithm typically requires only one or two refinement steps to reach high performance, demonstrating its viability for large-scale systems.
5. Conclusion
SR-FCA effectively eliminates the need for a "warm start" and prior knowledge of cluster counts in Clustered Federated Learning. While theoretical guarantees are currently focused on strongly convex loss functions, experimental results on neural networks suggest broad applicability. Future work will focus on extending these theoretical proofs to the non-convex landscape of deep learning and further optimizing the statistical error rate trade-offs associated with random initialization.
Summary updated