FlexFed: Mitigating Catastrophic Forgetting in Heterogeneous Federated Learning in Pervasive Computing Environments
Sara Alosaime, Arshad Jhumka
TL;DR
This work tackles catastrophic forgetting in heterogeneous federated learning for HAR in pervasive computing environments. It introduces FlexFed, which combines offline client training and performance-adaptive memory allocation to preserve knowledge across non-IID, intermittently available data streams, and employs a novel forgetting metric $F^r$ within a HAR-oriented evaluation framework. Empirical results show that FlexFed achieves $10$–$15\%$ efficiency gains and faster, more stable convergence, with especially strong improvements for infrequent or underrepresented classes. The approach enhances FL practicality for resource-constrained HAR deployments by improving memory efficiency and resilience to distribution shifts.
Abstract
Federated Learning (FL) enables collaborative model training while preserving privacy by allowing clients to share model updates instead of raw data. Pervasive computing environments (e.g., for Human Activity Recognition, HAR), which we focus on in this paper, are characterized by resource-constrained end devices, streaming sensor data and intermittent client participation. Variations in user behavior, common in HAR environments, often result in non-stationary data distributions. As such, existing FL approaches face challenges in HAR settings due to differing assumptions. The combined effects of HAR characteristics, namely heterogeneous data and intermittent participation, can lead to a severe issue called catastrophic forgetting (CF). Unlike Continuous Learning (CL), which addresses CF using memory and replay mechanisms, FL's privacy constraints prohibit such strategies. To tackle CF in HAR environments, we propose FlexFed, a novel FL approach that prioritizes data retention for efficient memory use and dynamically adjusts offline training frequency based on distribution shifts, client capability and offline duration. To better quantify CF in FL, we introduce a new metric that accounts for under-represented data, enabling more accurate evaluations. We also develop a realistic HAR-based evaluation framework that simulates streaming data, dynamic distributions, imbalances and varying availability. Experiments show that FlexFed mitigates CF more effectively, improves FL efficiency by 10 to 15 % and achieves faster, more stable convergence, especially for infrequent or under-represented data.
