Abstract
Mobile AI services face a dual challenge: learning from decentralized data (Federated Learning) and adapting to new tasks over time without forgetting previous ones (Continual Learning). This paper introduces FLwF-2T, a novel Federated Continual Learning (FCL) framework that employs a "Two-Teacher" distillation approach. By leveraging both a client’s historical local knowledge and the global server's aggregated insights, FLwF-2T significantly mitigates catastrophic forgetting in Human Activity Recognition (HAR) tasks on mobile devices.
Introduction
In pervasive computing, edge devices like smartphones continuously encounter new data and tasks. Standard Federated Learning (FL) assumes static data distributions, but in practice, models must learn incrementally. When a model learns a new activity (e.g., "Running") after "Walking", it often suffers from catastrophic forgetting, losing its previous capabilities. This paper addresses the "class-incremental" scenario where models must maintain performance across all historical classes in a decentralized environment without sharing raw data.
Methodology: The FLwF-2T Framework
The core innovation is the Federated Learning without Forgetting - 2 Teachers (FLwF-2T) algorithm. It utilizes Knowledge Distillation to transfer expertise from two distinct "teacher" models to a "student" model on the client device:
- The Local Past Model (Teacher 1): The client’s own model from the previous training round. This preserves specific knowledge of tasks the client has already mastered locally.
- The Global Server Model (Teacher 2): The aggregated model from the server, containing collective knowledge from all participating clients. This acts as a regularizer, preventing the local model from over-fitting to its current narrow task and incorporating general patterns discovered by the network.
A hybrid strategy, FLwF-2T/FT, was also proposed. In this setup, "generalized" clients with diverse data use simple Fine-Tuning (FT), while "specific" clients undergoing task shifts utilize the two-teacher distillation to protect against forgetting.
Experimental Setup and Insights
The framework was evaluated using the UCI HAR dataset, featuring accelerometer and gyroscope data for six activities: Walking, Walking Upstairs, Walking Downstairs, Sitting, Standing, and Laying. The simulation involved five clients learning tasks sequentially.
Analysis of the feature space using Principal Component Analysis (PCA) revealed critical insights into the difficulty of the HAR task.
As shown in the PCA plot, activities like "Laying" are distinct, whereas "Sitting" and "Standing" are closely clustered. This proximity explains why models frequently confuse these two activities during incremental learning, highlighting the need for robust distillation to maintain class boundaries as new data arrives.
Key Results
The proposed FLwF-2T/FT method demonstrated superior performance across multiple metrics compared to baseline approaches.
Key findings include:
- Enhanced Accuracy: FLwF-2T/FT achieved a client-specific generalized accuracy ($A^1_{gen}$) of 0.753, significantly outperforming standard Federated Fine-Tuning (FCL-FT at 0.478) and local-only Continual Learning (CL-FT at 0.338).
- Mitigated Forgetting: The forgetting metric (measuring accuracy loss on old tasks) was reduced to 0.212 with the two-teacher approach, a stark improvement over the total forgetting (1.0) observed in standard fine-tuning scenarios.
- Exemplar Efficiency: Integrating a small buffer of "exemplars" (10 saved examples per old task) further reduced the forgetting rate to 0.12, demonstrating that distillation works synergistically with memory-based methods.
Conclusion
FLwF-2T effectively bridges the gap between Federated and Continual Learning for mobile pervasive services. By using the server as a "safety net" and preserving local history through distillation, the framework allows edge devices to learn new tasks while maintaining high performance on old ones. Future work will focus on scaling the system to thousands of devices and automating the selection of training strategies based on local data distributions.
Summary updated