[Paper Review] Federated learning with hierarchical clustering of local updates to improve training on non-IID data
This paper proposes Federated Learning with Hierarchical Clustering (FL+HC), which improves training on non-iID data by clustering clients based on similarity of their local model updates before training specialized models per cluster. FL+HC reduces communication rounds by over 5x and increases the number of clients reaching target accuracy by up to 2x in non-iid settings, especially with Manhattan distance and complete linkage.
Federated learning (FL) is a well established method for performing machine learning tasks over massively distributed data. However in settings where data is distributed in a non-iid (not independent and identically distributed) fashion -- as is typical in real world situations -- the joint model produced by FL suffers in terms of test set accuracy and/or communication costs compared to training on iid data. We show that learning a single joint model is often not optimal in the presence of certain types of non-iid data. In this work we present a modification to FL by introducing a hierarchical clustering step (FL+HC) to separate clusters of clients by the similarity of their local updates to the global joint model. Once separated, the clusters are trained independently and in parallel on specialised models. We present a robust empirical analysis of the hyperparameters for FL+HC for several iid and non-iid settings. We show how FL+HC allows model training to converge in fewer communication rounds (significantly so under some non-iid settings) compared to FL without clustering. Additionally, FL+HC allows for a greater percentage of clients to reach a target accuracy compared to standard FL. Finally we make suggestions for good default hyperparameters to promote superior performing specialised models without modifying the the underlying federated learning communication protocol.
Motivation & Objective
- To address the performance degradation in federated learning when data is non-iid, particularly due to statistical heterogeneity across clients.
- To improve model accuracy and convergence speed in non-iID settings without modifying the core FL communication protocol.
- To identify effective hyperparameters for hierarchical clustering in FL to enable robust, default configurations when data distribution is unknown.
- To evaluate how different clustering metrics and linkage methods affect model performance in various non-iid data scenarios.
Proposed method
- Introduces a hierarchical clustering step after a fixed number of FL communication rounds to group clients based on similarity of their local model weight updates.
- Uses L2, L1, Manhattan, and cosine distances to measure similarity between client updates in the weight space.
- Applies complete, average, single, and ward linkage methods to form clusters of clients with similar update patterns.
- Trains specialized models independently on each cluster, improving performance over a single global model.
- Employs Federated Averaging (FedAvg) for global model aggregation, with clustering applied periodically during training.
- Evaluates performance using test accuracy and the number of clients reaching a target accuracy threshold across multiple datasets and non-iid settings.
Experimental results
Research questions
- RQ1How does hierarchical clustering of client updates affect convergence speed and test accuracy in non-iid federated learning settings?
- RQ2Which distance metric and linkage method in hierarchical clustering yield the best performance across different types of non-iid data?
- RQ3Can FL+HC reduce communication rounds while maintaining or improving model accuracy compared to standard FL?
- RQ4What are the optimal default hyperparameters for FL+HC when the nature of data non-iid distribution is unknown?
Key findings
- FL+HC reduces the number of communication rounds required for convergence by more than 5x in certain non-iid settings, particularly when using Manhattan distance and complete linkage.
- In label-swapped non-iid settings, the cosine distance metric yields marginally better performance than other metrics.
- The Manhattan distance metric combined with complete linkage enables 1.1x more clients to reach target accuracy by round 50 compared to standard FL.
- FL+HC increases the number of clients achieving target accuracy by up to 2x in non-iid settings, while maintaining or improving final test accuracy.
- In the FEMNIST non-iid setting with user-based data partitioning, FL+HC provides little advantage over standard FL, indicating limitations under complex conditional distribution shifts.
- A recommended default configuration for unknown non-iid data is Manhattan distance with complete linkage, which consistently outperforms other combinations in terms of client convergence and robustness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.