Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal...

34
Variable Elimination (VE) Barak Sternberg

Transcript of Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal...

Page 1: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Variable Elimination (VE)

Barak Sternberg

Page 2: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Basic Ideas in VE

โ–ช Example 1:

โ–ช Let G be a Chain Bayesian Graph:

โ–ช How would one compute ๐‘ƒ ๐‘‹๐‘› = ๐‘˜ ?โ€“ Using the CPDs:

โ–ช ๐‘ƒ ๐‘‹2 = ๐‘ฅ = ๐‘ฅโˆˆ๐‘‰๐‘Ž๐‘™ ๐‘‹1 ๐‘ƒ ๐‘‹1 = ๐‘ฅ P X2 = l X1 = ๐‘ฅ)

โ–ช Saving each distribution and reusing it for next computation (Dynamic Programming).

๐‘‹1 ๐‘‹2 ๐‘‹๐‘›โˆ’1 ๐‘‹๐‘›

Page 3: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Basic Ideas in VE

โ–ช Complexity of Example 1:โ€“ Assume value space of ๐‘‹๐‘–s is of size ๐‘˜

โ€“ For Each distribution ๐‘ƒ(๐‘‹๐‘–): ๐‘‚(๐‘˜2)

โ€“ There are ๐‘› nodes: ๐‘‚(๐‘›๐‘˜2)

โ–ช Naive Computation cost is ๐‘‚(๐‘˜๐‘›โˆ’1):โ€“ computing ๐‘‹1,โ€ฆ๐‘‹๐‘›โˆ’1 ๐‘ƒ(๐‘‹1, โ€ฆ๐‘‹๐‘›)

Page 4: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Basic Ideas in VE

โ–ช Example 2

โ–ช Assume The equation:

โ–ช ๐œ“ ๐ด, ๐ต, ๐ถ, ๐ท = ๐œ™1(๐ด)๐œ™2(B,A) ๐œ™3(C,B) ๐œ™4 ๐ท, ๐ถ

โ–ช We want to compute:โ€“ ๐œ“ ๐ท := ๐ดโ€ฒ,๐ตโ€ฒ,๐ถโ€ฒ๐œ“ ๐ดโ€ฒ, ๐ตโ€ฒ, ๐ถโ€ฒ, ๐ท

โ€“ This will be โ€œelimination of A,B,C from ๐œ“โ€.

Page 5: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Basic Ideas in VE

โ–ช We can directly compute:โ€“ ๐ดโ€ฒ,๐ตโ€ฒ,๐ถโ€ฒ๐œ™1(๐ด

โ€ฒ)๐œ™2(Bโ€ฒ,Aโ€ฒ)๐œ™3(Cโ€ฒ,Bโ€ฒ)๐œ™4 ๐ท, ๐ถโ€ฒ

โ€“ Will cost ๐‘‚(๐พ3)

โ–ช Or we can use the following observation:

๐ดโ€ฒ,๐ตโ€ฒ,๐ถโ€ฒ

๐œ™1(๐ดโ€ฒ)๐œ™2(Bโ€ฒ,Aโ€ฒ)๐œ™3(Cโ€ฒ,Bโ€ฒ)๐œ™4 ๐ท, ๐ถโ€ฒ

=

๐ถโ€ฒ

๐œ™4 ๐ท, ๐ถโ€ฒ

๐ตโ€ฒ

๐œ™3(Cโ€ฒ,Bโ€ฒ)

๐ดโ€ฒ

๐œ™2(Bโ€ฒ,Aโ€ฒ)๐œ™1(๐ดโ€ฒ)

Page 6: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Basic Ideas in VE

โ–ช We can do it in stages:

โ–ช Stage 1:โ€“ ๐‘‘๐‘’๐‘“๐‘–๐‘›๐‘’ ๐›ฟ0 ๐ด

โ€ฒ, ๐ตโ€ฒ = ๐œ™1 ๐ดโ€ฒ ๐œ™2(Bโ€ฒ,Aโ€ฒ)

โ€“ ๐ถ๐‘œ๐‘š๐‘๐‘ข๐‘ก๐‘’ ๐›ฟ1 ๐ตโ€ฒ = ๐ดโ€ฒ ๐›ฟ0 ๐ด

โ€ฒ, ๐ตโ€ฒ

โ–ช We have Left to compute:โ€“ ๐ตโ€ฒ,๐ถโ€ฒ ฮด 1(๐ตโ€ฒ)๐œ™3(Cโ€ฒ,Bโ€ฒ) ๐œ™4 ๐ท, ๐ถโ€ฒ

โ–ช Continue the same way.

โ–ช Complexity:โ€“ costs: ๐‘‚ 3๐พ2 = ๐‘‚(๐พ2)

Page 7: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Conclusion

