



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Rice University STAT 631 / ELEC 639: Graphical Models
Instructor: Dr. Volkan Cevher
Scribe: David Kahle Reviewers: Konstantinos Tsianos and Tahira Saleem
These lecture notes are the seventh in a series of lecture notes taken from a course offered in the Fall of 2008 at Rice University entitled Graphical Models. The course was written and instructed by Dr. Volkan Cevher in the Department of Electrical and Computer Engineering. This particular set of notes was taken by David Kahle on September 16, 2008.
In the last lecture we became particularly interested in making inference on the graph displayed in Figure 1. Here Z ∈ Rm^ and X ∈ Rn^ are random vectors. For the purposes of this lecture, all
Figure 1. Simple observed directed graph
random vectors will be assumed to exhibit densities with respect to the Lebesgue measure denoted p and subscripted by the corresponding random vector. For example, the random vector Z exhibits the density pZ (z). The joint density of the random vectors X and Z is written pX,Z (x, z).
The graphical model presented above is simple in order to emphasize the fact that we wish to make inference regarding the vector Z provided we have information on the vector X. To that end, recall the crucial formula derived from the definition of conditional expectation
pX,Z (x, z) = pZ|X (z|x)pX (x), (1)
which is sometimes referred to as the product rule. As we well know, our primary interest lies in the factor pZ|X (z|x). The rest of this lecture is concerned with characterizing this density using the method of variational Bayes (VB) approximation. This is the second example of a deterministic scheme in approximating the conditional density for inferential procedures (the first being Laplace approximation). 1
In this section we derive a pseudo distance metric of probability distributions known as the Kullback- Leibler divergence. The idea is that without some kind of measure of difference between probability measures, we have no benchmark for comparing the accuracy of different approximations. Our result will be the Kullback-Leibler divergence; it will soon become clear why it is called divergence instead of distance.
The divergence is derived as follows. Beginning with (1) and taking logs, we obtain
log pX,Z (x, z) = log pZ|X (z|x) + log pX (x) (2)
which rearranges to log pX (x) = log pX,Z (x, z) − log pZ|X (z|x). (3)
Now, recall the property of logs which states log a − log b = log ac − log bc (provided everything is defined appropriately). Appealing to this fact, we introduce another density, qZ (z), which is an arbitrary probability density (also with respect to the Lebesgue measure). Then (3) grants
log pX (x) = log pX,Z (x, z) qZ (z)
− log
pZ|X (z|x) qZ (z)
and multiplying both sides by qZ (z) we obtain
qZ (z) log pX (x) = qZ (z) log
pX,Z (x, z) qZ (z)
− qZ (z) log
pZ|X (z|x) qZ (z)
By integrating with respect to z, we have ∫
Rm
qZ (z) log pX (x) dz =
Rm
qZ (z) log
pX,Z (x, z) qZ (z)
dz −
Rm
qZ (z) log
pZ|X (z|x) qZ (z)
dz. (6)
This is the key equation for our search. To summarize it we note that the left hand side of (6) is simply log pX (x) and use short hand notation for the two terms on the right hand side (with the second including the negative sign). The short hand notation is defined as
L (qZ ) :=
Rm
qZ (z) log
pX,Z (x, z) qZ (z) dz
= EqZ
log pX,Z (X, Z) qZ (Z)
qZ ||pZ|X
Rm
qZ (z) log
pZ|X (z|x) qZ (z)
dz
Rm
qZ (z) log qZ (z) pZ|X (z|x)
dz
= EqZ
log
qZ (Z) pZ|X (Z|X)
where EΠ represents the expected value operator with respect to the probability measure (or equiv- alent) Π. Thus, the fundamental relationship is concisely written
log pX (x) = L (qZ ) + KL
qZ ||pZ|X
log evidence. Since it does not vary with qZ , it is clear that the functionals L and KL are inversely related. Therefore, a minimization of KL amounts to a maximization of L, i.e.,
q∗ Z := arg min qZ ∈Q
qZ ||pZ|X
= arg max qZ ∈Q L (qZ ) , (8)
where q Z∗ is our approximation of interest and Q denotes any set of valid probability densities. We will refer to q Z∗ as the Q-VB approximation. It is also sometimes useful to note that by the first property of KL, log pX (x) ≥ L (qZ ), and thus eL(qZ^ )^ provides a lower bound for the marginal density of X.
Finding q∗ Z when Q is any probability density is in general a difficult task. To make our analysis more tractable we can impose an independence structure on the random vector Z; that is, we will only consider qZ ’s which come from the set
qZ (z) : qZ (z) =
∏^ m
i=
qZi (zi)
where qZi (zi) is the probability density of Zi, the ith element of Z. Sometimes even this task proves difficult and more restrictions are imposed to make Q even smaller. Such techniques are referred to as restricted variational Bayes (R-VB) techniques. For example, we could add the additional requirement that each qZi (zi) is in the exponential family. For the rest of these notes, we will take Q∗^ as defined in (9) for our Q in (8).
To find (8), we begin by looking at L (qZ ). In particular, it will be beneficial to look at the jth factor qZj. For this reason, our mathematics is aimed at separating out the factors which depend on qZj. Presented in the equations which follow is the derivation in terms of expectations. An equivalent form of the first part of the derivation in terms of integrals is provided in the Appendix.
So, from (9) and Fubini’s theorem 3 we have
L (qZ ) = EqZ
log
pX,Z (X, Z) qZ (Z)
= EqZ [log pX,Z (X, Z) − log qZ (Z)]
= EqZ
log pX,Z (X, Z) − log
∏^ m
k=
qZk (Zk)
= EqZ [log pX,Z (X, Z)] −
∑^ m
k=
EqZ [log qZk (Zk)]
= EqZj
EQmi= i 6 =j qZi [log^ pX,Z^ (X,^ Z)]
∑^ m
k=
EqZk [log qZk (Zk)]
= EqZj
EQmi= i 6 =j qZi [log^ pX,Z (X,^ Z)]
− EqZj
log qZj (Zj )
∑^ m
k k=1 6 =j
EqZk [log qZk (Zk)]
= EqZj
log
exp
EQmi= i 6 =j qZi [log^ pX,Z (X,^ Z)]
− EqZj
log qZj (Zj )
∑^ m
k k=1 6 =j
EqZk [log qZk (Zk)]
= EqZj
log
exp
EQmi= i 6 =j qZi [log^ pX,Z^ (X,^ Z)]
− log qZj (Zj )
∑^ m
k k=1 6 =j
EqZk [log qZk (Zk)]
= EqZj
log
exp
EQmi= i 6 =j
qZi [log^ pX,Z (X,^ Z)]
qZj (Zj )
∑^ m
k k=1 6 =j
EqZk [log qZk (Zk)]
= −EqZj
log^
qZj (Zj )
exp
EQmi= i 6 =j qZi [log^ pX,Z (X,^ Z)]
∑^ m
k k=1 6 =j
EqZk [log qZk (Zk)]
qZj || exp
EQmi= i 6 =j qZi [log^ pX,Z (X,^ Z)]
∑^ m
k k=1 6 =j
EqZk [log qZk (Zk)].
Now, we know from KL’s first property that it is never negative. Thus, to maximize L (qZ ) we need to minimize the KL term in the last equation. From KL’s second property, we know that it is minimized precisely when the two terms are equivalent a.e. This gives the nice formula we know must hold for the probability density q Z∗j - the jth factor of q∗ Z -
q∗ Zj (zj ) ∝ exp
EQmi= i 6 =j qZi [log^ pX,Z^ (X,^ Z)]
where here Z = [Z 1 ,... , Zj− 1 , zj , Zj+1,... , Zm]′.
(^3) The theorem states that if R A×B |f^ (x, y)|d(x, y)^ <^ ∞^ then^
R A
`R B f^ (x, y)dy
´ dx =
R B
`R A f^ (x, y)dx
´ R dy^ = A×B f^ (x, y)d(x, y).
The same analysis together with more sophisticated examples can be found in chapter 10 of [?]. It important to notice that we can use the above derived formulas to iterative compute more refined estimates of the model parameters. Observe that the paramters of qμ(μ) depend on the mean value of τ and vice verca. To conlude this section we refer to the reader to two excellent references on variational methods [?, ?].
L (qZ ) =
Rm
qZ (z) log pX,Z (x, z) qZ (z)
dz
R
R
∏^ m
i=
qZi (zi) log
pX,Z (x, z) ∏m k=1 qZk (zk)^
dz 1 · · · dzm
R
R
∏^ m
i=
qZi (zi)
log pX,Z (x, z) −
∑^ m
k=
log qZk (zk)
dz 1 · · · dzm
R
R
∏^ m
i=
qZi (zi) log pX,Z (x, z) dz 1 · · · dzm
R
R
∏^ m
i=
qZi (zi)
∑^ m
k=
log qZk (zk) dz 1 · · · dzm
R
qZj (zj )
Rm−^1
∏^ m
i i=1 6 =j
qZi (zi) log pX,Z (x, z) dz\j dzj
∑^ m
k=
R
R
log qZk (zk)
∏^ m
i=
qZi (zi) dz 1 · · · dzm
R
qZj (zj )
Rm−^1
∏^ m
i i=1 6 =j
qZi (zi) log pX,Z (x, z) dz\j dzj
∑^ m
k=
R
log qZk (zk)qZk (zk) dzk
R
qZj (zj )
Rm−^1
∏^ m
i i=1 6 =j
qZi (zi) log pX,Z (x, z) dz\j dzj
R
log qZj (zj )qZj (zj ) dzj −
∑^ m
k k=1 6 =j
R
log qZk (zk)qZk (zk) dzk
References