Manuscript Offprint

arXiv:2610.07399

Fed-BRDECS: Privacy-Preserving and Heterogeneity-Aware Federated Deep Embedded Clustering

Haemin Park, Diego Klabjan, Martin W. Braun, Xiuqi Li, Balakrishnan Ananthanarayanan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Federated deep clustering seeks to learn clustering-friendly representations from decentralized unlabeled data while preserving client privacy. However, Deep Embedded Clustering (DEC)-style objectives depend on global soft-assignment statistics that require clients to reveal their sensitive information. We propose Fed-BRDECS, a privacy-preserving and heterogeneity-aware federated deep embedded clustering framework. Fed-BRDECS replaces the globally normalized clustering objective with a locally computable sample-stability loss, avoiding the transmission of local soft-assignment distributions. To tackle non-IID client distributions, we introduce prediction-balanced sampling, which oversamples locally rare predicted clusters without requiring ground-truth labels, and centroid-level restarting, which periodically refreshes biased or inactive centroids. Experiments on image and text clustering benchmarks show that Fed-BRDECS consistently outperforms representative federated clustering and deep clustering baselines under both IID and non-IID partitions. We further demonstrate its applicability to federated time-series anomaly detection, where it improves reconstruction-based detectors without adding inference-time cost.

1 INTRODUCTION

Clustering is a fundamental unsupervised learning task, but in many applications data are distributed across institutions or devices and cannot be centrally collected due to privacy and ownership constraints (Jain, 2010; Rieke et al., 2020; Nguyen et al., 2021; Pfeifer et al., 2024; Presotto et al., 2022). Federated learning (FL) provides a natural paradigm for this setting by enabling multiple clients to collaboratively train a model while keeping raw data local (McMahan et al., 2017). Extending clustering to the federated setting is therefore important for privacy-preserving unsupervised representation learning, where labels are unavailable and data heterogeneity is often severe (Dennis et al., 2021; Garst and Reinders, 2025). However, directly applying centralized deep clustering methods to FL is nontrivial.

DEC (Xie et al., 2016) and its improved variant IDEC (Guo et al., 2017) are the dominant modern approaches to deep clustering, especially in the centralized regime. After autoencoder pretraining, they jointly refine latent representations and cluster assignments using soft assignments and an auxiliary target distribution. In FL, this target requires dataset-level assignment frequencies, and reproducing it requires either exchanging local cluster statistics, which exposes client composition, or constructing targets from incomplete local views, which can bias optimization under heterogeneity.

Heterogeneity can further lead to biased centroid updates and inactive clusters (Dennis et al., 2021; Pan et al., 2023). For example, cluster-frequency-based objectives may over-emphasize locally dominant clusters and under-train rare clusters. Federated clustering can also suffer from cluster collapse and early saturation. Once the encoder and centroids become aligned with an imperfect early partition, subsequent training may reinforce the same assignments rather than correct them. Recent work identifies this phenomenon as a reclustering barrier (Miklautz et al., 2025). In FL, this early saturation can be further amplified because client updates are computed from partial, heterogeneous views and then averaged at the server.

We propose Fed-BRDECS (Federated Balanced-Sampling and Restarted Deep Embedded Clustering with Sample Stability), a federated deep clustering framework with three components. These enhancements address the privacy issues inherent in directly applying DEC to FL, while simultaneously tackling the core challenges of federated deep clustering.

First, it replaces the globally normalized IDEC clustering objective with a locally computable sample-stability loss inspired by DECS (Cheng et al., 2024). Since this objective is computed using only local samples and current centroids, clients do not need to transmit sensitive soft-assignment distributions. Second, to mitigate local imbalance under heterogeneous FL, it uses a prediction-based balanced sampler that oversamples each client's locally rare predicted clusters using the model's own assignments. This acts as an unsupervised form of class-balanced importance sampling. Third, periodic federated restarting recomputes centroids in the current embedding space to recover collapsed clusters.

