Rehearsal-free Federated Domain-incremental Learning

Rui Sun, Haoran Duan, Jiahua Dong, Varun Ojha, Tejal Shah, Rajiv Ranjan · DOI

Introduction

Federated Learning (FL) enables multiple clients to collaboratively train a shared model while maintaining data privacy. However, real-world data is rarely static. In Federated Domain-Incremental Learning (FDIL), clients encounter a sequence of new domains—such as shifting from photographic images to sketches—while the label set remains constant. The primary obstacle in this setting is catastrophic forgetting, where the model's performance on previous domains degrades as it learns new ones.

Overview of the FDIL setting and the RefFiL framework comparing standard approaches to the proposed incremental domain learning.

Traditional solutions often rely on "rehearsal" methods, which require storing historical data for re-training. In FL, this is frequently prohibited by privacy constraints and the limited storage capacity of edge devices. To address these challenges, researchers have introduced RefFiL, a rehearsal-free framework that leverages global prompt sharing and contrastive learning to maintain model performance across evolving domains.

The RefFiL Framework

RefFiL is built upon three core technical pillars designed to extract domain-invariant knowledge without storing raw data.

Detailed architecture of RefFiL, illustrating the local prompt generation pipeline and global server-side clustering.

1. Client-wise Domain Adaptive Prompt (CDAP) Generator

Rather than using static, one-size-fits-all prompts, RefFiL employs a CDAP generator. This component produces personalized, instance-level prompts for each input image. A key innovation within this generator is the Cross-Client Domain Adaptation (CCDA) layer, which ensures that locally generated prompts are optimized for global sharing and utility across different client environments.

2. Global Prompt Sharing and Clustering

To prevent "information silos," the central server aggregates local prompts. Instead of simple averaging—which can lead to "blurry" representations of heterogeneous data—the server uses the FINCH algorithm to cluster prompts. This parameter-free clustering preserves the distinct characteristics of various domains, allowing the global model to represent a diverse range of domain-specific features.

3. Domain-specific Prompt Contrastive Learning (DPCL)

The optimization process is driven by DPCL, which uses a contrastive loss function. This pulls locally generated prompts toward semantically similar global clusters while pushing them away from unrelated ones. To navigate the complex optimization landscape of non-IID data, RefFiL implements temperature decay, making domain distinctions increasingly precise as training progresses.

Experimental Evaluation

RefFiL was evaluated across four major benchmarks: Digits-five, OfficeCaltech10, PACS, and the large-scale FedDomainNet (comprising over 100,000 images).

Performance and Robustness

The framework consistently outperformed established baselines such as FedLwF and FedEWC, as well as advanced prompt-based methods like FedL2P. On the PACS dataset, RefFiL achieved a significant 15.20% improvement in average accuracy and a 17.66% increase in final task accuracy over competing methods. Furthermore, the model demonstrated robustness to the order of domain presentation, maintaining high performance even when task sequences were randomized.

Efficiency

As a rehearsal-free method, RefFiL eliminates the memory overhead associated with storing historical data. While it introduces a minor communication overhead by transmitting prompts to the central server, it remains highly suitable for resource-constrained edge devices.

Conclusion and Future Work

RefFiL demonstrates that global prompt clustering and contrastive learning can effectively mitigate catastrophic forgetting in federated environments without compromising data privacy. While current iterations require Task IDs during training, future research may focus on removing this requirement and exploring the framework's application to fine-tuning larger, domain-specific foundation models.

Summary updated

BibTeX
@inproceedings{sun2025rehearsal,
  author = {Rui Sun and Haoran Duan and Jiahua Dong and Varun Ojha and Tejal Shah and Rajiv Ranjan},
  title = {{Rehearsal-free Federated Domain-incremental Learning}},
  booktitle = {ICDCS},
  year = {2025},
  doi = {10.1109/icdcs63083.2025.00086},
}
Figure