Manuscript Offprint

arXiv:2608.22593

GCA: Global Centroid Alignment in Federated Learning

Jong-Ik Park, Harry Jiang, Logan Blakely, Georgios Fragkos, Shamina Hossain-McKenzie, Carlee Joe-Wong

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Autoencoder (AE)-based federated learning (FL) is attractive for anomaly detection when clients have limited local data. However, conventional FL exchanges AE parameters or gradients, incurring substantial communication overhead and potentially exposing input training data information, since AEs are explicitly optimized to reconstruct their inputs. We introduce Global Centroid Alignment (GCA), a latent-code-mediated FL protocol that coordinates clients without transmitting AE parameters or gradients. In each round, (1) clients first train their local AEs using a reconstruction update and upload a small subset of encoder latent codes to the FL server. (2) The server pools these codes, fits a clustering model, and broadcasts only global latent centroids and their support counts. (3) Each client then updates its encoder by aligning its local latent codes with the nearest centroid using inverse-count weighting to emphasize globally underrepresented patterns. Steps (1)–(3) repeat over communication rounds. Because GCA exchanges only sampled latent codes and centroid statistics, its communication cost depends on latent dimensionality and the numbers of uploaded codes and returned centroids rather than on AE model size. Across five tabular and two vision benchmarks, GCA yields higher reconstruction error under a server-side client data extraction attack in all 21 comparisons and clearly lower cosine similarity in 20 of 21 comparisons with FedAvg, FedProx, and FedNova, showing its ability to protect training data. It even improves test accuracy over FedAvg by up to 5.76%. GCA achieves extraction defense comparable to DP-FedAvg, remains effective when DP-FedAvg does not reduce target resemblance, and lowers per-round communication by up to 99.15%.

Introduction

Federated learning (FL) enables multiple clients to train their own globally informed models without moving their data to another location (McMahan et al. 2017; Li et al. 2020b; Park and Joe-Wong 2024). Each client updates its model locally and sends an update (e.g., gradients or parameter changes) to a coordinating server, which aggregates these updates to form a global model and broadcasts the global model back; clients then continue local adaptation (Konečný et al. 2016). This process repeats until convergence (or for a fixed number of rounds) (Li et al. 2020a; Zhang et al. 2021). Because raw data never leaves client devices, FL reduces data movement compared to centralized training and limits exposure of sensitive records, improving privacy by design (Li et al. 2021; Thapa, Chamikara, and Camtepe 2021). As a result, it is widely deployed in healthcare, finance, mobile keyboards, and industrial IoT, and is especially valuable in data-scarce and data-sensitive settings where cross-client structure can be exploited without sharing raw data (Long et al. 2020; Rieke et al. 2020).

A common task in these applications is that of detecting anomalous data, e.g., device telemetry, medical monitoring, predicting faults in industrial IoT settings, and fraud/abuse detection—where the learning task is to detect rare yet high-impact anomalies with low false-alarm rates (Kea, Han, and Kim 2023; Novoa-Paradela, Fontenla-Romero, and Guijarro-Berdiñas 2023; Shrestha et al. 2024). For such tasks, FL commonly employs reconstruction models such as autoencoders (AEs) (Jiang, Zhou, and Grossklags 2022; Vucovich et al. 2023). To do so, each client trains an AE on its own data (which is assumed to be normal, i.e., non-anomalous) and, in standard practice, uploads parameters or gradients of each locally trained AE model to a central server for aggregation. However, AE-based parameter sharing introduces communication and unique privacy challenges.

For communication, repeatedly uploading full AE parameters is costly for low-spec devices (e.g., microcontrollers with limited RAM and sub-Mbps uplinks) and for edge deployments (e.g., gateways with narrow, skewed traffic) (Singh et al. 2019; Gao et al. 2020). On privacy, because an AE is optimized to reproduce its inputs, its parameters (and even gradients) can encode fine-grained signatures of local samples; a curious or compromised server may exploit these signals to approximate training records (Suganuma, Ozay, and Okatani 2018; Chen and Guo 2023; Ghoshal et al. 2025). Moreover, the encoder-decoder model often collapses onto a narrow manifold that closely interpolates the training set; as a result, decoding arbitrary latent vectors—or even passing random inputs through the AE—tends to yield outputs resembling the training data (Steck 2020). The risk is amplified when a client has few examples (e.g., a small clinic with only a few hundred normal patient records per week), where overfitting makes the autoencoder mapping highly specific to the observed data (Chen et al. 2017).

We therefore propose Global Centroid Alignment (GCA), an FL protocol for AE-based anomaly detection that (i) never shares raw data, parameters, or gradients; (ii) transfers sampled latent codes and centroid statistics; and (iii) remains stable on normals-only data. Reconstruction. GCA begins with a local training: clients train as in standard AE learning, jointly updating the encoder and decoder so that the decoder's output closely matches the input (Tschannen, Bachem, and Lucic 2018). Clients then transmit only a subset of latent codes from their training data (not parameters or raw samples). Aggregation. The server performs aggregation by fitting a lightweight clustering model (e.g., a Gaussian mixture (McLachlan and Rathnayake 2014)) on the pooled latents, and broadcasts only the resulting global latent centroids and their support counts, not parameters or gradients, to the clients. Alignment. Finally, on the client side, an alignment step pulls encoder outputs (latent codes) toward the nearest latent centroid using an inverse-count weight, which emphasizes globally underrepresented patterns and discourages collapse to dominant modes (Anand et al. 2010; Mohammed, Rawashdeh, and Abdullah 2020).

