Learning Binary Bayesian Networks in Polynomial Time and Sample Complexity

Adarsh Barik, Jean HonorioarXiv 2018

Introduction

Learning the structure of a Bayesian network (BN) from observational data is a fundamental problem in machine learning, yet it is notoriously NP-hard in the general case. While Bayesian networks are powerful tools for representing conditional dependencies via Directed Acyclic Graphs (DAGs), the computational complexity of discovering these graphs often forces researchers to choose between exponential-time exact algorithms or heuristics that lack theoretical guarantees. This paper presents a breakthrough by demonstrating that the undirected skeleton of a discrete Bayesian network can be recovered in polynomial time with a sample complexity that grows only logarithmically with the number of nodes.

The Challenge of Categorical Variables

Most existing structure learning methods are optimized for continuous Gaussian data or strictly binary variables. However, real-world data frequently consists of categorical variables (e.g., "Country of Residence") that lack a natural ordering. This paper addresses the challenge of learning from arbitrary categorical variables without assuming a specific underlying probability distribution. By framing the problem as a block $\ell_{1,2}$-regularized multivariate regression, the authors provide a mathematically guaranteed method to recover the structure of networks containing these complex discrete variables.

Methodology: Block-Regularized Regression

The authors propose a node-wise approach to structure learning. Instead of attempting to identify the entire DAG simultaneously, the algorithm focuses on identifying the neighborhood (parents and children) of each node to reconstruct the network's skeleton.

1. Encoding and Substitute Modeling

Categorical variables are first transformed into numerical vectors using standard encoding schemes (such as dummy encoding). This avoids imposing artificial ordinality on the data. Since the true conditional probability distributions are typically unknown, the authors utilize a "substitute" quadratic loss model. They assign surrogate parameter matrices to represent the potential influence of neighboring nodes on a target variable.

2. Block $\ell_{1,2}$-Regularization

To identify the true neighbors among many candidates, the method employs a group Lasso-style regularization known as the $\ell_{1,2}$ norm. This penalty promotes "group sparsity," forcing the algorithm to either select all encoded features of a neighboring variable or set the entire block of weights to exactly zero. If a block remains non-zero, that variable is identified as a neighbor (either a parent or a child) in the skeleton.

3. Theoretical Framework

The authors use a Primal-Dual Witness construction to rigorously prove that this regression technique can exactly recover the true network skeleton. This recovery is guaranteed under specific technical conditions, such as "Mutual Incoherence"—an assumption that the influence of unrelated nodes is not overly correlated with the actual neighbors of a target node.

Key Insights and Theoretical Guarantees

  • Distribution-Agnostic Recovery: A significant contribution of this work is that the algorithm does not require knowledge of the true data generation process. As long as the data satisfies certain interaction conditions, the underlying probability distribution does not matter.
  • Logarithmic Sample Complexity: For networks where the maximum degree of any node is bounded, the number of samples required for perfect recovery scales as $O(\log n)$, where $n$ is the total number of nodes. This makes the approach highly scalable to high-dimensional datasets.
  • Computational Efficiency: The problem is framed as a second-order cone program, which can be solved in polynomial time using standard interior-point methods. The exact sample complexity for recovery is proven to be $O(\bar{\rho}^2 \rho_{max}^3 \log n)$.

Experimental Results

The authors validated their approach using synthetic data, benchmark networks, and real-world datasets.

  • Synthetic Scaling: In tests with networks ranging from 20 to 500 nodes, the algorithm's performance aligned with theoretical predictions. Precision and recall both approached 1.0 as the sample size increased, regardless of the total number of nodes.
  • Benchmark Performance: On standard networks like alarm and child, the method achieved F1-scores competitive with or superior to state-of-the-art algorithms such as Max-Min Parent and Children (MMPC) and Max-Min Hill-Climbing (MMHC). For instance, it reached an F1-score of 0.98 on the child network.
  • Real-World Application: Across 15 real-world datasets (including dna, netflix, and wiki4he), the algorithm—when combined with a simple greedy search for edge orientation—produced negative log-likelihood scores comparable to established heuristic methods.

Conclusion and Limitations

While this method provides a robust, polynomial-time solution for skeleton recovery, it does not natively determine the direction of the edges (causality). Edge orientation remains a separate step, though the authors note that the recovered skeleton can be oriented using existing linear-time algorithms for bounded-treewidth graphs. Additionally, while the "Mutual Incoherence" and "Positive Definiteness" assumptions are theoretical requirements, empirical results suggest the algorithm remains effective even when these conditions are not strictly met in complex real-world datasets.

Summary updated

BibTeX
@misc{barik2018learning,
  author = {Adarsh Barik and Jean Honorio},
  title = {{Learning Binary Bayesian Networks in Polynomial Time and Sample Complexity}},
  year = {2018},
  eprint = {1803.04087},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.04087},
}
Figure