โ–ช Computing inner expressions to outer, caching inner ones prevents recomputation! Exactly like in dynamic programming.

โ–ช โ€œPushing the sigmasโ€™ insideโ€ may help us compute the total function in stages.

Page 8: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Factor Marginalization

โ–ช ๐ท๐‘’๐‘“๐‘–๐‘›๐‘–๐‘ก๐‘–๐‘œ๐‘›: ๐œ™ ๐‘‹ ๐‘–๐‘  ๐‘Ž ๐‘“๐‘Ž๐‘๐‘ก๐‘œ๐‘Ÿ ๐‘–๐‘“๐‘“ ๐œ™ โˆˆ ๐‘‰๐‘Ž๐‘™ ๐‘‹ โ†’ โ„Wโ„Ž๐‘’๐‘Ÿ๐‘’ ๐‘‹ ๐‘–๐‘  ๐‘Ž ๐‘ ๐‘’๐‘ก ๐‘œ๐‘“ ๐‘Ÿ๐‘ฃโ€ฒ๐‘ , ๐‘‘๐‘’๐‘›๐‘œ๐‘ก๐‘’ ๐‘†๐‘๐‘œ๐‘๐‘’ ๐œ™ โ‰” ๐‘‹

โ–ช ๐ท๐‘’๐‘“๐‘–๐‘›๐‘–๐‘ก๐‘–๐‘œ๐‘›: Let ๐‘‹ be a set of rvโ€™s, ๐‘Œ โˆ‰ ๐‘‹ is a rv, and a factor ๐œ™(๐‘‹, ๐‘Œ).

Then โ€œThe factor marginalization of Y in ๐œ™โ€ or ๐‘Œ๐œ™ is:

๐‘Œ๐œ™ โ‰” ๐œ“ ๐‘‹ = ๐‘Œโ€ฒโˆˆ๐‘‰๐‘Ž๐‘™(๐‘Œ)๐œ™(๐‘‹, ๐‘Œโ€ฒ)

โ–ช Trivial properties:

โ€“ ๐‘‹ ๐‘Œ๐œ™ = ๐‘Œ ๐‘‹๐œ™

โ€“ ๐‘‹ โˆ‰ ๐‘†๐‘๐‘œ๐‘๐‘’ ๐œ™1 โ†’ ๐‘‹๐œ™1๐œ™2 = ๐œ™1 ๐‘‹๐œ™2

Page 9: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction
Page 10: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Algorithm Result

โ–ช Given set of factors ฮฆ and variables โ€œto eliminateโ€, ๐‘, the algorithm returns the factor (function):

๐‘

๐œ™โˆˆฮฆ

๐œ™

Page 11: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

3SAT Run Example On Board

Page 12: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Complexity Analysis

โ–ช Assume we have ๐‘› random variables and ๐‘š factors. We run the algorithm for total variable elimination.

โ–ช e.g: in Bayesian model with ๐‘› nodes the number of factors is ๐‘š = ๐‘›,Markov can have ๐‘š โ‰ฅ ๐‘›.

โ–ช ๐‘š + ๐‘› factors at most were in the set of factors.

โ–ช Denote the number of entries in ๐œ“๐‘– as ๐‘๐‘–.

โ–ช Each factor ๐œ™ is multiplied at most ๐‘๐‘– times when generating its corresponding ๐œ“๐‘–, and then replaced with new factor.

โ–ช Thus, max multiplication number: ๐‘‚( ๐‘› +๐‘š maxi(๐‘๐‘–))

Page 13: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Complexity Analysis

โ–ช Additions Complexity:

โ–ช each entry in ๐œ“๐‘– is added once to generate a new factor ๐œ๐‘–, there are at most ๐‘› factors ๐œ“๐‘– generated in the internal algorithm.

โ–ช Thus, addition complexity: ๐‘‚(๐‘›maxi(๐‘๐‘–))

โ–ช Total Complexity: ๐‘‚((๐‘š + ๐‘›)maxi(๐‘๐‘–))

Page 14: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Complexity Analysis

โ–ช If each factor ๐œ™๐‘– has ๐พ๐‘– variables, and we have no more than ๐‘ฃ values, ๐‘๐‘– โ‰ค ๐‘ฃ

๐‘˜๐‘–

โ–ช And when each variable has exactly ๐‘ฃ possible values, then ๐‘๐‘– = ๐‘ฃ

๐‘˜๐‘– .

Thus, we depend on all factors generated, exponentially in their variables number.

Page 15: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Variable Elimination For Conditional Proability

Page 16: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Algorithm Result

โ–ช Given a set of factors ฮฆ and query variables ๐‘Œ, E=e as evidence, the algorithm returns:

