Global Intervention and Distillation for Federated Out-of-Distribution Generalization

Zhuang Qi, Runhui Zhang, Lei Meng, Wei Wu, Yachong Zhang, Xiangxu Meng

Introduction

Federated Learning (FL) enables collaborative model training across decentralized clients without sharing raw data. However, a significant challenge arises when clients encounter Out-of-Distribution (OOD) scenarios due to "attribute skew"—where environmental backgrounds vary significantly across different sites. Standard FL models often overfit to these site-specific spurious correlations, leading to poor generalization. This paper introduces FedGID (Global Intervention and Distillation), a framework designed to break these correlations by focusing on causal object features rather than environmental noise.

The Challenge of Attribute Skew

In many FL applications, such as medical imaging or mobile photography, the background of an object can become a confounding variable. For instance, if one hospital's dataset only contains "cows on grass" and another "cows on snow," a model might mistakenly learn that "grass" or "snow" is a defining feature of a "cow." When tested on a "cow on a beach," the model fails. FedGID addresses this by forcing decentralized models to ignore distracting background correlations and learn the true "causal" features of an object without compromising data privacy.

The FedGID Framework

The FedGID framework consists of two primary modules: Global Intervention (GI) and Global Distillation (GD). It is designed to be model-agnostic, allowing it to be integrated into existing FL frameworks like MOON or FPL.

Global Intervention (GI) Module

The GI module aims to break the link between specific backgrounds and labels through causal intervention. It first performs Background Extraction using a pre-trained DINO model to isolate the background by masking the main object. Then, it applies Backdoor Adjustment by injecting random background features from different categories into training samples at the feature map level. This teaches the model that the object's identity is independent of its context.

Architecture of the FedGID framework showing the Global Intervention and Global Distillation modules.

Global Distillation (GD) Module

To ensure consistent feature representation across all clients, the GD module utilizes the global model as a unified knowledge base. By applying Kullback-Leibler (KL) divergence, FedGID minimizes the gap between local client features and global features, preventing individual models from drifting into site-specific biases.

Experimental Evaluation

The researchers evaluated FedGID on three OOD benchmarks: NICO-Animal, NICO-Vehicle, and ColorMNIST. These datasets specifically test the ability of models to generalize when backgrounds or colors are correlated with labels during training but change during testing.

Key Results

FedGID consistently outperformed state-of-the-art federated learning methods like FedAvg, FedProx, and FedIIR:

  • Accuracy Gains: On NICO-Animal (A7), FedGID achieved 49.11% accuracy, significantly higher than FedAvg’s 44.38%.
  • Robustness: In the biased ColorMNIST ($\beta=0.1$), FedGID reached 94.88% accuracy, compared to 89.39% for standard FedAvg.
  • Visual Evidence: GradCAM visualizations demonstrate that FedGID-trained models focus tightly on the actual object (e.g., a bird or elephant), whereas baseline models often have their "attention" scattered across the background.
GradCAM visualizations comparing FedAvg with FedGID (+GI), showing improved focus on the target objects across different local models.

Conclusion

FedGID provides a robust solution for OOD generalization in Federated Learning by moving from simple pattern matching to a causal understanding of images. While highly effective, the authors note that the method's performance depends on the ability to separate objects from backgrounds, which can be challenging in extremely cluttered or camouflaged scenes. Future work will focus on extending FedGID to more complex tasks like object detection and segmentation in dynamic federated environments.

Summary updated

BibTeX
@inproceedings{qi2025global,
  author = {Zhuang Qi and Runhui Zhang and Lei Meng and Wei Wu and Yachong Zhang and Xiangxu Meng},
  title = {{Global Intervention and Distillation for Federated Out-of-Distribution Generalization}},
  booktitle = {ICME},
  year = {2025},
  doi = {10.1109/icme59968.2025.11210060},
}
Figure