Introduction: The Challenge of Forgetting in Decentralized AI
Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models across decentralized devices while preserving data privacy. However, real-world FL environments are dynamic; user habits change (data drift), and participants frequently join or leave the network (client churn). These dynamics lead to catastrophic forgetting, where the global model loses previously acquired knowledge when learning new tasks.
This forgetting manifests in two primary ways:
- Inter-task forgetting: The loss of performance on old tasks as the model adapts to new ones.
- Intra-task forgetting: The loss of knowledge specific to certain clients who are not participating in the current training round.
Conventional solutions like data replay are impractical due to privacy constraints and limited device storage. To address this, researchers proposed CFeD (Continual Federated Learning with Distillation).
Methodology: The CFeD Framework
CFeD introduces a multi-faceted approach to maintain model stability without requiring access to raw historical data. The framework relies on three core pillars:
1. Knowledge Distillation via Surrogate Datasets
Instead of replaying private data, CFeD utilizes unlabeled public "surrogate" datasets. The model from a previous round acts as a "teacher," generating "soft labels" (probability distributions) on the surrogate data. The current "student" model is then trained to match these distributions, effectively "reviewing" the logic of old tasks.
2. Client Division Mechanism
CFeD optimizes the training process by partitioning participating clients into two functional groups:
- Learners: These devices focus on training the model on the latest task using their local private data.
- Reviewers: These devices use the surrogate dataset and the previous global model to perform knowledge distillation, ensuring the network retains historical knowledge.
3. Server Distillation (SD)
The central server performs an additional distillation step after aggregating client updates. By using its own surrogate dataset, the server ensures the new global model remains consistent with the best features of both the previous global state and the fresh local updates.
Experimental Setup
The framework was rigorously tested across various scenarios:
- Text Classification: Utilizing Chinese news datasets (THUCNews, SogouCS, Sina2019) with the NLPIR Weibo Corpus as surrogate data.
- Image Classification: Using CIFAR-10 and CIFAR-100 with Caltech-256 as surrogate data.
- Scenarios: Evaluated under Domain-IL (shifting input distributions) and Class-IL (introduction of entirely new categories).
Key Results and Insights
CFeD demonstrates a significant performance leap over traditional FL methods like FedAvg. In the challenging Class-IL text scenario, where FedAvg's accuracy often collapses to approximately 32% due to forgetting, CFeD maintains a robust average accuracy of 83-85%.
The results highlight several critical insights:
- Dark Knowledge Retention: Soft labels on unrelated public data are sufficient to preserve complex logic from previous tasks.
- Stability-Plasticity Balance: The division of labor between Learners and Reviewers successfully manages the trade-off between learning new information and retaining the old.
- Server-Side Refinement: The Server Distillation (SD) step provides a crucial "final polish," stabilizing the model against noisy or divergent updates from heterogeneous clients.
Conclusion
CFeD offers a scalable and privacy-preserving solution to catastrophic forgetting in Federated Learning. By leveraging surrogate data and strategic client roles, it enables AI models to evolve continuously alongside their users. While the approach introduces some computational overhead due to distillation passes, its ability to maintain high performance in non-static environments makes it a vital step toward truly lifelong decentralized learning.
Summary updated