Introduction
Federated Domain Generalization (FedDG) is an emerging field addressing the challenge of learning models from decentralized, heterogeneous data that can generalize to unseen "out-of-distribution" domains. This paper introduces a comprehensive benchmark to evaluate FedDG algorithms rigorously. The study reveals that the standard baseline, FedAvg, is remarkably resilient, and current specialized methods struggle significantly as the network scales.
Problem Definition: Navigating Two Types of Heterogeneity
In real-world Federated Learning (FL), data is siloed across various devices or institutions, leading to two distinct types of data "messiness":
- Client Heterogeneity: Variations in data distributions among participating clients (e.g., demographic differences in hospital data).
- Train-Test Heterogeneity (Domain Generalization): The challenge of deploying a model in a completely new environment not encountered during training (e.g., a new hospital with different imaging equipment).
While most research addresses these issues in isolation, FedDG aims to solve both simultaneously. However, existing evaluations often rely on "toy-scale" assumptions where the number of clients equals the number of domains—an unrealistic setup for massive networks. This benchmark provides a large-scale framework to test how FedDG algorithms hold up under realistic pressure.
Methodology and Datasets
The authors contribute a novel data distribution method using a parameter $\lambda$ to control "domain-based client heterogeneity," ranging from homogeneous ($\lambda=1$) to complete heterogeneity ($\lambda=0$). They evaluated 14 algorithms across three categories: centralized DG methods adapted for FL (e.g., IRM, Mixup), FL-specific methods (e.g., FedProx, Scaffold), and specialized FedDG methods (e.g., FedDG, FedSR).
The benchmark utilizes seven diverse datasets spanning images, text, and code:
- Images: PACS, IWildCam, CelebA, Camelyon17, and FEMNIST.
- Text: CivilComments (toxicity detection).
- Code: Py150 (code completion with over 8,000 domains).
Key Insights
The FedAvg Paradox
A striking finding is that FedAvg with standard Empirical Risk Minimization (ERM) serves as an incredibly strong baseline. In many cases, it outperforms complex algorithms specifically designed for DG or FL, calling into question the added value of current specialized methods.
The Scalability Wall and Portability Issues
Performance in FedDG drops sharply as the number of clients ($C$) increases. Furthermore, algorithms that excel in centralized DG settings often degrade significantly in FL due to the lack of a global data view, making it harder to identify domain-invariant features.
Implicit Regularization
The authors observed that optimal DG performance often occurs early in training, suggesting that the federated communication process itself may act as a form of implicit regularization, preventing the model from over-fitting to local client distributions.
Experimental Results
The results highlight the impact of heterogeneity and the strength of the FedAvg baseline. On the PACS dataset ($C=100$), FedAvg achieved approximately 95% accuracy, with specialized FedDG methods offering only marginal gains despite increased complexity.
On more challenging datasets like IWildCam, accuracy dropped from ~34% in a centralized setting to ~20% in a federated setting with high heterogeneity. As $\lambda$ approaches 0 (extreme heterogeneity), performance consistently declines across nearly all methods, identifying domain-based client silos as a primary bottleneck for generalization.
Conclusion and Future Directions
Current FedDG research faces several hurdles, including privacy concerns regarding the sharing of local data statistics and hyperparameter sensitivity in GAN-based methods. The study concludes that the field still lacks a "silver bullet" algorithm capable of handling massive scaling, high heterogeneity, and out-of-distribution generalization simultaneously. Future work must focus on addressing these three pillars in unison to bridge the performance gap in real-world deployments.
Summary updated