Online federated learning framework for classification

Wenxing Guo, Jinhan Xie, Jianya Lu, Bei Jiang, Hongsheng Dai, Linglong KongarXiv 2025 · DOI

Abstract

This paper presents a robust solution for training machine learning models on decentralized, continuously arriving data. By integrating Distance-Weighted Discrimination (DWD) with online learning and Differential Privacy, the proposed framework enables scalable, privacy-preserving classification without the need for raw data storage or full retraining. The system utilizes a "renewable estimation" procedure to achieve high accuracy and strong security guarantees, significantly reducing computational costs compared to traditional batch methods.

Introduction

Most Federated Learning (FL) research assumes a "batch" setting where clients possess static datasets. However, real-world applications like smartphones and autonomous vehicles generate data in continuous streams. Traditional FL faces significant hurdles in these environments: scalability issues due to the cost of retraining from scratch and concept drift where data properties change over time. Furthermore, sharing model updates can leak sensitive information. This paper addresses these challenges by proposing a method that is statistically robust, computationally efficient for streams, and mathematically private.

Methods

The framework integrates three core components to handle streaming decentralized data:

  1. Generalized Distance-Weighted Discriminant (DWD): DWD considers the distances of all points to the decision boundary, making it more robust to imbalanced classes and noise than Support Vector Machines (SVMs).
  2. Majorization-Minimization (MM) Optimization: A new algorithm using the MM principle simplifies the complex DWD objective function into an easier-to-minimize surrogate function.
  3. Renewable Estimation: This procedure allows the model to update using only summary statistics (gradients and Hessians) from previous steps and the current data batch, eliminating the need to store historical raw data.
  4. Differential Privacy (DP): To prevent membership inference attacks, calibrated Laplace or Gaussian noise is added to aggregated statistics at the central server.
Conceptual overview of the online federated learning framework.

The architecture, as shown in the figure above, illustrates how data batches arrive sequentially at each client (online learning) while model updates are coordinated across multiple clients (federated learning).

Theoretical Insights

The paper provides formal proofs for consistency and asymptotic normality, ensuring the estimator converges to the optimal model as data accumulates. A key insight is that summary statistics are sufficient "memory" for the model, maintaining accuracy without raw history. Furthermore, the authors prove Bayesian risk consistency, showing the classifier reaches the minimum possible error rate even with privacy-preserving noise. DWD's natural resilience to outliers makes it particularly suited for the non-IID nature of federated data.

Experimental Results

The framework was validated using simulated data and the HARTH (Human Activity Recognition Trondheim) dataset.

  • Efficiency: In simulations, the online method (OnWDP) processed large datasets in 0.1 seconds, compared to 50 seconds for the offline version.
  • Robustness: The method showed clear superiority in handling imbalanced datasets compared to standard DWD implementations.
  • Privacy-Utility Trade-off: While Differential Privacy slightly reduced accuracy, the model remained more stable than traditional batch-learning methods.
  • Real-World Application: On the HARTH dataset, the framework effectively distinguished between motion and rest with high F1 scores, demonstrating its utility for wearable health technology.

Conclusion

The proposed online federated learning framework offers a scalable and private solution for real-time classification. While challenges remain in hyperparameter tuning for Differential Privacy and handling extreme concept drift, the use of renewable estimation and DWD provides a strong foundation for future research in decentralized streaming data analysis.

Summary updated

BibTeX
@misc{guo2025online,
  author = {Wenxing Guo and Jinhan Xie and Jianya Lu and Bei Jiang and Hongsheng Dai and Linglong Kong},
  title = {{Online federated learning framework for classification}},
  year = {2025},
  eprint = {2503.15210},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.15210},
}
Figure