Towards Federated Bayesian Network Structure Learning with Continuous Optimization

Ignavier Ng, Kun Zhang

Abstract

Traditionally, Bayesian network structure learning is often carried out at a central site, in which all data is gathered. However, in practice, data may be distributed across different parties (e.g., companies, devices) who intend to collectively learn a Bayesian network, but are not willing to disclose information related to their data owing to privacy or security concerns. In this work, we present a federated learning approach to estimate the structure of Bayesian network from data that is horizontally partitioned across different parties. We develop a distributed structure learning method based on continuous optimization, using the alternating direction method of multipliers (ADMM), such that only the model parameters have to be exchanged during the optimization process. We demonstrate the flexibility of our approach by adopting it for both linear and nonlinear cases. Experimental results on synthetic and real datasets show that it achieves an improved performance over the other methods, especially when there is a relatively large number of clients and each has a limited sample size.

Introduction

Bayesian Network Structure Learning (BNSL) is the process of discovering the conditional dependencies between variables in a dataset—essentially mapping which variables influence others. Traditionally, this requires gathering all data into a central location. However, in fields like healthcare or finance, data is often "siloed" due to privacy regulations like HIPAA.

This paper, presented at AISTATS 2022, introduces the first federated framework for BNSL using continuous optimization. By combining the NOTEARS framework with the Alternating Direction Method of Multipliers (ADMM), the authors enable multiple parties to collaboratively learn a global causal model without sharing private, local datasets. This approach significantly outperforms traditional "voting" methods, particularly when individual clients have very limited data samples.

Methodology: NOTEARS-ADMM

The proposed framework bridges two powerful concepts to solve the distributed learning challenge:

  1. NOTEARS (Continuous Optimization for BNSL): Finding the best Directed Acyclic Graph (DAG) is typically a combinatorial challenge. The NOTEARS framework transforms this discrete search into a continuous optimization problem using a mathematical constraint to ensure the resulting graph remains acyclicity.
  2. ADMM (Distributed Coordination): To facilitate federated learning, the authors employ ADMM. In this setup, clients solve local optimization problems on their own data. A central server then collects these model parameters (not raw data) and updates a global variable to pull all clients toward a consensus.

This iterative process continues until clients agree on a single global structure. The framework is flexible, supporting both linear Gaussian relationships and complex nonlinear dependencies modeled via Multi-Layer Perceptrons (MLPs).

Experimental Evaluation

The researchers evaluated their approach on both synthetic and real-world data:

  • Synthetic Simulations: DAGs generated using the Erdös–Rényi model, simulating linear and nonlinear relationships.
  • Real-World Data: The Sachs protein expression dataset, a benchmark in causal discovery containing 853 samples and 11 variables related to cell signaling.

The experiments focused on the "limited sample" regime, where total data is split across up to 64 clients, leaving some with as few as 4 to 8 samples.

Key Results and Insights

Superior Accuracy and Scalability

In almost all tests, the proposed NOTEARS-ADMM achieved lower Structural Hamming Distance (SHD)—indicating fewer graph errors—and higher True Positive Rates (TPR) than baselines like "Voting" or "Averaging."

Performance metrics (SHD, TPR, FDR) across varying numbers of variables d.

Stability with Scale

As the number of clients ($K$) increases and the data per client decreases, traditional methods often see performance plummet. NOTEARS-ADMM remains remarkably stable, maintaining a high TPR even when data is spread very thin. This robustness stems from the collective optimization process, which allows a global structure to emerge even when individual clients lack the data to see the "big picture."

Performance metrics (SHD, TPR, FDR) as the number of clients K increases, demonstrating stability in the limited-sample regime.

On the Sachs dataset, the federated approach achieved a lower error rate than the centralized "AllData" version in some cases, suggesting that the ADMM process may act as a form of regularization against model misspecification.

Conclusion and Future Work

While NOTEARS-ADMM provides a robust foundation for federated causal discovery, several avenues for future work remain. The current approach is synchronous, requiring all clients to participate in every round. Future iterations could explore asynchronous versions for more dynamic environments. Additionally, addressing data heterogeneity (non-i.i.d. data) and integrating formal privacy guarantees like Differential Privacy or Homomorphic Encryption would further enhance the framework's real-world applicability.

Summary updated

BibTeX
@inproceedings{ng2022towards,
  author = {Ignavier Ng and Kun Zhang},
  title = {{Towards Federated Bayesian Network Structure Learning with Continuous Optimization}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
  url = {https://openreview.net/forum?id=QY6kxqPIZ5Q},
}
Figure