local structure and be
play

Local Structure and BE extensions COMPSCI 276, Spring 2017 Set 5b: - PowerPoint PPT Presentation

Local Structure and BE extensions COMPSCI 276, Spring 2017 Set 5b: Rina Dechter 1 (Reading: Darwiche chapter 5, dechter chapter 4) Outline Special representations of CPTs Bucket Elimination: Finding induced-width Bucket


  1. Local Structure and BE extensions COMPSCI 276, Spring 2017 Set 5b: Rina Dechter 1 (Reading: Darwiche chapter 5, dechter chapter 4)

  2. Outline • Special representations of CPTs • Bucket Elimination: • Finding induced-width • Bucket elimination over mixed networks

  3. Outline • Bayesian networks and queries • Building Bayesian Networks • Special representations of CPTs • Causal Independence (e.g., Noisy OR) • Context Specific Independence • Determinism • Mixed Networks

  4. Think about headache and 10 different conditions that may cause it. A noisy-or circuit We wish to specify cpt with less parameters

  5. Binary OR A B X A B P(X=0|A,B) P(X=1|A,B) 0 0 1 0 0 1 0 1 1 0 0 1 1 1 0 1 Causal Indepedence 6

  6. Noisy/OR CPDs

  7. A student’s example Difficulty Intelligence Grade SAT Apply Letter Job 25

  8. Tree CPD If the student does not A pply, S AT and L are irrelevant A a 0 a 1 S (0.8,0.2) s 0 s 1 L (0.1,0.9) l 0 l 1 (0.9,0.1) (0.4,0.6) Tree-CPD for job Causal Indepedence 26

  9. Captures irrelevant variables C c 1 c 2 L1 L2 l1 0 l1 1 l2 0 l2 1 (0.9,0.1) (0.3,0.7) (0.8,0.2) (0.1,0.9) Choice Letter1 Letter2 Causal Indepedence 27 Job

  10. Multiplexer CPD A CPD P(Y|A,Z1,Z2,…,Zk) is a multiplexer iff Val(A)=1,2,…k, and P(Y|A,Z1,…Zk)=Z_a Choice Letter1 Letter2 Letter Job Causal Indepedence 28

  11. Mixture of trees Meila and Jordan, 2000

  12. Mixture model with shared structure Meila and Jordan, 2000

  13. Can we use hidden variables?

  14. Mixed Networks (Dechter 2013) Augmenting Probabilistic networks with constraints because: • Some information in the world is deterministic and undirected (X ≠ Y) • Some queries are complex or evidence are complex (cnfs) Queries are probabilistic queries

  15. Probabilistic Reasoning Party example: the weather effect Alex is-likely-to-go in bad weather W A P(A|W=bad)=.9 Chris rarely-goes in bad weather W C P(C|W=bad)=.1 Becky is indifferent but unpredictable W B P(B|W=bad)=.5 W A P(A|W) Questions: good 0 .01 Given bad weather, which group of individuals is good 1 .99 most likely to show up at the party? bad 0 .1 bad 1 .9 What is the probability that Chris goes to the party but P(W) Becky does not? W P(W,A,C,B) = P(B|W) · P(C|W) · P(A|W) · P(W) A P(A,C,B|W=bad) = 0.9 · 0.1 · 0.5 B C P(A|W) 35 Changes’05 P(B|W) P(C|W)

  16. Party Example Again Bayes Network Constraint Network P(W) P(W) W W P(B|W) P(B|W) P(C|W) P(C|W) B B A A C C A→B A→B C→A C→A P(A|W) P(A|W) B B A A C C Query: Is it likely that Chris goes to the party if Becky does not but the Semantics? weather is bad? Algorithms?     P ( C , B | w bad , A B , C A )

  17. Outline • Special representations of CPTs • Bucket Elimination: • Finding induced-width • Bucket elimination over mixed networks

  18. O(nexp(w*+1)) and O(n exp(w*)), respectively More accurately: O(r exp(w*(d)) where r is the number of cpts. For Bayesian networks r=n. For Markov networks? 38

  19. Finding Small Induced-Width (Dechter 3.4-3.5) NP-complete A tree has induced-width of ? Greedy algorithms: Min width Min induced-width Max-cardinality and chordal graphs Fill-in (thought as the best) See anytime min-width (Gogate and Dechter) 39

  20. Type of graphs 40

  21. The induced width 41

  22. Different Induced-graphs 42

  23. Min-Width Ordering Proposition: (Freuder 1982) algorithm min-width finds a min-width ordering of a graph. Complexity O(|E|) 43

  24. Greedy Orderings Heuristics Theorem: A graph is a tree iff it has both width and induced-width of 1. Complexity? O(n^3) 44

  25. Different Induced-Graphs 45

  26. Induced-width for chordal graphs Definition: A graph is chordal if every cycle of length at least 4 has a chord Finding w* over chordal graph is easy using the max-cardinality ordering: order vertices from 1 to n, always assigning the next number to the node connected to a largest set of previously numbered nodes. Lets d be such an ordering A graph along max-cardinality order has no fill-in edges iff it is chordal. On chordal graphs width=induced-width. 46

  27. Max-cardinality ordering 47 What is the complexity of min-fill? Min-induced-width?

  28. K-trees 48

  29. Which greedy algorithm is best? 49

  30. Recent work in my group Vibhav Gogate and Rina Dechter. "A Complete Anytime Algorithm for Treewidth". In UAI 2004. Andrew E. Gelfand, Kalev Kask, and Rina Dechter. "Stopping Rules for Randomized Greedy Triangulation Schemes" in Proceedings of AAAI 2011. Kalev Kask, Andrew E. Gelfand, Lars Otten, and Rina Dechter. "Pushing the Power of Stochastic Greedy Ordering Schemes for Inference in Graphical Models" in Proceedings of AAAI 2011. Kask, Gelfand and Dechter, BEEM: Bucket Elimination with External memory, AAAI 2011 or UAI 2011 Potential project 50

  31. Mixed Networks Augmenting Probabilistic networks with constraints because: Some information in the world is deterministic and undirected (X ≠ Y). Some queries are complex or evidence are complex (cnf formulas) Queries are probabilistic queries

  32. Mixed Beliefs and Constraints       ( G D ) ( D B ) If the constraint is a cnf formula   P ( ) ? Queries over hybrid network:   P ( x | ) ? Complex evidence structure   P ( x | ) ? 1 All reduce to cnf queries over a Belief network: CPE (CNF probability evaluation): Given a belief network, and a cnf formula, find its probability. 52 Changes’05 276 Fall 2007

  33. Party example again PN CN P(W) P(W) W W P(B|W) P(B|W) P(C|W) P(C|W) B B A A C C A→B A→B C→A C→A P(A|W) P(A|W) B B A A C C Query: Is it likely that Chris goes to the party if Becky does not but the Semantics? weather is bad? Algorithms?     P ( C , B | w bad , A B , C A )

  34. Bucket Elimination for Mixed networks The CPE query P((C  B) and P(A  C)) 55

  35. 56

  36. 57

  37. Processing Mixed Buckets 58

  38. A Hybrid Belief Network Bucket G: P ( G | F,D )  G A Bucket F: P ( F | B,C )     P ( G 0 | F , D ) P(c 1 |a 0 ) 1 C B Bucket D: P ( D | A,B )  F ( B , C , D ) Bucket C: P ( C | A )  D ( A , B , C ) F Bucket B: P ( B | A )  B ( A , B ) D   G D F Bucket A: P ( A )  C ( A ) G  P ( A | G ) Belief network P(g,f,d,c,b,a) 276 Fall 2007 =P(g|f,d)P(f|c,b)P(d|b,a)P(b|a)P(c|a)P(a)

  39. Variable elimination for a mixed network: Bucket G: P ( G | F,D ) Bucket G: P ( G | F,D )          G ( D G )( F G )( F D G ), G Bucket F: P ( F | B,C ) Bucket F: P ( F | B,C )    P ( G 0 | F , D ) ( F ) P ( G 0 | F , D ) Bucket D: P ( D | A,B ) Bucket D: P ( D | A,B )    F ( D ) F ( D ) ( B , C , D ) Bucket C: P ( C | A ) Bucket C: P ( C | A ) (A   F  (B, C) C) D ( A , B , C ) Bucket B: P ( B | A ) Bucket B: P ( B | A )   D C  ( A , B ), ( A , B ) B ( A , B ) Bucket A: P ( A ) Bucket A: P ( A )   B  C ( A ) D ( A )   P ( A | G ) P ( A | G ) (b) Elim-CPE-D with clause extraction (a) regular Elim-CPE

  40. Trace of Elim-CPE Bucket G: P ( G|F,D )  D  ( G ) G A Bucket D: P ( D|A,B )     G ( D B ), ( F , D ) D C B Bucket B: P ( B|A ) P ( F|B,C ) B    D ( A , B ) ( C ) B F Bucket C: P ( C|A )  B ( F , C ) C D Bucket F:   C D ( F ) ( F ) G Bucket A:     F B B C 2 A ( ) 1 A ( ) ( A ) Belief network P(g,f,d,c,b,a) (  P ) 276 Fall 2007 =P(g|f,d)P(f|c,b)P(d|b,a)P(b|a)P(c|a)P(a)

  41. Bucket-elimination example for a mixed network 62

  42. Markov Networks Dechter, chapter 2

  43. Complexity 64

  44. The running intersection property

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend