Differentially Private Clustered Federated Learning

Saber Malekmohammadi, Afaf Taik, Golnoosh Farnadi

Abstract

Federated learning (FL) often incorporates differential privacy (DP) to provide rigorous data privacy guarantees. However, high structured data heterogeneity makes vanilla FL settings sensitive and prone to errors, a problem exacerbated by DP noise. We propose R-DPCFL, a robust algorithm for differentially private clustered FL. By clustering clients based on both model updates and training loss values, and employing large batch sizes with Gaussian Mixture Models (GMM) in early rounds, our approach reduces the impact of DP noise. Theoretical analysis and experimental results across diverse data distributions demonstrate R-DPCFL's effectiveness in identifying client clusters correctly while maintaining privacy.

Introduction

Federated Learning (FL) enables training machine learning models on decentralized data without direct access to raw records. Despite its promise, FL faces two significant challenges: data heterogeneity (non-IID data across clients) and the need for Differential Privacy (DP). In environments with "structured heterogeneity"—where clients naturally form distinct groups (e.g., hospitals with different medical specialties)—a single global model often performs poorly for all.

Clustered Federated Learning (CFL) addresses this by grouping similar clients to train specialized models. However, CFL is highly sensitive to stochastic noise. When DP is introduced, the added random noise "smears" client gradients, making it difficult for the server to distinguish between genuine data patterns and privacy-preserving noise. This often leads to clustering failures and degraded model utility.

The R-DPCFL Framework

To overcome these hurdles, the researchers developed R-DPCFL (Robust DP Clustered FL), a three-stage algorithm designed to be resilient to DP noise.

The three-stage R-DPCFL algorithm: 1) GMM learning with full batches, 2) Soft clustering, and 3) Local hard clustering via loss evaluation.

Stage 1: The Denoising Round

In the initial training round ($e=1$), clients utilize their entire local dataset as a single "full batch." While computationally intensive, this strategy is grounded in the theoretical observation that DP noise variance decreases significantly as batch size increases. By "cleaning" the gradients in this way, the server can more accurately fit a Gaussian Mixture Model (GMM) to the received updates, establishing a reliable initial clustering.

Stage 2: Soft Clustering

During the intermediate rounds ($2 \leq e \leq E_c$), the server employs the GMM to assign "soft" weights to clients. Rather than being strictly partitioned, clients contribute to multiple cluster models based on their probability of belonging to each. This probabilistic approach prevents early, erroneous hard assignments that could derail the training process in noisy environments.

Stage 3: Local Private Selection

In the final stage ($E_c + 1 \leq e \leq E$), the algorithm transitions to a loss-based "hard" clustering. Clients locally evaluate which mature cluster model performs best on their specific data. To maintain privacy during this selection, they use the Exponential Mechanism, a DP tool that allows them to choose the optimal cluster model without leaking sensitive information about their local data distribution.

Theoretical Justification: The Batch Size Lever

A core innovation of R-DPCFL is the strategic use of batch sizes to manage noise. In standard deep learning, small batches are often preferred for generalization. In the context of DP-CFL, the authors demonstrate that large batches in the first round act as a critical denoising filter.

Variance of model updates as a function of batch sizes for the first round ($e=1$) and subsequent rounds ($e>1$). Note the sharp decrease in variance as the first-round batch size ($b_i^1$) increases.

As shown in the variance analysis, increasing the batch size for the first round ($b_i^1$) dramatically reduces the variance of the noisy updates ($\Delta \hat{\theta}_i^1$). This reduction allows the GMM to converge to the true underlying clusters at a super-linear rate, providing a stable foundation for the subsequent stages of the algorithm.

Experimental Evaluation

The authors evaluated R-DPCFL using standard benchmarks (MNIST, FMNIST, and CIFAR10) modified to simulate structured heterogeneity through covariate and concept shifts.

Key Findings:

  • Robustness to Privacy Budgets: Unlike existing methods like DP-IFCA, which see clustering accuracy plummet as privacy budgets ($\epsilon$) tighten, R-DPCFL remains stable.
  • Superior Accuracy: R-DPCFL consistently outperformed Global FL and local-only training, particularly in scenarios with high noise.
  • Fairness for Minority Groups: The algorithm successfully identified "minority clusters" (smaller groups of clients with distinct data). By preventing these clients from being overwhelmed by the majority's gradients, R-DPCFL significantly improved their local model utility.

Conclusion and Future Directions

R-DPCFL provides a robust path forward for privacy-preserving federated learning in heterogeneous environments. By combining noise-aware clustering with strategic batching, it bridges the gap between rigorous privacy and high model personalization.

Currently, the method is most effective in cross-silo FL settings where clients have substantial local datasets. Future research may explore adapting these techniques for cross-device FL, where individual data scarcity limits the effectiveness of the "full batch" denoising trick. Potential solutions include privacy-preserving dimensionality reduction or synthetic data augmentation to bolster the signal-to-noise ratio in data-poor scenarios.

Summary updated

BibTeX
@article{malekmohammadi2025differentially,
  author = {Saber Malekmohammadi and Afaf Taik and Golnoosh Farnadi},
  title = {{Differentially Private Clustered Federated Learning}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=JSsko0a4yr},
}
Figure