Abstraction Sampling in Graphical Models
Filjor Broka*, Rina Dechter, Alexander Ihler, and Kalev Kask UCI
*In memory of Filjor (1985-2018)
Abstraction Sampling in Graphical Models Filjor Broka*, Rina - - PowerPoint PPT Presentation
Abstraction Sampling in Graphical Models Filjor Broka*, Rina Dechter, Alexander Ihler, and Kalev Kask UCI *In memory of Filjor (1985-2018) Outline Background: Graphical models, search, sampling Motivation and the main idea
*In memory of Filjor (1985-2018)
❑ Background: Graphical models, search, sampling ❑ Motivation and the main idea ❑ Abstraction sampling algorithm – OR ❑ The AND/OR case, properness ❑ Properties ❑ Experiments ❑ Conclusion and Future Directions
2
4
Deep Boltzmann Machines
PCWP CO HRBP HREKG HRSAT ERRCAUTER HR HISTORY CATECHOL SAO2 EXPCO2 ARTCO2 VENTALV VENTLUNG VENITUBE DISCONNECT MINVOLSET VENTMACH KINKEDTUBE INTUBATION PULMEMBOLUS PAP SHUNT ANAPHYLAXIS MINOVL PVSAT FIO2 PRESS INSUFFANESTH TPR LVFAILURE ERRBLOWOUTPUT STROEVOLUME LVEDVOLUME HYPOVOLEMIA CVP BP
Bayesian Networks
Cancer(A) Smokes(A) Friends(A,A) Friends(B,A) Smokes(B) Friends(A,B) Cancer(B) Friends(B,B)
Markov Logic
5
Example: The combination operator defines an overall function from the factors, e.g., “x” : A graphical model consists of:
and a combination operator
(w e’ll assume discrete)
Inference: compute quantities of interest about the distribution, e.g.,
(partition function) (marginals)
A graphical model consists of:
and a combination operator
Primal graph
A B f(A,B) 2 1 4 1 3 1 1 1
Full OR search tree 126 nodes
1 1 1 1 1 1 1 1 1 1 1 1 01 01 0 1 0 101 01 0 1 0 1 0 1 0 1 01 010 1 0 1 01 01 0 1 0 1 01 010 1 0 1 01 01 01 01 01 0101 01 01 01 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
C D F E B A
1
Full AND/OR search tree 54 AND nodes
A
OR AND
B
OR AND OR
E
OR
F F
AND
0 1 0 1
AND
1 C D D 0 1 0 1 1 1 E F F 0 1 0 1 1 C D D 0 1 0 1 1 1 B E F F 0 1 0 1 1 C D D 0 1 0 1 1 1 E F F 0 1 0 1 1 C D D 0 1 0 1 1
Context minimal OR search graph 28 nodes
1 1 1 1 1 1 1 1 1 1 1 1 1
C D F E B A
1
Context minimal AND/OR search graph 18 AND nodes
A
OR AND
B
OR AND OR
E
OR
F F
AND
0 1
AND
1 C D D 0 1 1 1 E C D D 1 1 B E F F 1 C 1 E C
A E C B F D
6
Any query can be computed
A D B E C F
pseudo tree
◼ Search
Enumerate states; no stone unturned, none more than once.
◼ Sampling
Exploit randomization “typicality”; concentration inequalities
9
Structured enumeration over all possible states
1 1 1 1 1 1 1 1 1 1 1 1 01010101 010 1010101010101010101010101010101010101010101010 1010101 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1
E C F D B A
1
Use randomization to estimate averages over the state space
11 1 1 1 1 1 1 1 2 5 3 6 3 4 2 4 5 7 6 1 1 1
B A C
1 1 1 5 3 4 6 1 1 1 1 6 1 1 2 1 1 1 1 1 2 4 5 7 6 1 1 1 2 6 1 1 1 5 4 1 1 1 4 1
B A C
w1 w2 w3 S1 S2
1 1 1 1 1 5 3 4 5 7 6 1 1 1
Z estimate Z estimate Z estimate Importance sampling 2-config-subtree sampling 4-config-subtree sampling … …
More searching less sampling S2 S1
14
Sampled subtree 1 Sampled subtree 2
16
A = 0 A = 1 A = 0 B = 0 C = 1 A = 0 B = 0 C = 0 A = 0 B = 1 C = 1 A = 1 B = 1 C = 1 A = 1 B = 0 C = 0 A = 0 B = 1 C = 0 A = 1 B = 0 C = 1 A = 1 B = 1 C = 0 A = 0 B = 0 A = 0 B = 1 A = 1 B = 0 A = 1 B = 1 0.6 0.4 0.3 0.7 0.1 0.9 0.2 0.8 0.2 0.8 0.4 0.6 0.4 0.6 Z(A=0,B=1,C=1) = 0.6*0.7*0.8
A = 0 A = 1 A = 0 B = 1 C = 1 A = 1 B = 0 C = 0 A = 0 B = 1 C = 0 A = 1 B = 0 C = 1 A = 0 B = 0 A = 0 B = 1 A = 1 B = 0 A = 1 B = 1 0.6 0.4 0.3 0.7 0.1 0.9 0.2 0.8 0.4 0.6 w = 1 w = 1 w = 1 w = 1 w = 2 w = 2 w = 2 w = 4 w = 2 w = 4
Zest = 4*(0.6*0.7*0.8) + 4*(0.4*0.1*0.6) =1.44 p = 1/2 p = 2/4 w = 1 w = 1 w = 2 w = 2
B
OR AND
1 A
OR
C A C
OR AND
D 0 1
AND
1 1 1 1 D 1 D 0 1 D 0 1
Full AND/OR Search Tree
Sampled AND/OR Search Tree
B
OR AND
1 A
OR
C
OR AND AND
1 1 D D 1
Not a subset of solution trees Estimate 𝒂 is biased 16 Solution trees
25 D B C A
Not a proper abstraction
B
OR AND
1 A
OR
C A C
OR AND
D 1
AND
1 1 1 1 D D 0 1
a proper abstraction
❑ Our scheme is like any IS-based scheme where any
❑ In our experiments we use a proposal
B A C
<𝒕, 𝒙 𝒕 > 1 1 5 3 4 15 20 1
g(s)
𝒒 ∝ 𝒙(𝒕) ∙ 𝒉(𝒕) ∙ 𝒊(𝒕)
𝒊 𝒕 ≥ 𝒂(𝒕)
29
32
◼ context(X) = ancestors of X in
◼ Context-based (CB) Abstractions:
assignments to context Relaxed: most recent subset of context
variables
Randomized : random subset of context
variables
A E C B F D A E C B F D
[ ]
[A]
[AB]
[AE]
[BC] [AB]
A D B E C F 35
36
38
39
41
❑ Explore choice of abstraction in order to reduce
❑ Portion of search space sampled in a probe vs.
❑ Accuracy of sampling probability (heuristic) vs.
❑ Sampling in OR space vs. AND/OR space ❑ Sampling search trees vs. search graphs
43
44