Our key contributions in this paper consist of:

• GCA. A communication-efficient, latent-code-mediated FL method in which clients and a server exchange sampled latent codes, global centroids, and support counts instead of model parameters or gradients.

• Empirical evaluation. Across five tabular and two vision benchmarks, GCA achieves up to 5.76% higher test accuracy than FedAvg and comparable accuracy to FedProx (Li et al. 2020b), FedNova (Wang et al. 2020), and DP-FedAvg (Abadi et al. 2016; McMahan et al. 2018). GCA also provides stronger extraction defense than FedAvg, FedProx, and FedNova, and more consistent defense than DP-FedAvg, which exhibits failure cases in certain settings, while reducing per-round communication by 84.14%–99.15%.

• Theoretical analysis. We analyze the round-to-round stability of GCA’s reconstruction and alignment updates and show that, under our threat model, the server’s latent-only observations do not uniquely determine the training records.

In the following sections, the Related Work reviews prior studies, the Methodology introduces GCA, and the Adversarial Attack Scenarios describes the considered threat models. The Experimental Evaluation presents the experimental results and compares GCA's communication efficiency with standard FL methods. Finally, the Conclusion summarizes our findings and outlines directions for future work.

References (47)

  • Deep Learning with Differential Privacy
  • An approach for classification of highly imbalanced data using weighting and undersampling
  • Proximal alternating linearized minimization for nonconvex and nonsmooth problems
  • Optimization methods for large-scale machine learning
  • Oversampling to overcome overfitting: exploring the relationship between data set composition, molecular descriptors, and predictive modeling methods
  • Outlier detection with autoencoder ensembles
  • Auto-encoders in deep learning—a review with new perspectives
  • Improved autoencoder for unsupervised anomaly detection
  • Splitting Methods with Variable Metric for Kurdyka–Lojasiewicz Functions and General Convergence Rates
  • End-to-End Evaluation of Federated Learning and Split Learning for Internet of Things
  • Reverse-Engineering Autoencoders: Optimized Gradient-Inversion Attacks for Sensitive Data Extraction
  • Adaptive anomaly detection in performance metric streams
  • Generative latent coding for ultra-low bitrate image compression
  • Privacy-preserving high-dimensional data collection with federated generative autoencoder
  • Linear convergence of gradient and proximal-gradient methods under the polyak-Łojasiewicz condition
  • SelfFed: Self-supervised federated learning for data heterogeneity and label scarcity in medical images
  • Statistical Inference for Autoencoder-based Anomaly Detection after Representation Learning-based Domain Adaptation (opens arXiv in a new tab)
  • Federated Learning: Strategies for Improving Communication Efficiency
  • A survey on federated learning systems: Vision, hype and reality for data privacy and protection
  • Federated optimization in heterogeneous networks
  • Analyzing overfitting under class imbalance in neural networks for image segmentation
  • Federated learning for open banking
  • FedSum: Data-Efficient Federated Learning Under Data Scarcity Scenario for Text Summarization
  • On the number of components in a Gaussian mixture model
  • Communication-efficient learning of deep networks from decentralized data
  • Learning Differentially Private Recurrent Language Models
  • Machine learning with oversampling and undersampling techniques: overview study and experimental results
  • Inceptionism: Going deeper into neural networks
  • Fast deep autoencoder for federated learning
  • Federated learning with flexible architectures
  • The future of digital health with federated learning
  • Communication-Efficient Federated Distillation (opens arXiv in a new tab)
  • Anomaly detection based on lstm and autoencoders using federated learning in smart electric grid
  • Detailed comparison of communication efficiency of split learning and federated learning (opens arXiv in a new tab)
  • Autoencoders that don’t overfit towards the identity
  • Exploiting the potential of standard convolutional autoencoders for image restoration by evolutionary search
  • FedProto: Federated Prototype Learning across Heterogeneous Clients
  • Advancements of federated learning towards privacy preservation: from federated learning to split learning
  • Recent advances in autoencoder-based representation learning (opens arXiv in a new tab)
  • Convergence of a block coordinate descent method for nondifferentiable minimization
  • An anomaly detection approach to identify chronic brain infarcts on MRI. Scientific Reports, 11(1): 7714
  • Anomaly detection via federated learning
  • Tackling the Objective Inconsistency Problem in Heterogeneous Federated Optimization
  • Deep feature compression using rate-distortion optimization guided autoencoder
  • A survey on federated learning
  • VAE-based deep SVDD for anomaly detection
  • Deep autoencoding gaussian mixture model for unsupervised anomaly detection