Personalized Federated Domain-Incremental Learning Based on Adaptive Knowledge Matching

Yichen Li, Wenchao Xu, Haozhao Wang, Yining Qi, Jingcai Guo, Ruixuan Li

Abstract

Federated Learning (FL) faces significant challenges in Domain-Incremental Learning (DIL) scenarios due to "catastrophic forgetting," where models lose performance on previous tasks while learning new ones. This paper introduces pFedDIL, a novel framework designed for Personalized Federated Domain-Incremental Learning. pFedDIL utilizes auxiliary classifiers to adaptively match new tasks with existing knowledge, allowing clients to maintain a portfolio of specialized models. Experimental results across multiple benchmarks demonstrate that pFedDIL achieves up to a 14.35% improvement in accuracy over baseline methods while reducing communication overhead and maintaining robustness against data heterogeneity.

Introduction

In Federated Learning (FL), data is distributed across numerous private devices, making it difficult to maintain model performance as new domains are introduced over time. This phenomenon, known as "Catastrophic Forgetting," is particularly acute in Domain-Incremental Learning (FDIL), where the categories remain the same but the environment or data distribution shifts (e.g., transitioning from handwritten digits to street-view digits). Current FL methods often struggle with FDIL because they either assume static classes or attempt to force a single global model to accommodate all domains, leading to interference and poor personalization.

The pFedDIL Framework

The proposed pFedDIL framework addresses these challenges by allowing clients to manage multiple personalized models and adaptively migrate knowledge between them.

Overview of the pFedDIL framework, illustrating the server-client interaction and the local training stages.

The framework consists of four primary components:

  1. Knowledge Matching Intensity: Clients train small auxiliary classifiers alongside their primary models. These act as domain detectors, measuring the similarity between new incoming tasks and previously learned knowledge.
  2. Adaptive Strategy Selection: Based on a similarity threshold ($\lambda$), clients decide whether to update an existing model (if the task is similar) or initialize a new one. This prevents the creation of a "jack of all trades" model that performs poorly across the board.
  3. Knowledge Migration: During training, knowledge is "migrated" from existing local models to the target model using a weighted loss function. The weights are determined by the matching intensity, treating inter-task correlation as a guide for regularization.
  4. Partial Parameter Sharing: To maintain efficiency, the auxiliary classifiers and target models share a common feature extractor (encoder) backbone. This minimizes the computational and storage overhead of maintaining multiple models.

During inference, pFedDIL employs an Ensemble Inference strategy. The auxiliary classifiers weight the predictions of all local models, creating a smart ensemble that dynamically adapts to the input data.

Experimental Evaluation

The researchers evaluated pFedDIL on three major benchmarks simulating domain shifts: Digit-10 (MNIST, EMNIST, USPS, SVHN), Office-31 (Amazon, DSLR, Webcam), and the large-scale DomainNet (Clipart, Painting, Real, Sketch, Quickdraw, and Infograph).

Key Results

  • Superior Accuracy: pFedDIL consistently outperformed state-of-the-art baselines like FedAvg and FedProx. Notably, on the Office-31 dataset, it achieved a 14.35% accuracy improvement over the "Source-Only" baseline.
  • Efficiency and Convergence: The framework reached peak performance faster than competing methods. For instance, on Digit-10, pFedDIL converged in 379 rounds compared to 480 for FedAvg.
  • Robustness: The method proved stable even under high data heterogeneity (non-IID distributions), which typically degrades standard FL performance.

Conclusion and Future Work

pFedDIL offers a robust solution for FDIL by leveraging adaptive knowledge matching and model portfolios. While the approach requires managing storage for multiple models, the use of parameter sharing mitigates this cost. Future work will explore combining pFedDIL with Class-Incremental learning to develop a universal federated incremental learning system capable of handling simultaneous shifts in both domains and categories.

Summary updated

BibTeX
@inproceedings{li2024personalized,
  author = {Yichen Li and Wenchao Xu and Haozhao Wang and Yining Qi and Jingcai Guo and Ruixuan Li},
  title = {{Personalized Federated Domain-Incremental Learning Based on Adaptive Knowledge Matching}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72952-2\_8},
}
Figure