DEC has several applications, with outlier detection being one of the most common. We use Fed-BRDECS as the building block for federated outlier detection and validate on time-series data from both public benchmarks and a proprietary sensor dataset. Since many detectors are built on deep embedded clustering structures (Zong et al., 2018; Obied et al., 2023), our framework can be easily applied to DEC-based or AE-based federated time-series anomaly detection algorithms. This demonstrates that the proposed framework is not limited to standard clustering benchmarks, but can also serve as a privacy-preserving representation-learning backbone for downstream unsupervised tasks.

Our contributions are summarized as follows.

  1. We propose Fed-BRDECS, a federated deep embedded clustering framework for heterogeneous unsupervised federated learning. Unlike prior federated or distributed clustering methods that exchange local clustering information, Fed-BRDECS enables IDEC-style joint representation and clustering refinement using a locally computable sample-stability loss without transmitting local assignment statistics.

  2. We introduce two mechanisms to improve federated deep clustering under heterogeneous client distributions: a prediction-based balanced sampler that mitigates local cluster imbalance using pseudo-labels, and an iterative restarting strategy that refreshes centroids to reduce early commitment and cluster collapse.

  3. We demonstrate consistent empirical improvements over representative federated clustering and deep clustering baselines, with ablation studies validating the contribution of stability loss, balanced sampling, and restarting.

  4. We evaluate Fed-BRDECS on federated time-series anomaly detection as a practical stress test for unsupervised federated representation learning, showing that the proposed framework can improve reconstruction-based detectors under heterogeneous client time-series distributions without adding inference-time cost.

Table 1: Comparison with representative federated clustering methods. A check mark indicates that the method explicitly supports the corresponding property. “Privacy-preserving” means that clients do not transmit local cluster assignments or soft-assignment matrices.

MethodPrivacy-preservingDeep clusteringHeterogeneity-aware
k-FED✓
DWF k-Means
FKM
FFCM
F-DEC✓
CCFC✓✓
Fed-BRDECS✓✓✓

