sentential decision diagrams
play

Sentential Decision Diagrams and their Applications Guy Van den - PowerPoint PPT Presentation

Sentential Decision Diagrams and their Applications Guy Van den Broeck, Arthur Choi, and Adnan Darwiche Nov 4, 2015, INFORMS Basing Decisions on Sentences US Senate: 54 Rep., 44 Dem., and 2 Indep. p1 s1 p2 s2 p3 s3 Basing Decisions on


  1. Sentential Decision Diagrams and their Applications Guy Van den Broeck, Arthur Choi, and Adnan Darwiche Nov 4, 2015, INFORMS

  2. Basing Decisions on Sentences US Senate: 54 Rep., 44 Dem., and 2 Indep. p1 s1 p2 s2 p3 s3

  3. Basing Decisions on Sentences US Senate: 54 Rep., 44 Dem., and 2 Indep. p1 s1 p2 s2 p3 s3 > 50 Rep.

  4. Basing Decisions on Sentences US Senate: 54 Rep., 44 Dem., and 2 Indep. p1 s1 p2 s2 p3 s3 > 50 Veto Rep.

  5. Basing Decisions on Sentences US Senate: 54 Rep., 44 Dem., and 2 Indep. p1 s1 p2 s2 p3 s3 > 50 Veto 48-50 Rep. Rep.

  6. Basing Decisions on Sentences US Senate: 54 Rep., 44 Dem., and 2 Indep. p1 s1 p2 s2 p3 s3 > 50 Veto 48-50 Convince Rep. Rep. Indeps.

  7. Basing Decisions on Sentences US Senate: 54 Rep., 44 Dem., and 2 Indep. p1 s1 p2 s2 p3 s3 < 48 > 50 Veto 48-50 Convince Rep. Rep. Rep. Indeps.

  8. Basing Decisions on Sentences US Senate: 54 Rep., 44 Dem., and 2 Indep. p1 s1 p2 s2 p3 s3 < 48 Vote > 50 Veto 48-50 Convince Rep. Nay Rep. Rep. Indeps.

  9. Basing Decisions on Sentences p1 s1 p2 s2 p3 s3   

  10. Basing Decisions on Sentences p1 s1 p2 s2 p3 s3 Branch on sentences p1, p2, and p3:   

  11. Basing Decisions on Sentences p1 s1 p2 s2 p3 s3 Branch on sentences p1, p2, and p3:  p1, p2, p3 are mutually exclusive , exhaustive and not false  

  12. Basing Decisions on Sentences p1 s1 p2 s2 p3 s3 Branch on sentences p1, p2, and p3:  p1, p2, p3 are mutually exclusive , exhaustive and not false  p1, p2, p3 are called primes and represented by SDDs 

  13. Basing Decisions on Sentences p1 s1 p2 s2 p3 s3 Branch on sentences p1, p2, and p3:  p1, p2, p3 are mutually exclusive , exhaustive and not false  p1, p2, p3 are called primes and represented by SDDs  s1, s2, s3 are called subs and represented by SDDs

  14. Basing Decisions on Sentences f ( A , B , C , D ) = ( A  B )  ( C  D )  A B ¬ A A ¬ B A ¬ B ¬ A C D C D ¬ C   

  15. Basing Decisions on Sentences f ( A , B , C , D ) = ( A  B )  ( C  D ) A  B  A   B  A B ¬ A A ¬ B A ¬ B ¬ A C D C D ¬ C   

  16. Basing Decisions on Sentences f ( A , B , C , D ) = ( A  B )  ( C  D ) A  B  A   B  primes,subs primes,subs A B ¬ A A ¬ B A ¬ B ¬ A C D C D ¬ C   

  17. SDDs as Boolean Circuits f ( A , B , C , D ) ( A  ( B  D ))  C  = C  C      A ¬ A ¬ A A A  ¬ A ¬ A A      ¬ B B ¬ D ¬ B  B D  ¬ B  B ¬ D ¬ B  B D    

  18. ( X , Y ) - Partitions US Senate: 54 Rep., 44 Dem., and 2 Indep. p1 s1 p2 s2 p3 s3 > 50 Veto 48-50 Convince < 48 Vote Rep. Rep. Indeps. Rep. Nay

  19. ( X , Y ) - Partitions US Senate: 54 Rep., 44 Dem., and 2 Indep. p1 s1 p2 s2 p3 s3 > 50 Veto 48-50 Convince < 48 Vote Rep. Rep. Indeps. Rep. Nay

  20. ( X , Y ) - Partitions US Senate: 54 Rep., 44 Dem., and 2 Indep. p1( X ) s1( Y ) p2( X ) s2( Y ) p3( X ) s3( Y ) > 50 Veto 48-50 Convince < 48 Vote Rep. Rep. Indeps. Rep. Nay

  21. ( X , Y ) - Partitions US Senate: 54 Rep., 44 Dem., and 2 Indep. p1( X ) s1( Y ) p2( X ) s2( Y ) p3( X ) s3( Y ) f ( X , Y ) = p 1 ( X ) s 1 ( Y )  …  p n ( X ) s n ( Y )

  22. Variable order becomes variable tree (vtree)

  23. Variable order becomes variable tree (vtree)

  24. Variable order becomes variable tree (vtree) vtree 6 Vtree 2 5 4 1 3 0 B A D C

  25. Variable order becomes variable tree (vtree) vtree 6 Vtree 2 5 4 1 3 0 B A D C

  26. Variable order becomes variable tree (vtree) vtree 6 Vtree 2 5 4 1 3 0 B A D C

  27. OBDDs are SDDs 6 right-linear vtree 0 A 5 1 B 4 3 2 C D

  28. OBDDs are SDDs 6 right-linear vtree 0 A 5 1 B 4 3 2 C D

  29. OBDDs are SDDs 6 right-linear vtree A 0 B A 5 C 1 B 4 D 3 2 0 1 C D

  30. Ingredients for Delicious Decision Diagrams • Minimization M • Apply Function A • Succinctness S • Queries Q

  31. Ingredients for Delicious Decision Diagrams • Minimization M • Apply Function A • Succinctness S • Queries Q

  32. M Compression • An ( X , Y ) - partition: f ( X , Y ) = p 1 ( X ) s 1 ( Y )  …  p n ( X ) s n ( Y ) is compressed when subs are distinct: s i ( Y ) ≠ s i ( Y ) if i≠j • f ( X , Y ) has a unique compressed ( X,Y) -partition

  33. M Compression • An ( X , Y ) - partition: f ( X , Y ) = p 1 ( X ) s 1 ( Y )  …  p n ( X ) s n ( Y ) is compressed when subs are distinct: s i ( Y ) ≠ s i ( Y ) if i≠j • f ( X , Y ) has a unique compressed ( X,Y) -partition

  34. M Compression • An ( X , Y ) - partition: f ( X , Y ) = p 1 ( X ) s 1 ( Y )  …  p n ( X ) s n ( Y ) is compressed when subs are distinct: s i ( Y ) ≠ s i ( Y ) if i≠j • f ( X , Y ) has a unique compressed ( X,Y) -partition 

  35. M SDDs are Canonical For a fixed vtree (fixing X , Y throughout the SDD), compressed SDDs are canonical ! Equivalent sentences ≡ A  (C ∨ D) (A  C) ∨ (A  D) have identical circuits. =

  36. M OBDD Minimization  24 ordering of 4 variables ABCD  ABDC  ADBC  DABC  DACB  ADCB  ACDB  ACBD  CABD  CADB  CDAB  DCAB  DCBA  CDBA  CBDA  CBAD  BCAD  BCDA  BDCA  DBCA  DBAC  BDAC  BADC  BACD  24 OBDDs for every function over 4 variables  Searching for an optimal OBDD is searching for an optimal variable order

  37. M SDD Minimization rrotate swap lrotate swap rrotate swap swap lrotate swap rrotate swap lrotate

  38. Ingredients for Delicious Decision Diagrams • Minimization M • Apply Function A • Succinctness S • Queries Q

  39. A Efficient Apply Function • Build Boolean combinations of existing circuits • Compile arbitrary sentence incrementally ( A  ( B  D )) ( C ∨ D ) ( A  ( B  D ))  ( C ∨ D )  = • Polytime Apply: one Apply cannot blow up size  ) = O( x

  40. A Is Apply for SDDs Polytime? • | α |x| β | recursive calls • Polytime !

  41. Ingredients for Delicious Decision Diagrams • Minimization M • Apply Function A • Succinctness S • Queries Q

  42. S Succinctness • Theory – OBDD  SDD thus SDD never larger than OBDD – Quasi-polynomial separation with OBDD OBDD can be much larger than SDD – Treewidth upper bounds (important in AI!) • Practice – SDD Compiler available and effective M A – SDD Package: http://reasoning.cs.ucla.edu/sdd/ – Can obtain orders of magnitude improvements

  43. Ingredients for Delicious Decision Diagrams • Minimization M • Apply Function A • Succinctness S • Queries Q

  44. Q Queries • OBDDs are Swiss army knife of supported queries • SDDs are equally powerful • Some enabled by canonicity + apply A • E.g., (Weighted) Model Counting for Probabilistic reasoning (E.g., Pr(bill passes|Vote1=Yea))

  45. Application: Bayesian Networks • Incrementally compile network M A

  46. Application: Bayesian Networks • Incrementally compile network M A

  47. Application: Bayesian Networks • Incrementally compile network M A 

  48. Application: Bayesian Networks • Incrementally compile network M A  =

  49. Application: Bayesian Networks • Incrementally compile network M A  =

  50. Application: Bayesian Networks • Incrementally compile network M A • Compute probability of any query Q  =

  51. Application: Bayesian Networks • Incrementally compile network M A • Compute probability of any query Q • Better than state of the art (treewidth) S  =

  52. Application: Probabilistic Programming Model = program with random numbers 0.6 M P 0.9 reach(X,Y) :- flight(X,Y). 0.8 0.9 reach(X,Y) :- flight(X,Z), reach(Z,Y). 0.7 L A 0.8 M S Q A State of the art inference: SDDs

  53. Application: Tractable Learning • Given: data • Objective: – learn a probability distribution – ensure distribution is tractable for querying • Unstructured space: Voting data • Structured space: Movie recommendation

  54. Learning in Unstructured Spaces • Voting data from US House 1764 votes of 453 congressmen • Learn distribution (Markov network) M A • Represent as SDD to ensure tractability S • Query efficiency Q

  55. Learning in Structured Spaces Student enrollment constraints: • Must take at least one of Probability or Logic. • Probability is a prerequisite for AI. • The prerequisites for KR is either AI or Logic. w = A  K  L   P impossible

  56. Example: Rankings and Permutations rank user 1 rank user 2 rank user 3 1 The Godfather 1 Star Wars V: The Empire Strikes Back 1 The Usual Suspects 2 Raiders of the Lost Ark 2 Star Wars IV: A New Hope 2 One Flew over the Cuckoo’s Nest 3 Casablanca 3 The Godfather 3 The Godfather: Part II 4 The Shawshank Redemption 4 The Shawshank Redemption 4 Monty Python and the Holy Grail 5 Schindler’s List 5 The Usual Suspects 5 Star Wars IV: A New Hope ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ Learn rankings of movies (permutations): Predict new movies given preferences

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