FedGroup: Efficient Federated Learning via Decomposed Similarity-Based Clustering

Moming Duan, Duo Liu, Xinyuan Ji, Renping Liu, Liang Liang, Xianzhang Chen, Yujuan Tan

TL;DR

This paper introduces FedGroup, a novel clustered federated learning (CFL) framework that tackles the challenge of statistical heterogeneity in distributed training. By grouping clients based on their optimization similarities and employing a new data-driven distance measure (EDC), FedGroup achieves significant accuracy improvements and more efficient training compared to existing methods, while also addressing the practical issue of newcomer devices.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple devices to collaboratively train a shared model without sharing their private data. However, a major hurdle is statistical heterogeneity, where the data on each device is non-IID (not identically and independently distributed) and imbalanced. This heterogeneity can lead to significant divergences between local and global models, degrading overall performance and slowing down convergence. While existing CFL approaches try to mitigate this by clustering clients, they often suffer from inefficiency in large-scale systems or fail to handle new devices joining the network. This paper aims to bridge this gap by proposing an efficient and scalable CFL framework that effectively handles heterogeneity and newcomer devices.

Methods

The core of FedGroup lies in its novel approach to client clustering and handling new participants:

  • FedGroup Framework: This framework divides clients into several groups. Each group trains its own specialized model, which is then aggregated to form a global model. This contrasts with traditional FL, which aims for a single consensus model.
  • Decomposed Similarity-Based Clustering: Instead of directly clustering model parameters, FedGroup clusters the optimization directions (gradient updates) of clients. This is crucial for handling high-dimensional, low-sample size (HDLSS) data.
  • Euclidean distance of Decomposed Cosine similarity (EDC): This is a novel data-driven distance metric proposed to measure the similarity between client optimization directions. EDC uses truncated Singular Value Decomposition (SVD) to create a low-dimensional embedding, making clustering more efficient and less susceptible to the "concentration phenomenon" of distance metrics in high dimensions. This is a key innovation over previous methods like MADC.
  • Group Cold Start: A strategy to initialize the groups and their models. It involves a preliminary clustering step using a subset of clients and the EDC measure.
  • Client Cold Start: A mechanism to efficiently assign newcomer devices to appropriate groups. This is achieved by calculating the similarity between the newcomer's optimization direction and the group models, using a normalized cosine dissimilarity.
  • FedGrouProx: An extension of FedGroup that integrates the FedProx optimizer, which adds a proximal term to the local objective function to further bound the divergence between local and global models.

Datasets

The proposed FedGroup framework was evaluated on four diverse datasets:

  • MNIST: A standard 10-class handwritten digit dataset, adapted to have clients with only two classes each to induce heterogeneity. Both a convex multinomial logistic regression (MCLR) and a non-convex multilayer perceptron (MLP) model were used.
  • Federated Extended MNIST (FEMNIST): A 62-class handwritten digit and character dataset, also adapted for heterogeneity. MCLR and MLP models were employed.
  • Synthetic: A synthetic federated dataset designed to control statistical heterogeneity. An MCLR model was used.
  • Sentiment140 (Sent140): A tweet sentiment analysis dataset, where each client represents a different Twitter account. An LSTM classifier was used.

Key Insights and Ideas

  • Clustering Optimization Directions is Key: The paper highlights that focusing on the direction of model updates, rather than the raw parameters, is more effective for clustering in heterogeneous FL settings. This allows for better specialization of group models.
  • EDC for Efficient High-Dimensional Clustering: The novel EDC metric is a significant contribution. By using SVD for dimensionality reduction before calculating similarities, it overcomes the computational and statistical challenges of clustering high-dimensional vectors, making CFL practical for larger-scale systems.
  • Handling Newcomers is Crucial for Scalability: The proposed client cold start mechanism is vital for real-world FL systems where devices frequently join and leave. It ensures that new participants can be quickly and effectively integrated into the training process without requiring a full retraining or complex initialization.
  • Semi-Pluralistic Architecture: By allowing ng > 0 (inter-group learning rate), FedGroup can move towards a semi-pluralistic architecture, which can potentially improve convergence by allowing some interaction between group models.

Key Results

  • Significant Accuracy Improvements: FedGroup consistently outperformed FedAvg, FedProx, and existing CFL methods like IFCA and FeSEM across various datasets. Notably, FedGroup achieved a +26.9% improvement in top-1 test accuracy on FEMNIST compared to FeSEM.
  • Reduced Discrepancy: The clustering approach in FedGroup effectively reduced the discrepancy between local and group models, leading to more stable training and faster convergence.
  • Efficiency of EDC: The experiments demonstrated that EDC is computationally more efficient than MADC, especially in high-dimensional settings, and provides a good approximation.
  • FedGrouProx Stability: While FedGrouProx (FedGroup + FedProx) showed more stable training, it did not consistently lead to higher accuracy compared to FedGroup alone, suggesting that the proximal term's benefit might be more about stability than raw accuracy gains in this context.
  • Ablation Studies Validate Strategies: Experiments with randomized clustering (RCC) and randomized newcomer assignment (RAC) showed that FedGroup's proposed strategies for clustering and cold start are indeed crucial for achieving its performance gains.

Limitations and Future Work

  • Communication Overhead for Pre-training: FedGroup requires additional communication for the pre-training and clustering steps. While the authors argue this doesn't occupy a full round, it's still an overhead compared to vanilla FL.
  • Inter-Group Aggregation Impact: The paper notes that the inter-group aggregation mechanism (ng > 0) only slightly improved convergence in some experiments, suggesting that groups might become too specialized with few common representations.
  • Future Work: The authors suggest exploring the use of a "gate network" to combine group models more effectively in future work. They also plan to further investigate the semi-pluralistic architecture. The code for FedGroup has been open-sourced.

Summary updated

BibTeX
@inproceedings{duan2021fedgroup,
  author = {Moming Duan and Duo Liu and Xinyuan Ji and Renping Liu and Liang Liang and Xianzhang Chen and Yujuan Tan},
  title = {{FedGroup: Efficient Federated Learning via Decomposed Similarity-Based Clustering}},
  booktitle = {ISPA/BDCloud/SocialCom/SustainCom},
  year = {2021},
  doi = {10.1109/ispa-bdcloud-socialcom-sustaincom52081.2021.00042},
}
Figure