References (70)

  • Practical approach to asynchronous multivariate time series anomaly detection and localization
  • USAD: Unsupervised anomaly detection on multivariate time series
  • Robust federated clustering under heterogeneity and adversaries
  • Deep embedding clustering driven by sample stability
  • Multi-level analysis of imbalance to resolve non-IID-ness in federated learning
  • Deep learning for classical Japanese literature (opens arXiv in a new tab)
  • Graph neural network-based anomaly detection in multivariate time series
  • The MNIST database of handwritten digit images for machine learning research
  • Heterogeneity for the win: One-shot federated clustering
  • Federated K-means clustering
  • Improved deep embedded clustering with local structure preservation
  • Dynamically weighted federated k-means (opens arXiv in a new tab)
  • H., Qi, H., and Brown, M (opens arXiv in a new tab)
  • Data clustering: 50 years beyond K-means
  • RCV1: A new benchmark collection for text categorization research
  • Data imbalance solutions using pseudo-cluster and two-step classification methods
  • FedTADBench: Federated time-series anomaly detection benchmark
  • Liu, J., Yan, J., and Zhang, Z.-Y. (2024). CCFC: Bridging federated clustering and contrastive learning. arXiv preprint arXiv:2401.06634. (opens arXiv in a new tab)
  • Deep temporal clustering: Fully unsupervised learning of time-domain features (opens arXiv in a new tab)
  • LSTM-based encoder-decoder for multi-sensor anomaly detection
  • Deep embedded clustering of urban communities using federated learning
  • Communication-efficient learning of deep networks from decentralized data
  • Breaking the reclustering barrier in centroid-based deep clustering
  • Federated learning for Internet of Things: A comprehensive survey
  • Deep clustering-based anomaly detection and health monitoring for satellite telemetry
  • A threshold selection method from gray-level histograms
  • Machine unlearning of federated clusters
  • Class-grouped normalized momentum and faster hyperparameter exploration to tackle class imbalance in federated learning
  • Federated unsupervised random forest for privacy-preserving patient stratification
  • FedCLAR: Federated clustering for personalized sensor-based human activity recognition
  • The future of digital health with federated learning
  • Deep one-class classification
  • Differentially private federated k-means clustering with server-side data
  • Performance enhancement in federated learning by reducing class imbalance of non-IID data
  • Towards federated clustering: A federated fuzzy c-means algorithm (FFCM) (opens arXiv in a new tab)
  • Robust anomaly detection for multivariate time series through stochastic recurrent neural network
  • Reducing implicit class imbalance in unlabeled datasets using text-specified sensitive attributes
  • TranAD: Deep transformer networks for anomaly detection in multivariate time series data
  • Addressing class imbalance in federated learning
  • Compatible transformer for irregularly sampled multivariate time series
  • Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms
  • Unsupervised deep embedding for clustering analysis
  • Federated deep embedded clustering under privacy protection
  • Towards k-means-friendly spaces: Simultaneous deep learning and clustering
  • Deep autoencoding Gaussian mixture model for unsupervised anomaly detection
  • Thus, $p_i(f)$ is the centralized DEC target for sample $i$, whereas $p_i(f^{(k)})$ is the target reconstructed using only client $k$'s local frequencies
  • By Lemma A.1
  • The quantity $\Delta_{k}$ measures the spread of these reweighting factors
  • Local reconstruction can change which centroid receives the larger target probability for the same sample
  • It therefore encourages confident sample-level assignments without directly enforcing balanced use of the centroids
  • For each $j \geq 2$, set $\mu_j = \mu_1 + mv_j$, where $v_j$ is a unit vector
  • Since $z_i \in Z$ and the diameter of a convex hull is equal to the diameter of its generating set
  • We use k-FED because it constructs global centroids from uploaded local cluster means without requiring clients to transmit local soft assignment statistics or cluster-count statistics, which may reveal sensitive information about client-specific data composition
  • Following k-FED, the client sends only the resulting local cluster means to the server without sending cluster assignment statistics
  • For example, when $C = 10$, $n_k = 5,000$, $\Delta = 1$, and $\varepsilon = 1$, the expected $\ell_1$ error in the recovered composition is only
  • Under the Laplace mechanism, the corresponding noise scale becomes
  • Moderate noise preserves clustering utility but still reveals an accurate estimate of local cluster composition; noise large enough to obscure that composition makes the statistics unreliable for clustering
  • Thus, for image datasets, these methods operate on flattened raw pixels, while for REUTERS-10K they operate on TF-IDF features
  • Each entry reports ACC and NMI in parentheses
  • A growing thread also builds detectors on deep embedded clustering itself, including DTC (Madiraju et al., 2018) and DCLOP (Obied et al., 2023)
  • The prediction-balanced sampler is constructed from the induced pseudo-clusters but with smoothing parameterized by $\gamma$
  • Therefore, Fed-BRDECS acts as a training-time representation-learning module and does not add inference-time cost
  • Thus, the LSTM-AE backbone is unchanged except for the temporary clustering head used during training
  • We obtain a window-level representation by mean pooling over time:
  • The purpose is to increase the exposure of locally rare normal regimes during training, while avoiding overly aggressive oversampling that may overfit a small number of anomalous windows
  • Here, $\gamma$ controls the strength of rebalancing: $\gamma = 0$ recovers uniform sampling, while $\gamma = 1$ corresponds to the standard inverse-frequency sampler
  • After reconstruction pretraining, each client extracts clustering embeddings $\{z_{k,i}\}$ from its local windows and runs local k-means
  • Figure 4 summarizes the factory-product metadata
  • We do not evaluate TranAD on this dataset because TranAD is architecture-specific to regularly sampled fixed-window inputs and is not directly compatible with the CoFormer backbone
  • Each panel visualizes multiple examples over three sensor channels