Federated Causally Invariant Feature Learning

Xianjie Guo, Kui Yu, Lizhen Cui, Han Yu, Xiaoxiao Li

Abstract

Federated Learning (FL) often encounters performance degradation due to data heterogeneity (Non-IID) and poor generalization to unseen clients (Out-of-Distribution, OOD). Traditional Federated Feature Selection (FFS) methods rely on statistical correlations, which frequently fail under distribution shifts. This paper proposes Federated Causally Invariant Feature Learning (FedCIFL), a novel FFS framework that identifies causally invariant features. By employing an iterative sample reweighting mechanism and refining confounder sets, FedCIFL achieves robust generalization while maintaining strict privacy. Experimental results on synthetic and real-world datasets demonstrate that FedCIFL outperforms state-of-the-art baselines in both accuracy and robustness.

Introduction

In Federated Learning (FL), selecting informative features across distributed clients without compromising data privacy is a critical challenge known as Federated Feature Selection (FFS). Most existing FFS methods focus on statistical correlations between features and labels. However, correlation does not imply causation. In scenarios where client data is Non-IID or when models are deployed on unseen clients (OOD), these spurious correlations often break down, leading to poor generalization. Furthermore, local clients typically possess limited data, introducing sample selection bias that complicates the estimation of true causal relationships. FedCIFL addresses these challenges by capturing causal invariance, ensuring models generalize effectively even when test distributions differ significantly from training data.

Methodology

FedCIFL is an iterative algorithm designed to identify features with a true causal effect on labels. The framework, illustrated in Figure 1, consists of four primary steps:

  1. Sample Reweighting via Supervised Autoencoder: To mitigate local confounding bias, a supervised autoencoder projects features into a lower-dimensional space. It learns sample weights to balance "treatment" and "control" groups for each feature, neutralizing selection bias.
  2. Causal Effect Estimation: Using balanced weights, clients estimate the causal effect of each feature via weighted cross-entropy loss. Features with effects below a threshold are flagged as potentially irrelevant.
  3. Privacy-Preserving Aggregation: Irrelevant feature lists are sent to a central server. To resolve conflicts without revealing sample sizes, the server weights client votes based on their autoencoder training loss, serving as a privacy-preserving proxy for data quality and quantity.
  4. Iterative Refinement: Globally identified irrelevant features are removed from the confounder set. This iterative reduction improves causal estimation accuracy on small local datasets.
The FedCIFL framework illustrating the four-step iterative process between clients and the central server.

Experimental Evaluation

The authors evaluated FedCIFL using synthetic datasets simulating complex causal relationships and the real-world Amazon Review dataset for cross-domain sentiment classification. The Amazon dataset includes reviews for Books (B), DVDs (D), Electronics (E), and Kitchen appliances (K), facilitating OOD generalization tests (e.g., training on D, E, K and testing on B).

Results

FedCIFL consistently outperformed eight state-of-the-art baselines, including Fed-FiS, FPSO-FS, and federated adaptations of causal methods like EAMB and PCFS. On average, FedCIFL improved test accuracy by 3.19% and F1 score by 2.65% over the best baseline. As shown in Figure 2, FedCIFL achieved superior performance in cross-domain tasks, reaching 84.01% accuracy in the BDE→K task.

Performance comparison of FedCIFL against baselines on the Amazon Review dataset across various cross-domain tasks.

Conclusion

FedCIFL demonstrates that prioritizing causal invariance over statistical correlation is essential for robust Federated Learning in Non-IID and OOD environments. The iterative confounder reduction and privacy-preserving weighted voting strategy provide a scalable and effective solution for distributed feature selection. Future work will explore extending this framework to multi-label classification tasks.

Summary updated

BibTeX
@inproceedings{guo2025federated,
  author = {Xianjie Guo and Kui Yu and Lizhen Cui and Han Yu and Xiaoxiao Li},
  title = {{Federated Causally Invariant Feature Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i16.33866},
}
Figure