Abstract
Federated Learning (FL) presents an innovative approach to privacy-preserving distributed machine learning and enables efficient crowd intelligence on a large scale. However, a significant challenge arises when coordinating FL with crowd intelligence which diverse client groups possess disparate objectives due to data heterogeneity or distinct tasks. To address this challenge, we propose the Federated cINN Clustering Algorithm (FCCA) to robustly cluster clients into different groups, avoiding mutual interference between clients with data heterogeneity, and thereby enhancing the performance of the global model. Specifically, FCCA utilizes a global encoder to transform each client's private data into multivariate Gaussian distributions. It then employs a generative model to learn encoded latent features through maximum likelihood estimation, which eases optimization and avoids mode collapse. Finally, the central server collects converged local models to approximate similarities between clients and thus partition them into distinct clusters. Extensive experimental results demonstrate FCCA's superiority over other state-of-the-art clustered federated learning algorithms, evaluated on various models and datasets. These results suggest that our approach has substantial potential to enhance the efficiency and accuracy of real-world federated learning tasks.
Introduction
Federated Learning (FL) allows multiple clients to collaboratively train a shared model without exposing their raw, private data. While powerful, FL faces a significant hurdle in the form of data heterogeneity. When clients possess vastly different data distributions (non-IID data), a single global model often fails to generalize effectively across all participants.
Clustered Federated Learning (CFL) addresses this by grouping clients with similar data distributions. However, traditional CFL methods often rely on recursive clustering, where errors in early stages propagate and degrade final model performance. Furthermore, using Generative Adversarial Networks (GANs) for data representation is often computationally prohibitive and susceptible to "mode collapse." To overcome these limitations, we introduce the Federated cINN Clustering Algorithm (FCCA).
The FCCA Framework
FCCA leverages conditional Invertible Neural Networks (cINNs) to represent local data distributions robustly and efficiently. The architecture consists of three primary components at the client level:
- Global Encoder ($f$): Maps raw private data into a latent feature space following a Gaussian distribution.
- Cluster-wise Classifier ($h$): Executes the specific task, such as image classification.
- Conditional Invertible Neural Network (cINN) ($c$): Learns the mapping between latent features and a standard normal distribution based on data labels.
Workflow and Methodology
The FCCA process is divided into four distinct steps:
- Step 1: Train cINNs on Clients: Clients train their cINNs using maximum likelihood estimation. To ensure stability even with limited local data, a "Mixup"-inspired augmentation technique introduces an UNKNOWN label, preventing the model from over-fitting to empty regions of the data space.
- Step 2: Train Global Encoders and Classifiers: Clients optimize their local encoders and classifiers to perform the target task on their private data.
- Step 3: Clustering on a Central Server: The server collects cINN parameters and performs a Similarity Assessment. By passing Gaussian noise through the inverted cINNs, the server can estimate the similarity between different clients' data distributions without ever seeing the raw data. Clients are then partitioned into clusters using the K-Means algorithm.
- Step 4: Aggregation: Model parameters are aggregated only within their respective clusters. This ensures that clients with similar objectives benefit from each other's learning without interference from heterogeneous groups.
Experimental Evaluation
We evaluated FCCA against state-of-the-art (SOTA) algorithms, including IFCA and CFL, across several benchmark datasets: MNIST, Fashion-MNIST (FMNIST), CIFAR-10, and CIFAR-100. To simulate extreme non-IID conditions, we applied a Dirichlet distribution to the data partitioning.
Key Results
- Superior Accuracy: FCCA consistently outperformed SOTA methods. For instance, on the FMNIST dataset, FCCA achieved a global accuracy of approximately 79%, significantly higher than IFCA's 54%.
- Enhanced Personalization: When integrated with personalization techniques like FedProx or FedPer, FCCA reached an accuracy of 93.29% on the MNIST dataset.
- Robustness to Noise: The similarity assessment proved highly effective at clearly separating clusters, even in the presence of significant data heterogeneity.
Conclusion
FCCA provides a robust and privacy-preserving solution for clustering in Federated Learning. By utilizing the invertibility of cINNs, the algorithm avoids the "error cascade" of recursive methods and the instability of GANs. While currently requiring a pre-specified number of clusters, future work will focus on automating cluster discovery and deeper integration with advanced personalization strategies.
Summary updated