Learning Sparse Fixed-Structure Gaussian Bayesian Networks

Arnab Bhattacharyya, Davin Choo, Rishikesh Gajjala, Sutanu Gayen, Yuhao Wang

Abstract

Gaussian Bayesian networks (GBNs) are fundamental tools for modeling causal interactions among continuous variables. While parameter estimation for GBNs is well-understood in the limit, finite-sample complexity bounds for distribution learning have remained elusive. This paper provides the first such bounds for learning GBNs with a known, sparse structure. We analyze the standard node-wise Least Squares estimator and introduce two novel algorithms—BatchAvgLeastSquares and CauchyEst—designed for improved robustness. Our results show that while Least Squares is nearly optimal for clean data, the proposed Cauchy-based estimators offer significant advantages in the presence of data contamination and model misspecification.

1. Introduction

Gaussian Bayesian Networks (GBNs) represent complex multivariate distributions as a set of linear structural equations. In a GBN, each variable is expressed as a linear combination of its parents in a Directed Acyclic Graph (DAG), plus independent Gaussian noise. While much research has focused on recovering the exact weights of these interactions, this work addresses the problem of distribution learning: finding a distribution $\hat{P}$ that is close to the true distribution $P$ in Total Variation (TV) distance.

We focus on the "sparse fixed-structure" setting, where the underlying DAG is known and each node has a maximum in-degree $d$. Despite the ubiquity of this model, explicit PAC-style sample complexity bounds for this problem were previously absent from the literature.

2. Methodology and Algorithms

The learning process follows a two-phased approach: first, estimating the linear coefficients (weights) for each node, and second, estimating the noise variances. We evaluate three primary algorithmic frameworks:

2.1 LeastSquares (MLE)

The baseline approach utilizes node-wise ordinary least squares regression. As the Maximum Likelihood Estimator (MLE), it is computationally efficient and serves as the standard for comparison.

2.2 BatchAvgLeastSquares

This algorithm partitions the data into multiple batches, computes the least squares solution for each batch, and then averages the results. This approach allows for a flexible trade-off between batch size and the number of batches, making it suitable for distributed computing environments.

2.3 CauchyEst and CauchyEstTree

The most significant algorithmic contribution is the introduction of Cauchy-based estimators. Instead of averaging, these algorithms solve numerous "minimal" linear systems—using just enough samples to identify the coefficients—and then compute the component-wise median of the solutions. For polytree structures, the errors in these minimal systems follow a Cauchy distribution. By leveraging the stability of the median for Cauchy-distributed variables, these estimators achieve high robustness against outliers.

3. Theoretical Contributions

The paper establishes several key theoretical results:

  • KL Decomposition: The authors demonstrate that the global error (KL divergence) of the network can be decomposed into the sum of local errors at each node. This provides a formal justification for the node-wise learning strategy.
  • Sample Complexity: Both LeastSquares and BatchAvgLeastSquares achieve a near-optimal sample complexity of $\tilde{O}(nd/\varepsilon^2)$, where $n$ is the number of nodes, $d$ is the maximum in-degree, and $\varepsilon$ is the error tolerance.
  • Lower Bounds: The work proves a matching lower bound of $\Omega(nd/\varepsilon^2)$, confirming that these algorithms are asymptotically optimal.

4. Experimental Evaluation

The algorithms were tested on synthetic Erdős-Rényi graphs and random polytrees, as well as real-world benchmarks from the bnlearn repository, including ECOLI70 (46 nodes), MAGIC-NIAB (44 nodes), and ARTH150 (107 nodes).

4.1 Robustness to Contamination

To test robustness, the researchers injected 5% "outlier" data (high-variance Gaussian or Cauchy noise). In these scenarios, CauchyEst and BatchAvgLeastSquares significantly outperformed the standard LeastSquares MLE, which proved sensitive to even small amounts of contamination.

4.2 Model Misspecification

In "agnostic" learning scenarios where the provided DAG structure was slightly incorrect (e.g., missing edges), the batch-based and Cauchy-based methods demonstrated superior stability compared to the MLE. While LeastSquares is extremely fast (e.g., ~0.02s for a 100-node graph), the more robust CauchyEst requires more computation (~25s) to achieve this stability.

5. Conclusion and Future Work

This work provides a rigorous foundation for the sample complexity of GBN learning. While LeastSquares remains the most efficient choice for clean, well-specified data, the proposed CauchyEst and BatchAvgLeastSquares algorithms offer essential robustness for real-world applications where data may be contaminated or the model structure may be imperfect.

Future research directions include extending the theoretical guarantees of CauchyEst to general DAGs and integrating these robust estimation techniques into structure learning algorithms that discover the graph topology directly from data.

Summary updated

BibTeX
@inproceedings{bhattacharyya2022learning,
  author = {Arnab Bhattacharyya and Davin Choo and Rishikesh Gajjala and Sutanu Gayen and Yuhao Wang},
  title = {{Learning Sparse Fixed-Structure Gaussian Bayesian Networks}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
  url = {https://openreview.net/forum?id=w6LsItagj3},
}
Figure