Presentation is loading. Please wait.

Presentation is loading. Please wait.

Www.itu.dk 1 Knowledge Compilation Properties of Tree-of-BDDs Sathiamoorthy Subbarayan AAAI-2007, Vancouver Lucas Bordeaux, Youssef Hamadi IT University.

Similar presentations


Presentation on theme: "Www.itu.dk 1 Knowledge Compilation Properties of Tree-of-BDDs Sathiamoorthy Subbarayan AAAI-2007, Vancouver Lucas Bordeaux, Youssef Hamadi IT University."— Presentation transcript:

1 1 Knowledge Compilation Properties of Tree-of-BDDs Sathiamoorthy Subbarayan AAAI-2007, Vancouver Lucas Bordeaux, Youssef Hamadi IT University of Copenhagen Denmark Microsoft Research, Cambridge UK

2 2 Knowledge Compilation Compile a system model in to a form –Forms: BDD, DNNF, d-DNNF, Tree-of-BDDs Quickly answer interesting queries Applications: configuration, verification, fault-trees, Bayesian networks, model- based diagnosis, etc.,

3 3 Compilation Forms FormSizeCompiler DNNF (JACM 2001) Tree-of-BDDs (CPAIOR 2005) d-DNNF (JAIR 2002) BDD (IEEE Comp. 1986) Tree-of-BDDs even 1000 times smaller than d-DNNF

4 4 Binary Decision Diagrams A compressed representation of solutions Answers many queries in polytime

5 5 CNF to BDD bdd CNF clauses BDD C1 C4 C2 C3 C5 C7 C6 c1c2c3c4c5c6c7 clause BDDs AND

6 6 Tree-of-BDDs (ToB) C1 C2 C3 C4 C5 C6 C7 Tree Decomposition ToB CNF clauses C1 C4 C2 C3 C5 C7 C6 c1c2c3c4c5c6c7 clause BDDs b1 b2 b3 AND+Propagate

7 7 Example: CNF to ToB : (¬a+¬e) : (a+b) : (b+¬c) : (c+¬d) : (¬b+¬d) C1 C4 C2 C3 C5 c5c3c1c2c4 C1 C2 C4 C5 C3 Tree Decomposition ToB CNF clauses Group clause- BDDs AND+Propagate

8 8 Example Comparison OBDD 14 edges d-DNNF 15 edges 12 edges ToB Exploits tree- width!

9 9 Some Interesting Queries Consistency (CO) Validity (VA) Clausal Entailment (CE) Implicant Check (IM) Equality (EQ) Sentential Entailment (SE) Model Counting (CT) Model Enumeration (ME)

10 10 Conditioning ToB Condition (ToB, term) //Restrict ToB by term Restrict each BDD with term Propagate Worst case exponential in tree-width!

11 11 Clausal Entailment, Implicant Check IsCE (ToB, clause) //Does ToB entails the clause Condition (ToB, ¬clause) if (ToB=false) return true else return false IsIM (ToB, term) //Does the term entails ToB Condition (ToB, term) if ( term entails each BDD ) return true else return false

12 12 Complexity of Queries FormCOVACEIMEQSECTME DNNF ToB d-DNNF OBDD Polytime Polytime if P=NP Worst case exponential in w Worst case exponential in (w 1 + w 2 )

13 13 Query Complexity Vs. Size FormCOVACEIMEQSECTMESize DNNF ToB d-DNNF OBDD Realistic instances often have low treewidth ! ToB exploits it well !!

14 14 Experiments 91 realistic CNF instances –35 Mercedes car configuration problems –7 ISCAS85 circuits –17 ISCAS89 circuits –14 ISCAS93 Addendum circuits –13 ISCAS99 circuits –5 Bounded model checking circuits Compare with c2d, a d-DNNF compiler Simulate CE and IM queries on ToBs

15 15 Tools, Instances, Presentation

16 16 Compilation Overview Formd-DNNF (hg)d-DNNF (mf)ToB #compiled #failed1280 Total time* Total size*412.7 m602.2 m17.6 m *for successful compilations We could not find any realistic instance where d-DNNF beats ToB in compilation ! Realistic: Industrial instance in SAT competition

17 17 Details: Cases hard for d-DNNF Instanced-DNNF (hg)d-DNNF (mf)ToB Name|V||C|wTimeSizeTimeSizeTimeSize c TO c TO s TO s TO s FSE s TO cnt TO cnt TO C168FW TO C170FR TO C202FS TO C202FW TO C208FC TO C210FS TO C210FW TO Very low treewidth! ToB even 1000 times smaller than d-DNNF!

18 18 CE and IM Simulation InstanceToB - CE TimeToB - IM Time NameMeanMax>1s %MeanMax>1s % c c s s s s cnt cnt C168FW C170FR C202FS C202FW C208FC C210FS C210FW Quick responses!

19 19 Compilation Time: ToB vs. d-DNNF ToB is much faster than d-DNNF

20 20 Compilation Space: ToB vs. d-DNNF ToB is much smaller than d-DNNF

21 21 Conclusion ToBs often very small in time and space Even 1000 times smaller than d-DNNF Still quick response to many queries Future work: –EQ Check, usefulness in verification ? –Succinctness of ToB vs d-DNNF –Transformations supported by ToB –Adopting ToBs for multi-core CPUs

22 22 Thanks!

23 23 FormCOVACEIMEQSECTMESize DNNF ToB d-DNNF OBDD Realistic instances often have low treewidth ! ToB exploits it well !! Query Complexity Vs. Size

24 24 Propagation in ToB Use a rooted BFS tree Propagate up –Makes each parent consistent with children Propagate down –Makes each child consistent with parent

25 25 Projection in ToB Project (ToB, K) //Project ToB over K variables Conjoin BDDs from bottom to top Early quantification of non-K variables Worst case exponential in (w+|K|)

26 26 Equivalence Checking IsEQ (ToB 1, ToB 2 ) Project ToB 1 over vars in each node of ToB 2 -Check whether the two BDDs agree Project ToB 2 over vars in each node of ToB 1 -Check whether the two BDDs agree Worst case exponential in (w 1 +w 2 )


Download ppt "Www.itu.dk 1 Knowledge Compilation Properties of Tree-of-BDDs Sathiamoorthy Subbarayan AAAI-2007, Vancouver Lucas Bordeaux, Youssef Hamadi IT University."

Similar presentations


Ads by Google