Abstract: Federated learning (FL) is emerging as a promising technique for collaborative learning without local data leaving their devices. However, clients' data originating from diverse domains may degrade model performance due to domain shifts, preventing the model from learning consistent representation space. In this paper, we propose a novel FL framework, Federated Domain Shift Eraser (FDSE), to improve model performance by differently erasing each client's domain skew and enhancing their consensus. First, we formulate the model forward passing as an iterative deskewing process that extracts and then deskews features alternatively. This is efficiently achieved by decomposing each original layer in the neural network into a Domain-agnostic Feature Extractor (DFE) and a Domain-specific Skew Eraser (DSE). Then, a regularization term is applied to promise the effectiveness of feature deskewing by pulling local statistics of DSE's outputs close to the globally consistent ones. Finally, DFE modules are fairly aggregated and broadcast to all the clients to maximize their consensus, and DSE modules are personalized for each client via similarity-aware aggregation to erase their domain skew differently. Comprehensive experiments were conducted on three datasets to confirm the advantages of our method in terms of accuracy, efficiency, and generalizability.
Introduction
In Federated Learning (FL), the goal is to train a shared model across multiple decentralized devices while maintaining data privacy. However, real-world deployments often face the challenge of domain shift. For instance, medical imaging data from different hospitals may vary significantly due to different equipment manufacturers or scanning protocols. Standard FL algorithms, such as FedAvg, often struggle in these scenarios because the global model is pulled in conflicting directions by these diverse local domains.
Existing solutions typically oscillate between two extremes: focusing on a strong global consensus (which may ignore local nuances) or heavy personalization (which can hinder the learning of generalizable knowledge). FDSE addresses this by proposing a hybrid approach that "erases" local domain skews while simultaneously building a robust global understanding of the task.
Methodology
The core innovation of FDSE lies in its Layer Decomposition strategy, which reimagines the standard neural network architecture to handle domain-specific variations iteratively at every layer.
Layer Decomposition: DFE and DSE
Instead of standard convolutional layers, FDSE decomposes each layer into two distinct components:
- Domain-agnostic Feature Extractor (DFE): This module is shared globally across all clients. Its primary role is to learn the fundamental features of the task (e.g., identifying the core characteristics of a specific object class).
- Domain-specific Skew Eraser (DSE): This is a small, personalized module tailored to each client. It acts as a filter to "deskew" the data, removing the specific visual noise or stylistic variations inherent to that client's domain.
Consistency Regularization and Dual Aggregation
To ensure the DSE modules effectively normalize data rather than overfitting to local noise, FDSE employs Consistency Regularization. This forces the local statistics (mean and variance) of DSE outputs to align with a global average, effectively anchoring the feature space.
On the server side, FDSE utilizes a Dual Aggregation mechanism:
- DFE Aggregation: DFE modules are aggregated using "Consensus Maximization" to find mathematical harmony between all clients.
- DSE Aggregation: DSE modules are aggregated based on client similarity. If two clients share similar domains, their respective "erasers" help train one another through similarity-aware aggregation.
Experimental Results
The researchers evaluated FDSE against several state-of-the-art baselines (FedAvg, FedBN, Ditto, etc.) using three major multi-domain benchmarks: Office-Caltech10, DomainNet, and PACS.
Performance and Efficiency
FDSE demonstrated superior accuracy across all datasets. On the challenging DomainNet dataset, FDSE achieved 76.77% accuracy, significantly outperforming FedAvg (69.17%) and FedBN (74.75%). The radar charts in Figure 5 illustrate how FDSE consistently provides the most balanced and high-performing results across various domains compared to other methods.
Beyond accuracy, FDSE is highly communication-efficient. Because the DSE modules are significantly smaller than standard layers, FDSE reduced the total data transmitted during training from approximately 49.5M parameters (in FedBN) to just 24.8M parameters, a reduction of nearly 50%.
Generalization
FDSE also showed remarkable zero-shot generalization. When a new client with an entirely unseen domain joins the network, FDSE can adapt its eraser module using label-free data, maintaining high performance where other models fail.
Conclusion and Future Work
FDSE offers a powerful framework for addressing domain shift in federated learning by decoupling task knowledge from domain knowledge. By treating deskewing as an iterative process at every layer, it achieves a superior balance between global consensus and local personalization.
Future work will explore extending FDSE to more complex computer vision tasks, such as object detection and segmentation. Additionally, the authors aim to investigate more sophisticated "eraser" modules that can handle higher-order statistical variations beyond mean and variance.
Summary updated