An Efficient Framework for Clustered Federated Learning

Avishek Ghosh, Jichan Chung, Dong Yin, Kannan Ramchandran · DOI

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models on decentralized data residing on edge devices, such as smartphones and IoT sensors, without the need to centralize raw data. However, a significant hurdle in FL is the presence of highly heterogeneous, non-i.i.d. (not independent and identically distributed) data across users. When user data distributions differ significantly—for instance, due to varying personal preferences or geographic locations—a single global model often fails to provide accurate personalized predictions. Conversely, training purely local models on each device frequently leads to overfitting because individual devices typically lack sufficient data.

This paper introduces the Iterative Federated Clustering Algorithm (IFCA), a framework designed to bridge this gap by simultaneously grouping users into clusters and training specialized models for each group. IFCA provides a robust solution to the "chicken-and-egg" problem of clustered FL: identifying user clusters without known models, and training models without known cluster assignments.

The IFCA Framework

IFCA utilizes an alternating minimization strategy to iteratively refine both the cluster assignments and the model parameters. The process follows a four-step communication cycle:

  1. Broadcast: The central server maintains $k$ distinct models, representing $k$ potential clusters. In each round, the server broadcasts all $k$ models to the participating worker devices.
  2. Identify: Each worker evaluates all $k$ models against its local dataset. The worker identifies its cluster membership by selecting the model that yields the lowest local loss.
  3. Update: Once a cluster is selected, the worker computes a gradient update (or performs several steps of local stochastic gradient descent) specifically for that chosen model. The worker then transmits the update and its cluster identity back to the server.
  4. Aggregate: The server aggregates the updates from all workers belonging to the same cluster, updating the $k$ models for the next iteration.

Edge-Driven Efficiency

Unlike previous clustered FL approaches that required workers to send local models to the server for centralized clustering (e.g., using k-means), IFCA pushes the cluster identification to the edge. This decentralized approach significantly reduces the computational burden on the server and minimizes communication overhead. For deep learning applications, the authors further optimize the framework using weight-sharing: early layers of a neural network are shared globally to learn general features, while IFCA is applied only to the final layers to capture cluster-specific nuances.

Theoretical Foundations

The authors provide a rigorous mathematical analysis of IFCA, proving that for strongly convex functions and linear models, the algorithm converges exponentially fast to a near-optimal statistical error rate. While the theory assumes a reasonably good initialization—a common requirement in latent variable problems—empirical evidence suggests that IFCA is robust in practice, often succeeding with simple random initialization and a few restarts.

Experimental Evaluation

The effectiveness of IFCA was validated across several synthetic and real-world datasets:

  • Rotated MNIST & CIFAR-10: By applying specific rotations (e.g., 0°, 90°, 180°, 270°) to standard image datasets, the authors simulated a federated environment with clear ground-truth clusters. In Rotated MNIST (4 clusters), IFCA achieved 95.25% accuracy, significantly outperforming the global model (88.73%) and local models (80.05%). In Rotated CIFAR-10 (2 clusters), IFCA reached 81.51% accuracy.
  • Federated EMNIST (FEMNIST): In a more natural setting where handwritten characters are grouped by writer, IFCA achieved approximately 88% accuracy, surpassing the global model baseline of 84.45%.
  • Cluster Discovery: The algorithm demonstrated the ability to identify underlying clusters rapidly, often reaching perfect cluster identification within 30 communication rounds for Rotated MNIST.

Robustness and Limitations

A key finding in the FEMNIST experiments was IFCA's robustness to the choice of $k$. If the algorithm is initialized with more clusters than exist in the data, it naturally leaves the redundant clusters empty rather than forcing data into incorrect groups.

Despite its success, the authors note certain limitations that provide avenues for future research. The current theoretical guarantees rely on assumptions such as full worker participation and strongly convex loss functions. Future work aims to extend this analysis to non-convex functions (like full deep neural networks) and scenarios involving partial worker participation in each round.

Conclusion

IFCA offers an efficient and theoretically grounded framework for addressing data heterogeneity in Federated Learning. By enabling edge-driven clustering and iterative model refinement, it provides a scalable path toward personalized FL that outperforms both traditional global and local training strategies.

Summary updated

BibTeX
@article{ghosh2020efficient,
  author = {Avishek Ghosh and Jichan Chung and Dong Yin and Kannan Ramchandran},
  title = {{An Efficient Framework for Clustered Federated Learning}},
  journal = {IEEE Trans. Information Theory},
  year = {2020},
  doi = {10.1109/tit.2022.3192506},
}
Figure