FedDAG: Federated DAG Structure Learning

Erdun Gao, Junjia Chen, Li Shen, Tongliang Liu, Mingming Gong, Howard Bondell · DOI

Abstract: To date, most directed acyclic graphs (DAGs) structure learning approaches require data to be stored in a central server. However, due to the consideration of privacy protection, data owners gradually refuse to share their personalized raw data to avoid private information leakage, making this task more troublesome by cutting off the first step. Thus, a puzzle arises: how do we discover the underlying DAG structure from decentralized data? In this paper, focusing on the additive noise models (ANMs) assumption of data generation, we take the first step in developing a gradient-based learning framework named FedDAG, which can learn the DAG structure without directly touching the local data and also can naturally handle the data heterogeneity. Our method benefits from a two-level structure of each local model. The first level structure learns the edges and directions of the graph and communicates with the server to get the model information from other clients during the learning procedure, while the second level structure approximates the mechanisms among variables and personally updates on its own data to accommodate the data heterogeneity. Moreover, FedDAG formulates the overall learning task as a continuous optimization problem by taking advantage of an equality acyclicity constraint, which can be solved by gradient descent methods to boost the searching efficiency. Extensive experiments on both synthetic and real-world datasets verify the efficacy of the proposed method.

Introduction

Discovering causal relationships is a fundamental goal in machine learning, typically represented through Directed Acyclic Graphs (DAGs). Traditionally, learning these structures requires pooling all data into a central repository. However, in an era defined by strict privacy regulations like GDPR and HIPAA, data owners are increasingly reluctant to share raw information. This creates a significant barrier for collaborative research, such as hospitals attempting to understand disease mechanisms without compromising patient privacy.

FedDAG (Federated DAG) addresses this challenge by introducing the first gradient-based federated learning framework designed to discover causal structures from decentralized and heterogeneous data. By decoupling the universal graph structure from local variable mechanisms, it achieves state-of-the-art performance while maintaining strict data privacy.

The Challenge of Decentralized DAG Learning

While Federated Learning (FL) is well-established for supervised tasks like image classification, applying it to DAG discovery introduces unique hurdles. Standard FL typically estimates a conditional distribution $P(Y|X)$, whereas DAG learning is an unsupervised task that must fit the joint distribution of all variables.

Furthermore, real-world decentralized data is often heterogeneous. Different clients may have different distributions; in causal terms, the "mechanisms" (how one variable affects another) might change across sites, even if the underlying "skeleton" of the graph remains consistent. Traditional methods that assume homogeneous data fail to capture these nuances, leading to poor structural discovery.

Methodology: Decoupling Structure and Mechanism

FedDAG utilizes a two-level local model architecture that separates the global graph structure from the specific functional mechanisms between variables:

  1. The CGL Part (Causal Graph Learning): This level focuses on learning the edges and directions of the DAG. It is parameterized by a continuous matrix $U$. During training, clients share only these structural parameters with a central server. The server averages these parameters to find a consensus global DAG, ensuring that all clients contribute to a unified causal understanding.
  2. The MA Part (Mechanisms Approximating): This level uses neural networks to model the specific functional relationships (e.g., $X_i = f(PA_i) + \epsilon$). Crucially, these networks remain local and are updated only on the client's private data. This allows the model to adapt to local data heterogeneity without leaking sensitive information.
The FedDAG architecture separates the shared Causal Graph Learning (CGL) part from the local Mechanism Approximating (MA) part to handle data heterogeneity.

To overcome the combinatorial explosion of searching for DAGs, FedDAG employs a Gumbel-Sigmoid trick to approximate the adjacency matrix, transforming the search into a continuous optimization problem. It incorporates an equality acyclicity constraint (inspired by the NOTEARS approach) to ensure the resulting graph is a valid DAG.

Experimental Results

The framework was evaluated on synthetic datasets (Erdős-Rényi and Scale-Free models) and the real-world fMRI Hippocampus dataset.

FedDAG consistently outperformed baselines in both homogeneous and heterogeneous settings. In heterogeneous synthetic tests, FedDAG achieved a Structural Hamming Distance (SHD) of 1.9, significantly outperforming the next best federated baseline (SHD 7.6). On the fMRI dataset, FedDAG successfully identified known anatomical connections between brain regions with the lowest SHD (5.0) among all decentralized methods.

Visualization of data heterogeneity across clients (a) and the resulting performance gap (b), where FedDAG (GS-FedDAG) achieves significantly lower Normalized SHD compared to baselines.

Conclusion and Future Work

FedDAG represents a significant advancement in "Causal AI," enabling collaborative scientific discovery without compromising individual privacy. Key insights from the study show that decoupling universal causal laws from local manifestations is essential for handling joint distribution shifts in federated settings.

Future research directions include addressing the assumption of causal sufficiency (accounting for unobserved confounders), exploring scenarios where the DAG structure itself might vary across environments, and integrating formal Differential Privacy (DP) to further harden the system against sophisticated gradient leakage attacks.

Summary updated

BibTeX
@article{gao2021feddag,
  author = {Erdun Gao and Junjia Chen and Li Shen and Tongliang Liu and Mingming Gong and Howard Bondell},
  title = {{FedDAG: Federated DAG Structure Learning}},
  journal = {Accepted by TMLR},
  year = {2021},
  doi = {10.48550/arxiv.2112.03555},
}
Figure