Introduction
Federated Learning (FL) enables collaborative model training across multiple clients without centralizing raw data. However, real-world deployments frequently encounter non-IID data, where data distributions vary significantly between clients. These variations can manifest as feature shifts (e.g., different imaging equipment), label shifts (e.g., varying disease prevalence), or concept shifts.
Existing Clustered Federated Learning (CFL) methods attempt to group similar clients but often require prior knowledge of the cluster count, incur high computational overhead, or struggle to assign new, unlabeled clients to appropriate clusters at test time.
The FLUX Framework
FLUX (Federated Learning with Scalable Unsupervised Clustering and Test-Time Adaptation) addresses these challenges through a descriptor-driven approach. The framework is built on three primary components:
- Descriptor Extraction: Clients generate a compact "descriptor"—a statistical fingerprint of their local data distribution. This is achieved by mapping data into a latent space via the model's hidden layers, performing dimensionality reduction (PCA), and computing low-order moments (mean and covariance).
- Unsupervised Clustering: The server aggregates these descriptors and employs an adaptive density-based clustering algorithm. This method automatically identifies the optimal number of clusters by analyzing the "elbow point" of descriptor distances, removing the need for pre-defined cluster counts.
- Test-Time Adaptation: For new clients joining during the inference phase, FLUX generates a label-agnostic descriptor using only input features. The server then matches this client to the nearest cluster centroid, providing an optimized specialized model immediately.
Key Insights
A core innovation of FLUX is using latent space statistics as a proxy for the 2-Wasserstein distance between data distributions. This allows for accurate clustering without raw data exposure. Furthermore, the dimensionality reduction used in descriptor generation provides a layer of privacy, as the mapping is non-invertible. The communication overhead is minimal, with descriptors typically representing less than 0.35% of the total model size.
Experimental Results
FLUX was evaluated against ten state-of-the-art baselines using datasets like MNIST, CIFAR, CheXpert, and Office-Home.
As shown in the results, FLUX consistently maintains high accuracy even as data heterogeneity increases. In specific benchmarks like Fashion-MNIST, it achieved an accuracy boost of up to 23 percentage points over the next best baseline. The system also demonstrated robust scalability, handling up to 1,200 clients with partial participation.
Conclusion and Future Work
FLUX provides a scalable, efficient, and privacy-preserving solution for clustered federated learning under arbitrary distribution shifts. While highly effective, current limitations include the need for sufficient local data to generate robust descriptors and a lack of support for dynamic distribution drift. Future research will focus on adaptive re-clustering to handle evolving client data distributions over time.
Summary updated