NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Tractable Bayesian Network Structure Learning with Bounded Vertex Cover Number

Janne H. Korhonen, Pekka ParviainenNeurIPS 2015

Introduction

Bayesian networks (BNs) are fundamental tools for probabilistic reasoning, but they suffer from a computational "double whammy": both calculating probabilities within a known network (inference) and finding the optimal network structure from data (learning) are NP-hard problems.

To manage this complexity, researchers frequently restrict the network's structure using measures like tree-width. While a low tree-width guarantees fast inference, a significant theoretical gap remains: learning the optimal network structure even with a tree-width as low as 2 is still NP-hard. This means we cannot efficiently find the best low-complexity model to begin with. To break this deadlock, this paper introduces a new structural constraint—bounded vertex cover number ($k$)—which makes both learning and inference tasks solvable in polynomial time for a fixed bound, offering a practical middle ground between overly simplistic trees and computationally intractable general networks.

Methodology: The Core-Periphery Model

The authors approach the problem through structural theory, combinatorial algorithms, and mathematical optimization. The foundational insight of the paper is that bounding the vertex cover number forces the network into a specific "hub-and-spoke" shape.

Core-periphery structural decomposition of a Bayesian network.

They prove that any Directed Acyclic Graph (DAG) with a vertex cover of size $k$ can be structurally decomposed into two distinct parts:

  1. A Core: A small set of up to $2k$ highly connected nodes.
  2. A Periphery: A larger set of nodes that only connect to the core and have no children of their own.

Leveraging this decomposition, the authors present a combinatorial algorithm that finds the optimal structure in $O(4^k n^{2k+O(1)})$ time. While this is polynomial in the number of nodes ($n$), the degree of the polynomial depends heavily on $k$. A complexity analysis proves the problem is W[1]-hard, meaning it is highly unlikely we can remove $k$ from the exponent of $n$. As the allowed complexity of the network grows, the learning time will inevitably increase rapidly.

Recognizing that the combinatorial algorithm is primarily of theoretical interest for larger networks, the authors developed an Integer Linear Programming (ILP) formulation. This allows standard optimization solvers (like CPLEX) to find optimal structures using clever pruning heuristics, performing significantly better in practice than the raw theoretical bounds suggest.

Key Results and Performance

The proposed approach provides the first polynomial-time algorithm for learning an optimal BN structure that also guarantees tractable inference, moving beyond simple tree structures. Because the vertex cover number is a stricter bound than tree-width ($\text{tree-width} \le \text{vertex cover}$), any network with a small vertex cover is guaranteed to have fast inference. This "tractability symmetry" makes it a highly reliable parameter for end-to-end machine learning pipelines.

Performance and running times on the carpo10000 dataset, comparing bounded vertex cover to bounded tree-width.

The authors evaluated their ILP approach on standard benchmarks, including the carpo10000 dataset ($n=60$). The experiments revealed several practical advantages:

  • Better Fit: BNs with a moderate vertex cover number (e.g., $k=6$ or $8$) often achieve much higher scores (better fit to the data) than optimal tree structures.
  • Massive Speedups: Bounded vertex cover networks were learned up to two orders of magnitude faster than bounded tree-width networks using similar ILP techniques.
  • Scalability: While the combinatorial algorithm struggled beyond $n=15$, the ILP formulation successfully scaled to datasets with 60 variables using a vertex cover bound of 8.

Limitations and Future Work

Despite its practical successes, the approach has limitations. The $n^{2k}$ complexity remains a significant barrier; even with advanced ILP solvers, the search space explodes as $k$ increases. Furthermore, the structural rigidity of requiring a single dense core might be too restrictive for datasets that naturally form multiple, independent clusters of variables.

Future work will likely focus on identifying other graph parameters that might allow for "fixed-parameter tractable" learning—where the complexity is $f(k) \cdot \text{poly}(n)$, ensuring the number of nodes does not appear in the exponent of the complexity function.

Summary updated

BibTeX
@inproceedings{korhonen2015tractable,
  author = {Janne H. Korhonen and Pekka Parviainen},
  title = {{Tractable Bayesian Network Structure Learning with Bounded Vertex Cover Number}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
}
Figure