A Federated Generalized Expectation-Maximization Algorithm for Mixture Models with an Unknown Number of Components

Michael Ibrahim, Nagi Gebraeel, Weijun Xie

Introduction

Federated Learning (FL) enables multiple clients to collaboratively train machine learning models without sharing raw, privacy-sensitive data. However, the vast majority of FL research assumes a supervised learning paradigm where all clients share an identical set of labels or classes. In real-world unsupervised scenarios—such as an equipment manufacturer attempting to cluster machine faults across various factories—this assumption frequently breaks down. Clients typically possess heterogeneous, overlapping subsets of clusters. Crucially, the central server does not know the total number of unique clusters ($K$) globally.

While a few federated clustering methods exist, almost all require the server to know $K$ in advance. The rare exceptions, such as AFCL, suffer from severe privacy vulnerabilities and poor scalability. To address this gap, this paper introduces FedGEM (Federated Generalized Expectation-Maximization), a mathematically rigorous, privacy-preserving federated clustering algorithm capable of organically discovering the global number of clusters.

Methodology: The FedGEM Algorithm

FedGEM operates through a two-stage process of collaborative training and final aggregation, leveraging a novel approach to cluster merging.

1. Client-Side Computations: Uncertainty Sets

Instead of merely executing local Expectation-Maximization (EM) and transmitting cluster centroids to the server, each client solves a local optimization problem to construct an uncertainty set around each of its local cluster centroids. Geometrically, this is a Euclidean ball with a specific radius, carefully calculated to ensure that any point within it will not decrease the local log-likelihood of the client's data.

2. Server-Side Computations: Overlap Detection

Clients transmit their centroids and these calculated radii to the central server. The server then evaluates intersections between the uncertainty sets of different clients. If sets overlap, the server deduces that these clients are observing the same underlying global cluster and merges them into a unified "super-cluster."

3. Theoretical Grounding

The authors apply this framework specifically to isotropic Gaussian Mixture Models (GMMs). They provide a tractable, bi-convex reformulation for the complex radius calculation, enabling efficient client-side computation. Furthermore, they rigorously prove that the algorithm converges to the true cluster parameters under common assumptions.

Experimental Setup

The researchers evaluated FedGEM across a diverse array of datasets:

  • Image Datasets (via VAE embeddings): MNIST, Fashion MNIST (FMNIST), Extended MNIST (EMNIST), and CIFAR-10.
  • UCI Tabular Datasets: Abalone, Anuran Calls, and Waveform.
  • Synthetic Data: Isotropic Gaussian clusters generated to test sensitivity to cluster separation and scalability.

Key Insights and Results

The empirical evaluation of FedGEM yielded several significant findings:

  • Dynamic $K$ Discovery: By relying on the geometric intersections of uncertainty sets, FedGEM organically infers the global $K$, bypassing the need for prior human estimation. Quantifying the "confidence" of a local cluster estimate via an optimization-derived radius provides the server with a mathematically grounded method to map the global cluster landscape without accessing raw data.
  • Dominance Over Unknown-$K$ Baselines: FedGEM consistently and significantly outperformed AFCL across all datasets. For instance, on the MNIST dataset, FedGEM achieved an Adjusted Rand Index (ARI) of 0.452, compared to AFCL's 0.038.
  • Competitive with Centralized Models: Remarkably, FedGEM frequently outperformed federated methods that were provided the true $K$ (such as FFCM) and consistently beat the centralized DP-GMM, a standard centralized model for unknown $K$.
  • High Scalability and Robustness: FedGEM executed significantly faster than AFCL (e.g., ~552 seconds vs. ~2047 seconds on MNIST) and scaled exceptionally well as the number of features, samples, and clients increased. It also demonstrated robustness, converging and performing competitively even when theoretical assumptions of "well-separated clusters" were challenged.

Limitations and Future Directions

While FedGEM represents a significant step forward in federated clustering, the authors note several areas for future improvement:

  • Fixed Cluster Weights: The current algorithm allows for personalized local clusters, but their weights remain fixed. Future iterations aim to make these weights trainable to enhance personalization.
  • Stylized Models: The implementation and theoretical proofs currently focus on isotropic GMMs (spherical clusters). Extending the framework to anisotropic GMMs (elliptical clusters) or more complex mixture models is necessary for handling highly complex real-world data distributions.
  • Differential Privacy (DP) Integration: Although the authors discuss adding DP noise to shared centroids, fully privatizing the radius computation without compromising the algorithm's convergence guarantees remains an open theoretical challenge.
  • Hyperparameter Tuning: The final aggregation radius relies on a heuristic that requires cross-validation, which can be computationally expensive in a federated environment.

Summary updated

BibTeX
@inproceedings{ibrahim2026federated,
  author = {Michael Ibrahim and Nagi Gebraeel and Weijun Xie},
  title = {{A Federated Generalized Expectation-Maximization Algorithm for Mixture Models with an Unknown Number of Components}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=CELYMnherN},
}
Figure