Federated Domain Generalization with Generalization Adjustment
Ruipeng ZhangQinwei XuJiangchao YaoYa ZhangQi TianYanfeng Wang
Proposes Generalization Adjustment, a server-side aggregation strategy that dynamically recalibrates client weights using a variance-reduction regularizer on generalization gaps to improve model performance on unseen target domains without sharing private multi-domain data.
Modern organizations frequently need to train artificial intelligence models collaboratively across distributed data sites without sharing sensitive private data. While federated learning enables such decentralized training, deployed models often perform poorly when introduced to entirely new environments or client sites with different data distributions—a challenge known as federated domain generalization. Standard centralized techniques that address data distribution shifts require simultaneous access to multi-site data in shared batches, which directly violates core privacy requirements.
The article develops and evaluates a server-side framework, Generalization Adjustment, designed to train global models that generalize effectively to unseen target environments without exchanging raw client data or spectra. The approach introduces a global fairness objective that minimizes the variance of generalization gaps across training sites by dynamically calibrating model aggregation weights on the central server.
To validate the framework, the authors conducted theoretical analyses alongside extensive leave-one-domain-out empirical evaluations on four standard benchmark image datasets: PACS, OfficeHome, TerraInc, and DomainNet. The experimental setup tested the integration of Generalization Adjustment across nine existing federated learning and domain generalization base algorithms using standard neural network backbones across multiple communication rounds.
The analysis yielded several key findings. First, Generalization Adjustment consistently improved out-of-domain performance when paired with every baseline method across all four benchmarks. For instance, applying the method to standard federated averaging boosted overall average accuracy from 63.10% to 65.06% across PACS, OfficeHome, and TerraInc, and from 57.29% to 60.24% on DomainNet. Second, the largest gains occurred on highly challenging datasets with severe distribution shifts, such as TerraInc, where test accuracy increased by more than 3 percentage points on average. Third, the dynamic weighting mechanism significantly narrowed both the mean and the variance of generalization gaps among participating sites, driving global and local models into flatter, more robust regions of the optimization loss surface.
These findings demonstrate that central aggregation weighting is a powerful, low-overhead mechanism for building robust distributed models. Relying purely on local client optimizations often fails to prevent global models from overfitting to participating sites. By adjusting aggregation weights solely based on scalar generalization gap values, organizations can improve cross-site model reliability and compliance without introducing new data privacy vulnerabilities or communication bottlenecks.
Organizations deploying federated learning systems across diverse institutions should adopt dynamic aggregation weighting in place of static, sample-size-proportional averaging. Because the Generalization Adjustment technique operates strictly at the central server during model aggregation, technical teams can readily integrate it into existing local training pipelines without altering edge hardware or client algorithms.
While the empirical results are robust across benchmark vision datasets, the authors acknowledge that the current method relies on an approximation of optimal generalization weights rather than direct closed-form optimization. The weighting scheme may also exhibit over-confidence when encountering source sites with conflicting gradients or easily fitted data distributions. Further operational pilots are advisable when expanding the framework beyond controlled image benchmarks to complex, multimodal production environments.
- Paper: FedBN: Federated Learning on Non-IID Features via Local Batch Normalization, Xiaoxiao Li et al. (2021). This paper establishes the foundational challenge of feature and domain shift across clients in federated learning and provides a standard local-training baseline.
- Paper: Generalizing to Unseen Domains: A Survey on Domain Generalization, Jindong Wang et al. (2021). This comprehensive survey outlines the foundational theory, objectives, and domain-shift challenges underlying domain generalization.
- Paper: In Search of Lost Domain Generalization, Ishaan Gulrajani et al. (2020). This paper establishes the standardized benchmarking suite and rigorous empirical evaluation protocols essential for evaluating out-of-domain generalization methods.
- Paper: Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalization, Shiori Sagawa et al. (2019). This work introduces key group distributionally robust optimization techniques and variance regularization principles designed to improve worst-case generalization under distribution shift.
- Paper: Ditto: Fair and Robust Federated Learning Through Personalization, Tian Li et al. (2020). This work provides essential background on balancing global consistency, client variance reduction, and fairness across heterogeneous client distributions in federated optimization.
- Paper: Federated Optimization in Heterogeneous Networks, Tian Li et al. (2018). This foundational paper presents the core federated optimization framework for handling statistical client heterogeneity using proximal regularization.
- Paper: Tackling the Objective Inconsistency Problem in Heterogeneous Federated Optimization, Jianyu Wang et al. (2020). This work formalizes the objective inconsistency problem in federated learning and demonstrates how re-weighting aggregation can correct global optimization bias.
- Paper: FedTGP: Trainable Global Prototypes with Adaptive-Margin-Enhanced Contrastive Learning for Data and Model Heterogeneity in Federated Learning, Jianqing Zhang et al. (2024). This paper builds on federated heterogeneity adjustments by introducing trainable global prototypes and adaptive-margin contrastive learning to handle combined data and model distribution shifts.
- Paper: Fair Federated Medical Image Segmentation via Client Contribution Estimation, Meirui Jiang et al. (2023). This work extends federated fairness and dynamic aggregation principles by estimating multi-space client contributions to optimize performance uniformity in heterogeneous federated medical image segmentation.
