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
Federated Learning (FL) has revolutionized collaborative machine learning by enabling multiple participants to train a shared model without exposing raw data. Despite its potential, a significant challenge remains: domain shift. In real-world scenarios, data across clients is often non-IID (Independent and Identically Distributed), originating from different environments, sensors, or demographics. This variability creates domain-specific noise that hinders the convergence of a single global model.
Existing FL methods often face a trade-off between consensus and personalization. Consensus-focused methods attempt to find a universal representation but often fail to capture local nuances, while personalization-focused methods may sacrifice the benefits of collective knowledge. The Federated Domain Shift Eraser (FDSE) addresses this by decoupling the learning process: it personalizes the removal of domain-specific noise while maintaining a global consensus on core features.
Methodology
The fundamental innovation of FDSE is Layer Decomposition. Rather than treating neural network layers as monolithic blocks, FDSE splits each layer into two distinct components:
- Domain-agnostic Feature Extractor (DFE): A shared module that learns the primary features essential for the task (the "what").
- Domain-specific Skew Eraser (DSE): A tiny, personalized module that adjusts the features to remove domain-specific noise (the "where").
Iterative Deskewing and Regularization
FDSE implements an Iterative Deskewing process. Unlike traditional methods that perform data cleaning only at the input or output stages, FDSE alternates between feature extraction and deskewing at every layer of the network. To ensure the DSE modules effectively "erase" domain skew, a Consistency Regularization term is introduced. This loss term pulls local feature statistics (mean and variance) toward a global average, forcing the DSE to produce standardized features that the subsequent DFE layers can easily process.
Dual Aggregation Strategy
The server-side aggregation in FDSE is bifurcated to handle the two module types:
- DFE Aggregation: Uses "Consensus Maximization" to minimize conflicts between client updates, ensuring a robust global feature extractor.
- DSE Aggregation: Employs "Similarity-aware Personalization." By using a self-attention mechanism, the server allows clients with similar data domains to share more knowledge, enhancing local adaptation without overfitting.
Experimental Evaluation
FDSE was evaluated against three major multi-domain benchmarks: Office-Caltech10, PACS, and DomainNet. These datasets represent varying degrees of domain complexity, from office objects to artistic styles and large-scale diverse sketches.
Key Results
- Superior Accuracy: FDSE consistently outperformed established baselines such as FedAvg, FedBN, and Ditto. On the DomainNet dataset, FDSE achieved an accuracy of 76.77%, surpassing FedBN's 74.75%.
- Communication Efficiency: The DSE modules are remarkably efficient, being approximately 94x smaller than the DFE modules. This architectural choice allowed FDSE to reduce communication overhead by nearly 50% compared to methods like FedBN and Ditto.
- Robust Generalization: Radar plots demonstrate that FDSE maintains high performance across all domains within a dataset, indicating a superior ability to handle diverse data distributions.
Conclusion
Federated Domain Shift Eraser (FDSE) presents a novel paradigm where personalization serves as a pre-processing step for global consensus. By iteratively erasing domain skew at every layer, the framework achieves a cleaner representation space and higher accuracy with significantly lower communication costs. While currently demonstrated on image classification tasks, the "eraser" concept holds promise for broader applications in NLP and time-series analysis. Future work will focus on scaling this approach to more complex architectures like Vision Transformers and exploring its performance in environments with extreme data heterogeneity.
Summary updated