NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Gains: Fine-grained Federated Domain Adaptation in Open Set

Zhengyi Zhong, Wenzheng Jiang, Weidong Bao, Ji Wang, Qi Wang, Guanbo Wang, Yongheng Deng, Ju Ren · DOI

Abstract

Federated Learning (FL) typically operates under a closed-world assumption where the set of clients and their data distributions remain static. However, real-world deployments are often dynamic, requiring systems to accommodate new clients that introduce novel data styles (domain shifts) or entirely new categories (class increments). This paper introduces Gains, a novel framework designed for fine-grained federated domain adaptation in open-set scenarios. By leveraging the structural sensitivities of neural networks, Gains identifies the nature of incoming knowledge and integrates it through contribution-driven aggregation and an anti-forgetting mechanism, ensuring rapid adaptation without sacrificing the performance of existing clients.

Introduction

Standard Federated Learning research often assumes a fixed environment. In practice, FL systems—such as networks of medical imaging devices or mobile keyboards—are "open sets" where new participants join over time. These new clients often bring data that differs from the existing global model in two primary ways: a domain shift (e.g., a new brand of scanner) or a class increment (e.g., a new disease category).

Existing FL methods struggle with the stability-plasticity dilemma: the need to learn new information (plasticity) while preventing the degradation of previously acquired knowledge (stability), often referred to as catastrophic forgetting. Gains addresses these challenges by providing a mechanism to discover the type of new knowledge and adapt the global model surgically.

The Gains Framework

The Gains framework (Fine-grained federated domain adaptation in open set) is built upon three core technical pillars designed to handle the complexities of open-set adaptation.

1. Fine-grained Knowledge Discovery

A key insight of this work is the "structural sensitivity" of neural networks. The researchers observed that Encoders (the initial layers processing raw features) are highly sensitive to domain shifts, whereas Classifiers (the final decision-making layers) are more sensitive to new classes.

When a new client joins the network, the server utilizes a small, non-sensitive public dataset to measure the distance between the existing global model and the new client's updated model. Specifically, it calculates $Diff^F$ for feature representations and $Diff^C$ for classifier parameters. By comparing these metrics against specific thresholds, the system can automatically categorize the update as either a Domain Increment or a Class Increment.

2. Contribution-Driven Aggregation

Once the type of increment is identified, Gains moves away from uniform aggregation (like FedAvg) in favor of a targeted approach:

  • Domain Increments: The system calculates the similarity between the feature distributions of source clients and the new target client. Source clients that are more similar to the new domain are weighted more heavily during the update process.
  • Class Increments: To incorporate new categories, Gains employs a "channel-wise supplementation" method. This allows the model to effectively stitch new class parameters onto the existing classifier structure without overwriting the weights dedicated to original classes.

3. Anti-Forgetting Mechanism (AFM)

To ensure stability for the original "source" clients, Gains introduces a specialized loss function. This mechanism constrains the updates of source clients, forcing them to remain within a manageable distance of their pre-adaptation state. This ensures that the global model’s pursuit of new knowledge does not lead to the erasure of established patterns.

Experimental Evaluation

Datasets and Scenarios

The authors evaluated Gains using two multi-domain benchmarks:

  • DigitFive (DF): A collection of five digit-recognition datasets (MNIST, MNIST-M, SVHN, USPS, and SynthDigits), providing significant data shifts.
  • Amazon Review (AR): A text-based dataset covering product reviews across four categories (Books, DVDs, Electronics, and Kitchen).

These were tested across three difficulty levels: Mild (same domain, new classes), Medium (different domains, same classes), and Strong (multiple different domains and classes simultaneously).

Performance and Efficiency

Gains demonstrated significant improvements over existing baselines such as FOSDA and FedHEAL:

  • High Accuracy: In the most challenging "Strong" shift scenario on the DigitFive dataset, Gains achieved 98.98% accuracy on the target client, while some baselines struggled to reach 12%.
  • Stability: Gains maintained high Source Accuracy (S-Acc), typically staying above 90-93%, proving that it successfully mitigates catastrophic forgetting.
  • Communication Efficiency: Gains reached convergence in approximately 5 rounds, a 4x to 8x improvement over standard federated adaptation methods like FedAvg or FedProx, which often require 20–40 rounds.

Discussion and Limitations

While Gains represents a significant step forward in open-set FL, several challenges remain. The framework currently relies on manually set thresholds ($T_F$ and $T_C$) for knowledge discovery, which may require tuning for different applications. Additionally, the system assumes a small public dataset is available for the discovery phase; while common in research, finding representative public proxies for highly sensitive data (e.g., rare medical conditions) can be difficult. Future work may focus on automating threshold selection and handling "mixed" scenarios where domain and class shifts occur simultaneously.

Conclusion

Gains provides a surgical approach to Federated Learning in dynamic environments. By treating the neural network as a collection of specialized components rather than a black box, it allows for rapid, efficient, and stable adaptation to new clients, making it a robust candidate for real-world FL deployments.

Summary updated

BibTeX
@inproceedings{zhong2025gains,
  author = {Zhengyi Zhong and Wenzheng Jiang and Weidong Bao and Ji Wang and Qi Wang and Guanbo Wang and Yongheng Deng and Ju Ren},
  title = {{Gains: Fine-grained Federated Domain Adaptation in Open Set}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=G34xkRFiUn},
}
Figure