Contrastive-enhanced Domain Generalization with Federated Learning

Xinhui Yu,Dan Wang,Martin McKeown,Z. Jane Wang
DOI: https://doi.org/10.1109/tai.2023.3298297
2023-01-01
IEEE Transactions on Artificial Intelligence
Abstract:Domain generalization (DG) aims to train a global model from different but related domains, which can be generalized to an unseen out-of-distribution domain. Most existing DG methods are based on the centralized learning paradigm, raising the privacy leakage concern. In this paper, we propose a contrastive-enhanced domain generalization framework in the federated learning paradigm (FedCDG), where there are a server and multiple clients. Each client owns data from one domain and builds a local model consisting of a domain-invariant feature extractor and a classifier head. The server generates a global model through aggregating and broadcasting local models' parameters, thus achieving knowledge sharing and keeping data confidential. To enhance the discrimination and generalization ability of the local model, we build an improved instance normalization module that focuses on task-relevant features with less domain-specific information. Moreover, for better class-wise alignment in the embedding space, we propose a prototype-based contrastive loss. Given the limited annotation budget in practice, we also extend the proposed framework into the semi-supervised DG setting (i.e., only 10 labelled samples per class). Experimental results on 3 benchmarks and different backbones show that the proposed framework yields promising performances for both DG and semi-supervised DG in the federated learning paradigm.
English Else
What problem does this paper attempt to address?