TL;DR
FedSB introduces a simple yet highly effective framework for Federated Domain Generalization by tackling two major hurdles: client overconfidence and data volume imbalance. By combining client-level label smoothing with a fixed-size data budgeting mechanism, FedSB prevents local models from overfitting to domain-specific features and ensures all clients contribute equally to the global model, achieving state-of-the-art performance across multiple benchmarks.
What Problem Does This Paper Address?
Federated Learning (FL) allows multiple decentralized clients (like hospitals or mobile devices) to collaboratively train a machine learning model without sharing their raw data, preserving privacy. However, a massive hurdle in real-world deployments is data heterogeneity—when different clients collect data from entirely different environments, distributions, or styles.
When a global model is aggregated from these diverse clients, it often struggles to generalize to a completely unseen target domain (a problem known as Federated Domain Generalization, or FDG). The authors identify two persistent flaws in current FDG approaches:
- Client Overconfidence: Because local clients train on small, domain-specific datasets, their local models become highly confident in local shortcuts and domain-specific features, failing to learn broader, domain-invariant representations.
- Dataset Size Imbalance: Clients with larger datasets naturally exert a stronger mathematical pull on the global model updates during aggregation. This biases the global model toward data-rich domains and degrades its ability to generalize universally.
Methods
The authors propose FedSB (Federated Domain Generalization with Label Smoothing and Balanced Decentralized Training), which solves both problems using two elegant, low-overhead modifications to the standard federated learning pipeline:
- Label Smoothing at the Client Level: Instead of training local models on hard "one-hot" labels (where the target class has a probability of 1.0 and all others 0.0), FedSB replaces them with soft labels. This injects a controlled level of uncertainty into local training. Mathematically, it decomposes the cross-entropy loss into a standard Negative Log-Likelihood loss and a "Smooth Loss." This penalizes overconfident predictions and discourages local models from memorizing domain-specific quirks.
- Decentralized Budgeting Mechanism: To neutralize the dominance of data-rich clients, FedSB enforces a fixed training budget ($S$ samples) across all clients. If a client has more than $S$ samples, it randomly downsamples its data. If it has fewer, it oversamples. This ensures that every single client contributes an equal weight to the expected global gradient update, mitigating the data heterogeneity caused by varying dataset sizes.
Crucially, unlike other complex FDG methods, FedSB requires zero extra communication overhead and shares no extra information (like style banks or class prototypes) between clients, maintaining strict privacy boundaries.
Datasets
The authors evaluated FedSB using the standard DomainBed benchmark suite, which includes four challenging multi-domain image datasets:
- PACS: 9,991 images across 4 domains (Photo, Art Painting, Cartoon, Sketch) containing 7 classes.
- OfficeHome: Over 15,500 images across 4 domains (Art, Clipart, Product, Real-world) containing 65 classes.
- TerraIncognita: 24,788 pictures of wild animals captured by camera traps across 4 distinct geographical locations.
- VLCS: 10,729 images aggregated from 4 separate classic datasets (VOC, LabelMe, Caltech101, SUN09) sharing 5 classes.
Evaluation was performed using a strict "leave-one-domain-out" protocol, where the model is trained on three domains and tested on the remaining, entirely unseen domain.
Key Insights and Ideas
- Uncertainty Breeds Generalization: Label smoothing is traditionally used to improve model calibration or classification accuracy in centralized setups. FedSB uniquely leverages it as an implicit domain-generalization regularizer. By forcing the model to be less certain about domain-specific features, the model naturally prioritizes robust features that are shared across different domains.
- Simplicity Trumps Complexity: Many modern FDG algorithms introduce heavy machinery like generative style-transfer networks or shared classification heads. FedSB proves that simple data-level adjustments (smoothing and uniform budgeting) can outperform these complex architectures while preserving better privacy and reducing compute overhead.
- The Math of Imbalance: The authors explicitly demonstrate via gradient descent equations that standard federated aggregation inherently favors larger local datasets. Uniform budgeting mathematically guarantees an unbiased global update.
Key Results
FedSB achieved state-of-the-art (SOTA) or highly competitive performance across all benchmarks:
- SOTA on 3 of 4 Datasets: Using standard ResNet backbones, FedSB outperformed top competing methods (like FedAvg, FedProx, FedSR, and FedIIR) on PACS (83.81% average accuracy), OfficeHome (70.92%), and TerraIncognita (46.89%).
- Strong ViT Performance: When evaluated using Vision Transformer (ViT) backbones, FedSB consistently outperformed the baseline FedAvg algorithm across the board.
- ResNet-50 Scaling: On the PACS dataset using a ResNet-50 backbone, FedSB achieved 87.33% average accuracy, outperforming the complex style-transfer method CCST (86.52%).
Qualitatively, t-SNE feature visualizations show that FedSB yields significantly cleaner, more distinct class separation compared to standard FedAvg, proving that the representations learned are much more robust.
Limitations and Future Work
Not explicitly discussed in detail by the authors. However, based on the methodology, a few open areas remain:
- Hyperparameter Selection: While sensitivity analyses showed that FedSB is robust to variations in the smoothing coefficient ($\epsilon$) and budget size ($S$), finding the absolute optimal budget size still requires empirical tuning based on the scale of the target datasets.
- Strict Domain Assumptions: The framework assumes that each client maps cleanly to a single, distinct domain. How well FedSB handles more chaotic real-world scenarios—where a single client might possess a highly mixed, unlabelled, or continuously shifting data distribution—remains a promising direction for future research.
Summary updated