โ–ช ๐œ™โˆ— ๐‘Œ = ๐‘ ๐œ™โˆˆฮฆ๐œ™[๐ธ = ๐‘’]

โ–ช ๐›ผ = ๐‘,๐‘Œ ๐œ™โˆˆฮฆ๐œ™[๐ธ = ๐‘’]

Page 17: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Elimination as Graph Transformation

โ–ช ๐ท๐‘’๐‘“๐‘–๐‘›๐‘–๐‘ก๐‘–๐‘œ๐‘›: let ฮฆ be a set of factors, then define:

๐‘†๐‘๐‘œ๐‘๐‘’ ฮฆ โ‰”

๐œ™โˆˆฮฆ

๐‘†๐‘๐‘œ๐‘๐‘’ ๐œ™

โ–ช ๐ท๐‘’๐‘“๐‘–๐‘›๐‘–๐‘ก๐‘–๐‘œ๐‘›: Let ฮฆ be a set of factors, ๐ปฮฆ is the undirected graph over the nodes ๐‘†๐‘๐‘œ๐‘๐‘’(ฮฆ)where ๐‘‹๐‘– , Xj have an edge iff there is ๐œ™ such that ๐‘‹๐‘– , ๐‘‹๐‘— โˆˆ ๐‘†๐‘๐‘œ๐‘๐‘’ ๐œ™ .

Page 18: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Elimination as Graph Transformation

โ–ช For given set of factors in the algorithm ฮฆ, construct ๐ปฮฆ.

โ–ช Eliminate variables (nodes), remove edges from removed node, add fill edges.

Page 19: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

The Induced Graph

๐ท๐‘’๐‘“๐‘–๐‘›๐‘–๐‘ก๐‘–๐‘œ๐‘›: Let ๐›ท be a set of factors over ๐‘‹= {๐‘‹1, โ€ฆ๐‘‹๐‘›} and โ‰บ be elimination ordering over some ๐‘‹โ€ฒ โŠ† ๐‘‹ .

โ–ช The induced graph ๐ฟ๐›ท,โ‰บ nodes are ๐‘‹.

โ–ช ๐‘‹๐‘– and ๐‘‹๐‘— are connected by an edge if they both appear in some intermediate factor generated by the VE algorithm using โ‰บ as an elimination ordering.

Page 20: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

The Induced Graph And Maximal Cliques

๐‘‡โ„Ž๐‘’๐‘œ๐‘Ÿ๐‘’๐‘š: Let ๐ฟฮฆ,โ‰บ be the induced graph for a set of factorsฮฆ and some elimination ordering โ‰บ. Then:

1. The scope of every factor generated during the variable elimination process is a clique in ๐ฟฮฆ,โ‰บ.

2. Every maximal clique in ๐ฟฮฆ,โ‰บ is the scope of some intermediate factor in the computation.

Page 21: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

The Induced Graph And Maximal Cliques

โ–ช ๐‘ƒ๐‘Ÿ๐‘œ๐‘œ๐‘“:

1. Assume factor ๐œ“(๐‘‹1, . . , ๐‘‹๐‘˜) generated by our algorithm, by the construction of the induced graph, each ๐‘‹๐‘– , ๐‘‹๐‘— will have edge between them in the induced graph.

2. For a Maximal clique: Y = {๐‘Œ1, . . , ๐‘Œ๐‘˜}, assume wlogthat ๐‘Œ1 was the first eliminated by the algorithm:

โ€“ ๐‘Œ is a clique: so ๐‘Œ1 has edges to each other ๐‘Œ๐‘– (its now eliminated), therefore its removal adding all edges between the others. Therefore generating a factor between all of them.

โ€“ The factor generated contains only them, otherwise by (1) there is a larger clique contains ๐‘Œ in contradiction to ๐‘Œโ€ฒsmaximallity.

Page 22: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Conclusions

Elimination Ordering

the maximal factors

(generated by our algorithm )

Maximal Cliques in

the induced graph

Maximal Cliques in

the induced graph

Page 23: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Switching Lecturers

Page 24: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Elimination Ordering

โ–ช ๐ท๐‘’๐‘“๐‘–๐‘›๐‘–๐‘ก๐‘–๐‘œ๐‘›:width of the induced graph is the size of the largest clique minus one.

โ–ช ๐ท๐‘’๐‘“๐‘–๐‘›๐‘–๐‘ก๐‘–๐‘œ๐‘›: induced width by ordering ๐‘™ is the width of the induced graph after applying the VE algorithm with ๐‘™ as ordering.

โ–ช ๐‘๐‘ƒ โˆ’ ๐ถ๐‘œ๐‘š๐‘๐‘™๐‘’๐‘ก๐‘’ ๐‘ƒ๐‘Ÿ๐‘œ๐‘๐‘™๐‘’๐‘š:Given a graph H and some bound K, determine whether there exists an elimination ordering achieving an induced width K

