Virtual concept drift detection and adaptation in federated data stream learning

Xiaoting Chen, Shuo Wang, Tengsen Zhang, Guanhui Yang, Yun YangInternational Journal of Data Science and Analytics 2025 · DOI

TL;DR

This paper introduces FL-HVD, the first comprehensive framework specifically designed to detect and adapt to "virtual" concept drift in Federated Learning (FL). By combining a high-speed detector (FELK) with a dual-model adaptation strategy (FDM), the authors demonstrate significant improvements in model accuracy and recovery speed across 21 complex drifting scenarios.

What Problem Does This Paper Address?

In the world of machine learning, "concept drift" refers to the phenomenon where data distributions change over time, causing models to become obsolete. Most research focuses on real drift, where the relationship between input data and labels changes (e.g., a "cat" suddenly looks like a "dog").

However, this paper tackles virtual drift, where the distribution of the input features themselves changes ($p(x)$), but the classification boundaries remain the same. While virtual drift doesn't technically change the "correct" answer, it severely degrades Federated Learning models because they end up learning from biased, non-representative data.

Handling this in FL is a nightmare because drift isn't just temporal (changing over time); it’s spatial. Different clients might experience different types of drift at different times, making global model aggregation a moving target.

Methods

The authors propose the FL-HVD (Federated Learning for Handling Virtual Drift) framework, which consists of two novel components:

  1. FELK (Federated Early Leave Ks_2samp): A drift detection algorithm optimized for resource-constrained edge devices. It uses the Kolmogorov-Smirnov test but adds an "early exit" mechanism. As soon as a drift is detected in one feature dimension, the system stops further checks, saving precious computational cycles and improving detection speed.
  2. FDM (Federated Dual-Model): Instead of the standard approach of resetting a model or simply weighting updates, FDM maintains two global models on the server: one for "drifted" data and one for "non-drifted" data. Clients test both and choose the one that performs better for their local data. This allows the system to handle asynchronous drift—where some users have moved to a new data concept while others remain on the old one.

Datasets

The study is rigorous, testing the framework against:

  • Synthetic Benchmarks: 21 custom scenarios generated using Gaussian (2D and 8D), Hyperplane, and Circle data generators. These scenarios vary across five temporal features (like speed and severity) and four spatial features (like synchronism and correlation).
  • Real-World Datasets: Four diverse datasets commonly used in drift literature: Forest CoverType (geospatial), Electricity (utility pricing), GSD (gesture sensing), and USD_SGD (currency exchange rates).

Key Insights and Ideas

  • Virtual Drift is Not Negligible: The "aha moment" here is that even if the classification boundary doesn't move, a change in feature distribution can tank global accuracy to near 0% if the drift directions among clients are different.
  • Spatial Heterogeneity is the Real Boss: The authors found that how drift is distributed across the network (spatial features) is often more impactful than how fast it happens (temporal features). For example, independent drifts across clients cause more dissimilarity and are harder to aggregate than correlated drifts.
  • The Power of Choice: By letting clients "pick" between a drifted and non-drifted global model, FDM effectively preserves historical knowledge while simultaneously learning new patterns. This prevents the "catastrophic forgetting" common in simpler adaptation strategies.

Key Results

  • Detection Excellence: FELK achieved a 0.3% improvement in detection accuracy over standard methods while providing a 2.54-second speedup in detection time.
  • Adaptation Superiority: In real-world tests, the FL-HVD framework outperformed mainstream FL methods (like FedAvg, CDA-FedAvg, and FedAND) in 3 out of 4 datasets.
  • Robustness to Batch Size: The authors found that smaller batch sizes (around 100) are optimal for detection accuracy, as they capture abrupt changes more effectively than larger, "smoother" batches.

Limitations and Future Work

The authors acknowledge that maintaining two global models (FDM) increases memory and communication costs on the server side. While they argue that servers are typically powerful enough to handle this, it could be a bottleneck for massive-scale deployments with millions of clients.

Future work aims to:

  • Scale the framework to even larger, more heterogeneous IoT systems.
  • Develop techniques that can simultaneously handle both virtual and real concept drift without significantly increasing the computational overhead.
  • Explore more complex neural network architectures beyond the MLPs used in this initial study.

Summary updated

Abstract

Abstract This paper aims to provide valuable insights and solutions for addressing virtual concept drift in federated learning (FL). With the widespread application of FL across various domains, learning from data streams and addressing concept drift (i.e., distributional changes in data) have emerged as a crucial research focus in this field. As a major type of concept drift, virtual concept drift, however, has received very little attention so far. This study provides a deep understanding of how virtual drift in streaming data can affect FL models and how it can be tackled effectively. Firstly, we characterize virtual drift with five temporal and four spatial features and design 21 virtual drifting scenarios to investigate its impact. Then we propose a FL framework handling virtual drift, called FL-HVD. It integrates two key components—virtual drift detection and adaptation. We explore how to detect virtual drift effectively in FL by comparing 11 distribution-based and unsupervised drift detection techniques designed for the traditional data stream learning. In particular, we propose FELK that customize and improve Ks_2samp with exceptional detection accuracy and timeliness. With the alert from the detector, we propose a new model adaptation method FDM, to mitigate the negative impact of the detected virtual drift in FL. The experimental results show that FL-HVD performs the best in accuracy in both synthetic and real-world scenarios.
BibTeX
@article{chen2025virtual,
  author = {Xiaoting Chen and Shuo Wang and Tengsen Zhang and Guanhui Yang and Yun Yang},
  title = {{Virtual concept drift detection and adaptation in federated data stream learning}},
  journal = {International Journal of Data Science and Analytics},
  year = {2025},
  doi = {10.1007/s41060-025-00953-2},
}
Figure