Presentation is loading. Please wait.

Presentation is loading. Please wait.

Variable and Value Ordering for MPE Search Sajjad Siddiqi and Jinbo Huang.

Similar presentations


Presentation on theme: "Variable and Value Ordering for MPE Search Sajjad Siddiqi and Jinbo Huang."— Presentation transcript:

1 Variable and Value Ordering for MPE Search Sajjad Siddiqi and Jinbo Huang

2 Most Probable Explanation (MPE) N : Bayesian network X : {X,Y,Z} e : {X=x} Y XZ XYZPr(X,Y,Z) xyz0.05 xyz0.3 xyz0.05 xyz0.1 xyz xyz0.2 xyz0.1 xyz

3 Most Probable Explanation (MPE) N : Bayesian network X : {X,Y,Z} e : {X=x} Y XZ XYZPr(X,Y,Z) xyz0.05 xyz0.3 xyz0.05 xyz0.1 xyz xyz0.2 xyz0.1 xyz max

4 Exact MPE by Inference Variable Elimination – Bucket Elimination Exponential in the treewidth of the elimination order. Compilation – Decomposable Negation Normal Form (DNNF) Exploits local structure so treewidth is not necessarily the limiting factor. Both methods can either run out of time or memory

5 Exact MPE by Searching X Y ZZ 0.10.20.10.1 x y y zzzz

6 Depth-First Search – Exponential in the number of variables X. Depth-First Branch-and-Bound Search – Computes an upper bound on any extension to the current assignment. – Backtracks when upper bound >= current solution. – Reduces complexity of search.

7 Exact MPE by B-n-B Search X Y ZZ 0.10.20.10.1 x y y zzzz if upper bound <= 0.2 current solution = 0.2

8 Computing Bounds: Mini- Buckets Ignores certain dependencies amongst variables: – New network is easier to solve. – Solution grows only in one direction. Splits a bucket into two or more mini- buckets. – Focuses on generating tighter bounds. Mini-buckets is a special case of node splitting.

9 Node Splitting Y1Y2 ^^ and are clones of Y: fully split (N) Y XZ Q R ^ Y XZ Q1Q1Q1Q1 R Y1Y1Y1Y1 Y2Y2Y2Y2 ^ (N`) split variables = {Q,Y} Q Q2Q2Q2Q2 ^^ splitting

10 Node Splitting e: an instantiation of variables X in N. e: a compatible assignment to their clones in N´ e.g. if e = {Y=y}, then e = {Y 1 =y, Y 2 =y} then MPE p (N, e) <=  MPE p (N´, e, e)  = total number of instantiations of clone variables    ^ ^

11 Computing Bounds: Node Splitting (Choi et. Al 2007). Split network is easier to solve, its MPE computes the bound. Search performed only over the ‘split variables’ instead of all. Focuses on good network relaxations trying to reduce the number of splits.

12 B-n-B Search for MPE Y QQ yy q MPE(N`,{X=x})  MPE(N`,{X=x, Y=y, Y 1 =y, Y 2 =y})  MPE(N`,{X=x, Y=y, Y 1 =y, Y 2 =y,Q=q, Q 1 =q, Q 2 =q})  = 4, for two split variables with binary domain bound exact solution ^^ ^^ ^ ^^^ bound bound

13 B-n-B Search for MPE Leaves of the search tree give candidate MPE solutions. Elsewhere we get upper bounds to prune the search. A branch gets pruned if bound <= current solution.

14 Choice of Variables to Split Reduce the number of split variables. – Heuristic based on the reduction in the size of jointree cliques and separators. Split enough variables to reduce the treewidth to a certain threshold (when the network is easy to solve).

15 Variable and Value Ordering Reduce search space using an efficient variable and value ordering. (Choi et al. 2007) do not address this and use a neutral heuristic. Several heuristics are analyzed and their powers combined to produce an effective heuristic. Scales up the technique.

16 Entropy-based Ordering Y QQ yy Pr(Y=y), Pr(Y=y) Pr(Q=q), Pr(Q=q) entropy(Y), entropy(Q) Computation Do the same for clones and get average probabilities: Pr (Y=y) = [Pr(Y=y)+Pr(Y 1 =y)+Pr(Y 2 =y)]/3 ^^

17 Entropy-based Ordering Y QQ yy Favor those instantiations that are more likely to be MPEs. Computation Prefer Y over Q if entropy(Y) < entropy(Q). Prefer Y=y over Y=y if Pr(Y=y) > Pr(Y=y) Static and Dynamic versions.

18 Entropy-based Ordering Probabilities computed using DNNF: – Evaluation and Differentiation of AC Experiments: – Static heuristic, significantly faster than the neutral. – Dynamic heuristic, generally too expensive to compute and slower.

19 Nogood Learning g = {X=x, Y=y, Z=z} is a nogood if MPE p (N’, g, g) <= current solution  X Y Z current solution=1.0 bound=1.5 bound=1.3 bound=1.2 bound=0.5 y x z let g’ = g \ {Y=y} & MPEp (N’, g’, g’) <= current solution then g = g’ 

20 Nogood-based Ordering Scores: S(X=x) = number of occurrences in nogoods S(X) = [S(X=x) + S(X=x)]/2 (binary variables) Dynamic Ordering: Prefer higher scores. Impractical: overhead of repeated bound computation during learning.

21 Score-based Ordering A more effective approach based on nogoods. Scores of variables/values tell how can a nogood be obtained quickly (backtrack early). X Y Z bound=1.5 bound=1.3 bound=1.2 bound=0.5 y x z S(X=x) += 1.5-1.3=0.2 S(Y=y) += 1.3-1.2=0.1 S(Z=z) += 1.2-0.5=0.7

22 Improved Heuristic Periodically reinitialize scores (focus on recent past). Use static entropy-based order as the initial order of variables/values.

23 Experimental Setup Intel Core Duo 2.4 GHz + AMD Athlon 64 X2 Dual Core Processor 4600+, both with 4 GB of RAM running Linux. A memory limit of 1 GB on each MPE query. C2D DNNF compiler [Darwiche, 2004; 2005]. Trivial seed of 0 as the initial MPE solution to start the search. Keep splitting the network variables until treewidth <= 10.

24 Comparing search spaces on grid networks

25 Comparing search time on grid networks

26 Comparing nogood learning and score-based DVO on grid networks

27 Results on grid networks, 25 queries per network

28 Random networks 20 queries per network

29 Networks for genetic linkage analysis, which are some of the hardest networks Only SC-DVO succeeded

30 Comparison with SamIam on grid networks

31 Comparison with (Marinescu & Dechter, 2007) on grid networks (SMBBF – Static mini-bucket best first) Parameter ‘ i=20 ’, where ‘ i ’ controls the size of the mini-bucket We tried a few cases from random and genetic linkage analysis networks which SMBBF could not solve (4 random networks of sizes 100, 110, 120, and 130 and pedigree13 from the genetic linkage analysis network).

32 Conclusion Novel and efficient heuristic for dynamic variable ordering for computing the MPE in Bayesian networks. A significant improvement in time and space over less sophisticated heuristics and other MPE tools. Many hard network instances solved for the first time.


Download ppt "Variable and Value Ordering for MPE Search Sajjad Siddiqi and Jinbo Huang."

Similar presentations


Ads by Google