Page 25: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Chordal Graphs

โ–ช ๐ท๐‘’๐‘“๐‘–๐‘›๐‘–๐‘ก๐‘–๐‘œ๐‘›: a Chordal graph is an undirected graph such that any minimal loop is of size 3 .

โ–ช ๐‘‡โ„Ž๐‘’๐‘œ๐‘Ÿ๐‘’๐‘š: Every induced graph is chordal.

โ–ช ๐‘ƒ๐‘Ÿ๐‘œ๐‘œ๐‘“: assume ๐‘‹1 โˆ’ ๐‘‹2 โˆ’โ‹ฏ๐‘‹๐‘˜ โˆ’ ๐‘‹1 is a cycle where k>3, then:โ€“ wlog assume ๐‘‹1 was first eliminated.

โ€“ Then, because no edge is added after ๐‘‹1 eliminated, both ๐‘‹1 โˆ’ ๐‘‹๐‘˜ and ๐‘‹1 โˆ’ ๐‘‹2 exists at this stage.

โ€“ Therefore, we will add the edge: ๐‘‹2 โˆ’ ๐‘‹๐‘˜ , thus ๐‘‹1 โˆ’ ๐‘‹2โˆ’ Xk is a minimal loop in contradiction that k>3.

Page 26: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Chordal Graphs

โ–ช ๐‘‡โ„Ž๐‘’๐‘œ๐‘Ÿ๐‘’๐‘š: Every Chordal graph ๐ป is the induced graph with some elimination ordering without adding new fill edges.

โ–ช ๐‘ƒ๐‘Ÿ๐‘œ๐‘œ๐‘“: using induction on the number of nodes in the tree. Let H be a chordal graph with n nodes.โ€“ From Chapter 4.12: โ€œEvery Chordal Graph have an Clique

Treeโ€.

โ€“ Take a leaf in the clique tree, choose one node which is only in that clique (property about clique trees we wonโ€™t prove), Eliminate it.

โ€“ Its neighbors are only from the clique, therefore no new edges introduced.

โ€“ Remaining graph is also chordal, with n-1 nodes, continue the same.

Page 27: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Elimination Ordering Heuristic 1

Page 28: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Elimination Ordering Heuristic 1

โ–ช ๐‘‡โ„Ž๐‘’๐‘œ๐‘Ÿ๐‘’๐‘š: Let H be a chordal graph. Let ๐œ‹ be the ranking obtained by running Max-Cardinality on H. Then Sum-Product-VE eliminating variables in order of increasing ๐œ‹, does not introduce any fill edges.

โ–ช Proof Intuition: Look at the Clique-Tree for that chordal graph, once weโ€™ve selected node from any clique, we will choose first the separators before choosing the nodes in the clique connected to it. This will ensure that in the ordering obtained, for each node, we only should have add edges from it to its neighbors.

Page 29: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Elimination Ordering Heuristic 1

โ–ช ๐บ๐‘œ๐‘Ž๐‘™:make any H given graph model into a chordal graph with a minimum width.

โ–ช Itโ€™s also NP-Hard problem

Page 30: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Elimination Ordering Heuristic 2

โ–ช Greedy algorithm with heuristic cost function:

Page 31: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Heuristic cost function examples

โ€ข Min-neighbors: The cost of a vertex is the number of neighbors it has in the current graph.

โ€ข Min-weight: The cost of a vertex is the product of weights โ€” domain cardinality โ€” of its neighbors.

โ€ข Min-fill: The cost of a vertex is the number of edges that need to be added to the graph due to its elimination.

โ€ข Weighted-min-fill: The cost of a vertex is the sum of weights of the edges that need to be added to the graph due to its elimination, where a weight of an edge is the product of weights of its constituent vertices.

Page 32: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Heuristics testing results

โ€œOverall, Min-Fill and Weighted-Min-Fill achieve the best performance, but they are not universally better. The best answer obtained by the greedy algorithms is generally very good; it is often significantly better than the answer obtained by a deterministic state-of-the-art scheme, and it is usually quite close to the best-known ordering, even when the latter is obtained using much more expensive techniques. Because the computational cost of the heuristic ordering-selection algorithms is usually negligible relative to the running time of the inference itself, we conclude that for large networks it is worthwhile to run several heuristic algorithms in order to find the best ordering obtained by any of them.

Page 33: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Remainder: Clique Tree Definition

Page 34: Variable Elimination (VE) - TAUhaimk/pgm-seminar/part_2_barak.pdfย ยท The Induced Graph And Maximal Cliques K K : 1. Assume factor ๐œ“( 1,.., )generated by our algorithm, by the construction

Remainder: Clique Tree Definition