Federated Causal Discovery from Heterogeneous Data

Loka Li, Ignavier Ng, Gongxu Luo, Biwei Huang, Guangyi Chen, Tongliang Liu, Bin Gu, Kun Zhang

Abstract

Identifying causal relationships from decentralized data is a critical challenge in fields like healthcare and finance, where data privacy is paramount. Traditional methods require centralized data, while existing federated approaches often fail under data heterogeneity or rely on restrictive linear assumptions. We present FedCDH (Federated Causal Discovery from Heterogeneous data), a framework that leverages summary statistics and a surrogate variable to model distribution shifts across clients. FedCDH effectively handles non-linear causal mechanisms with one-shot communication, outperforming state-of-the-art baselines in both accuracy and efficiency.

Introduction

Causal discovery aims to uncover the underlying mechanisms of a system, distinguishing between mere correlation and true causation. In many real-world scenarios, data is distributed across multiple entities (e.g., hospitals) that cannot share raw data due to privacy constraints. Federated Causal Discovery (FCD) has emerged to address this, but two significant obstacles remain:

  1. Data Heterogeneity: Non-identical distributions across clients (distribution shifts) can mislead standard causal algorithms.
  2. Model Complexity: Real-world interactions are often non-linear, yet many FCD methods assume simple linear Gaussian models.

FedCDH addresses these by treating heterogeneity as an informative feature rather than a nuisance.

Methodology

The FedCDH framework introduces three core components to enable robust causal discovery in a federated setting:

1. The Surrogate Variable ($\mho$)

To explicitly model distribution shifts, FedCDH introduces a surrogate variable representing the client index. By incorporating this variable into the causal graph, the algorithm can track how causal mechanisms vary across different domains, turning heterogeneity into a tool for orienting causal directions.

2. Federated Conditional Independence Test (FCIT)

Skeleton discovery—identifying which variables are connected—relies on conditional independence tests. FedCDH employs Random Fourier Features to approximate complex kernels, allowing clients to compute local covariance tensors. These summary statistics are sent to a central server, which aggregates them to perform a global, non-parametric independence test without ever seeing raw data.

3. Federated Independent Change Principle (FICP)

To determine the direction of causal edges, FedCDH utilizes the FICP. This principle posits that if $X \to Y$, the mechanism generating $Y$ from $X$ should change independently of the mechanism generating $X$ across different clients.

The FedCDH framework architecture, illustrating the interaction between the central server and local clients using summary statistics.

Experimental Evaluation

FedCDH was evaluated against several baselines, including FedPC, FedDAG, and NOTEARS-ADMM, using both synthetic and real-world datasets. These included Linear Gaussian and General Functional (non-linear) models, as well as real-world fMRI brain connectivity and Hong Kong stock market data.

Key Results

FedCDH consistently demonstrated superior performance in terms of F1 Score and Structural Hamming Distance (SHD). Notably, while linear-based methods struggled with non-linear synthetic data, FedCDH maintained high accuracy. Its "one-shot" communication strategy—requiring only a single round of summary statistic transmission—makes it significantly more efficient than iterative optimization methods like ADMM.

Performance comparison of FedCDH against baselines across varying numbers of variables, clients, and samples.

Conclusion

FedCDH represents a significant step forward in federated causal discovery. By embracing data heterogeneity and utilizing non-parametric summary statistics, it provides a flexible and efficient solution for discovering causal structures in privacy-sensitive, multi-domain environments. Future work will explore extensions to vertically partitioned data and the integration of formal differential privacy guarantees.

Summary updated

BibTeX
@inproceedings{li2024federated,
  author = {Loka Li and Ignavier Ng and Gongxu Luo and Biwei Huang and Guangyi Chen and Tongliang Liu and Bin Gu and Kun Zhang},
  title = {{Federated Causal Discovery from Heterogeneous Data}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=m7tJxajC3G},
}
Figure