Skip to main content
QUICK REVIEW

[Paper Review] Bayesian network learning by compiling to weighted MAX-SAT

James Cussens|arXiv (Cornell University)|Jun 13, 2012
Bayesian Modeling and Causal InferenceComputer Science8 references43 citations
TL;DR

This paper proposes a novel approach to learning discrete Bayesian networks by encoding the structure learning problem as a weighted MAX-SAT problem, leveraging the MaxWalkSat algorithm for optimization. By translating family scores (BDeu) into soft clauses and enforcing acyclicity via total ordering, the method efficiently discovers Bayesian network structures with higher BDeu scores than the true network on 21 synthetic datasets, including large-scale instances with 60 variables and 10,000 datapoints.

ABSTRACT

The problem of learning discrete Bayesian networks from data is encoded as a weighted MAX-SAT problem and the MaxWalkSat local search algorithm is used to address it. For each dataset, the per-variable summands of the (BDeu) marginal likelihood for different choices of parents ('family scores') are computed prior to applying MaxWalkSat. Each permissible choice of parents for each variable is encoded as a distinct propositional atom and the associated family score encoded as a 'soft' weighted single-literal clause. Two approaches to enforcing acyclicity are considered: either by encoding the ancestor relation or by attaching a total order to each graph and encoding that. The latter approach gives better results. Learning experiments have been conducted on 21 synthetic datasets sampled from 7 BNs. The largest dataset has 10,000 datapoints and 60 variables producing (for the 'ancestor' encoding) a weighted CNF input file with 19,932 atoms and 269,367 clauses. For most datasets, MaxWalkSat quickly finds BNs with higher BDeu score than the 'true' BN. The effect of adding prior information is assessed. It is further shown that Bayesian model averaging can be effected by collecting BNs generated during the search.

Motivation & Objective

  • To address the challenge of learning optimal Bayesian network structures from data using a scalable and effective optimization framework.
  • To encode the discrete Bayesian network learning problem as a weighted MAX-SAT problem to leverage powerful local search solvers.
  • To evaluate the effectiveness of two acyclicity enforcement strategies: ancestor relation encoding and total ordering of variables.
  • To assess the impact of prior information and demonstrate the feasibility of Bayesian model averaging through search-based sampling.

Proposed method

  • Family scores (BDeu) for each variable's potential parent sets are precomputed and encoded as soft weighted single-literal clauses in a MAX-SAT formulation.
  • Each permissible parent configuration for a variable is represented as a distinct propositional atom in the SAT instance.
  • Acyclicity is enforced by introducing a total order over variables, with constraints encoded as hard clauses to prevent cycles.
  • The MaxWalkSat local search algorithm is applied to the weighted CNF formula to maximize the sum of soft clause weights (i.e., BDeu score).
  • The method supports Bayesian model averaging by collecting multiple high-scoring networks generated during the search process.
  • The approach is evaluated on 21 synthetic datasets derived from 7 Bayesian networks, with sizes up to 60 variables and 10,000 datapoints.

Experimental results

Research questions

  • RQ1Can Bayesian network structure learning be effectively reformulated as a weighted MAX-SAT problem to enable scalable optimization?
  • RQ2Which acyclicity encoding strategy—ancestor relation or total ordering—yields better performance in terms of BDeu score and convergence speed?
  • RQ3How does the inclusion of prior information affect the quality of learned Bayesian networks using this MAX-SAT encoding?
  • RQ4To what extent can Bayesian model averaging be approximated by collecting diverse high-scoring structures during the search process?

Key findings

  • For most synthetic datasets, MaxWalkSat consistently found Bayesian network structures with higher BDeu scores than the true network used to generate the data.
  • The total ordering approach to enforcing acyclicity outperformed the ancestor relation encoding in terms of solution quality and convergence speed.
  • The method successfully scaled to large datasets, producing a weighted CNF instance with 19,932 atoms and 269,367 clauses for a 60-variable network with 10,000 datapoints.
  • The inclusion of prior information improved the quality of learned structures, demonstrating the method's flexibility in incorporating domain knowledge.
  • Bayesian model averaging was effectively approximated by collecting multiple high-scoring networks generated during the search, validating the method’s utility beyond point estimation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.