Fed-REACT: Federated Representation Learning for Heterogeneous and Evolving Data

Yiyue Chen, Usman Akram, Chianing Wang, Haris VikaloarXiv 2025

Abstract

Motivated by the high resource costs and privacy concerns associated with centralized machine learning, federated learning (FL) has emerged as an efficient alternative that enables clients to collaboratively train a global model while keeping their data local. However, in real-world deployments, client data distributions often evolve over time and differ significantly across clients, introducing heterogeneity that degrades the performance of standard FL algorithms. In this work, we introduce Fed-REACT, a federated learning framework designed for heterogeneous and evolving client data. Fed-REACT combines representation learning with evolutionary clustering in a two-stage process: (1) in the first stage, each client learns a local model to extracts feature representations from its data; (2) in the second stage, the server dynamically groups clients into clusters based on these representations and coordinates cluster-wise training of task-specific models for downstream objectives such as classification or regression. We provide a theoretical analysis of the representation learning stage, and empirically demonstrate that Fed-REACT achieves superior accuracy and robustness on real-world datasets.

Introduction

Standard Federated Learning (FL) algorithms, such as FedAvg, typically assume that client data is independent and identically distributed (IID) and remains static over time. In practice, these assumptions are frequently violated. For instance, autonomous vehicles in different geographic locations encounter distinct environmental patterns (inter-client heterogeneity), and individual user behavior naturally shifts over time (intra-client non-stationarity). Existing clustered FL methods attempt to address heterogeneity by grouping similar clients, but they often rely on static "snapshots" of data, leading to instability and poor performance when data distributions drift.

Methodology: The Fed-REACT Framework

Fed-REACT (Federated representation learning and REvolutionary ACtusTering) addresses these challenges through a decoupled two-phase approach:

  1. Federated Representation Learning: Clients first employ Self-Supervised Learning (SSL) to train a shared encoder. By using a contrastive loss, the encoder learns to extract universal low-level features from raw time-series data. This global sharing of representations leverages the commonality of basic features across different clients.
  2. Clustered Task Model Learning: Upon establishing a robust representation, the server clusters clients based on the parameters of their local task-specific models.
  3. Evolutionary Clustering via AFFECT: To ensure stability in the face of evolving data, Fed-REACT utilizes the AFFECT algorithm. Unlike standard clustering, AFFECT incorporates historical cluster information through an adaptive forgetting factor. This mechanism allows the framework to distinguish between temporary noise and genuine distribution shifts, preventing clients from "jittering" between clusters.

Experimental Evaluation

The framework was evaluated on three diverse time-series datasets: Real-time Digit (RTD) trajectories, EEG brain signal recordings, and SUMO EV battery life simulations.

Performance and Accuracy

Fed-REACT consistently outperforms state-of-the-art baselines, including FedProx, Ditto, and IFCA. On the RTD dataset, it achieved a near-perfect accuracy of 99.2%. Notably, on the SUMO EV regression task, Fed-REACT reduced the Root Mean Square Error (RMSE) to 1.3, compared to the 20.1–43.2 range observed in supervised FL baselines.

Performance comparison of Fed-REACT against various FL baselines across multiple datasets and architectures.

Robustness to Data Drift

A key strength of Fed-REACT is its ability to maintain stable cluster assignments as data evolves. Using the Rand Score to measure the similarity between predicted and ground-truth clusters, experiments show that Fed-REACT recovers and maintains high clustering accuracy much faster and more reliably than snapshot-based methods like IFCA or FLACC.

Rand Score comparison on RTD and EEG datasets showing Fed-REACT's stability over communication rounds.

Discussion and Future Work

Fed-REACT demonstrates that separating feature representation from task-specific learning, combined with evolutionary clustering, provides a robust solution for non-stationary federated environments. By centralizing clustering logic at the server, it also maintains communication efficiency.

However, several avenues for future research remain. The current reliance on a central server for clustering suggests a move toward fully decentralized, peer-to-peer architectures. Additionally, while the "elbow method" can estimate the number of clusters, automating this process in real-time remains a challenge. Finally, optimizing server-side computational scaling for millions of devices will be critical for large-scale industrial deployment.

Summary updated

BibTeX
@misc{chen2025fed,
  author = {Yiyue Chen and Usman Akram and Chianing Wang and Haris Vikalo},
  title = {{Fed-REACT: Federated Representation Learning for Heterogeneous and Evolving Data}},
  year = {2025},
  eprint = {2509.07198},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.07198},
}
Figure