Computational Complexity
- f Bayesian Networks
Computational Complexity of Bayesian Networks Johan Kwisthout and - - PowerPoint PPT Presentation
Computational Complexity of Bayesian Networks Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queens University Belfast UAI, 2015 Complexity theory Many computations on Bayesian networks are NP-hard Meaning
◮ Get insight in what makes particular instances hard ◮ Understand why and when computations can be tractable ◮ Use this knowledge in practical applications
◮ For exactly the reasons above!
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #1
◮ Turing Machines ◮ Classes P, NP; NP-hardness ◮ polynomial-time reductions
◮ Probabilistic Turing Machines ◮ Oracle Machines ◮ Complexity class PP and PP with oracles ◮ Fixed-parameter tractability
◮ Inference problem (compute Pr(H = h | E = e)) ◮ MAP problem (compute arg maxh Pr(H = h | E = e))
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #2
◮ Network: B = (GB, Pr) ◮ Variable: X, Sets of variables: X ◮ Value assignment: x, Joint value assignment: x ◮ Evidence (observations): E = e
◮ Boolean formula φ with variables X1, . . . , Xn, possibly
◮ In this context: quantifiers ∃ and MAJ ◮ Simplest version: given φ, does there exists (∃) a truth
◮ Other example: given φ, does the majority (MAJ) of truth
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #3
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #4
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #5
2 if and only if x ∈ L. If the transition
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #6
2 + ǫ that a Yes-instance is accepted
◮ Yes-instances for problems in PP are accepted with
2 + 1/ cn (for a constant c > 1)
◮ Yes-instances for problems in BPP are accepted with a
2 + 1/ nc
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #7
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #8
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #9
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #10
◮ THRESHOLD INFERENCE is in PP, and ◮ THRESHOLD INFERENCE is PP-hard
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #11
2 if and only if Pr(h) > q. ◮ M computes a joint probability Pr(y1, . . . , yn) by iterating
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #12
2 − q · ǫ if the joint value
2 + (1 − q)ǫ) + (1 − Pr(h)) · (1/ 2 − q · ǫ) = 1/ 2 + Pr(h) · ǫ − q · ǫ. ◮ Indeed the probability of arriving in an accepting state is
2 if and only if Pr(h) > q.
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #13
◮ For each propositional variable xi in φ, a binary stochastic
◮ For each logical operator in φ, an additional binary variable
◮ The top-level operator in φ is denoted as Vφ.
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #14
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #15
2 if and only if the majority
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #16
◮ PP is a class of a different nature than NP. This has effect
◮ Proving completeness for ‘higher’ complexity classes will
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #17
◮ ‘approximate solution A has a value that is close to the
◮ ‘approximate solution A′ closely resembles the optimal
◮ ‘approximate solution A′′ ranks within the top-m solutions’ ◮ ‘approximate solution A′′′ is quite likely to be the optimal
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #18
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #19
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #20
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #21
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #22
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #23
2 − 1/ nc for a constant c unless NP ⊆ BPP.
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #24
Johan Kwisthout and Cassio P . de Campos Radboud University Nijmegen / Queen’s University Belfast Computational Complexity of Bayesian Networks Slide #25