Exercises

ch17-ex01

Easy

Draw the factor graph of the joint distribution p(x1,x2,x3,x4)=fA(x1)fB(x1,x2)fC(x2,x3)fD(x3,x4)p(x_1, x_2, x_3, x_4) = f_A(x_1) f_B(x_1, x_2) f_C(x_2, x_3) f_D(x_3, x_4). Is it a tree?

ch17-ex02

Easy

The joint distribution p(x1,x2,x3)=f(x1,x2,x3)p(x_1, x_2, x_3) = f(x_1, x_2, x_3) (a single factor touching all three variables) has what factor graph structure?

ch17-ex03

Medium

Consider a Markov chain x1β†’x2β†’x3β†’x4x_1 \to x_2 \to x_3 \to x_4 with binary states and all transition probabilities equal to p(xt+1=xt∣xt)=0.9p(x_{t+1} = x_t | x_t) = 0.9. Run sum-product message passing to compute p(x2∣x1=0,x4=1)p(x_2 | x_1 = 0, x_4 = 1). Initial distribution p(x1)=1p(x_1) = 1 at state 0 (clamped).

ch17-ex04

Medium

Show that a 2D grid factor graph (kΓ—kk \times k variables with pairwise neighbor factors) has tree-width at least kk. Why does this make exact inference intractable?

ch17-ex05

Medium

For the Tanner graph in Example ch17-ex-ldpc-tanner, check for 4-cycles. A 4-cycle in a Tanner graph is a pair of variable nodes sharing two common check nodes. Identify any.

ch17-ex06

Medium

Draw the factor graph of the ISI channel yt=xt+0.5xtβˆ’1+wty_t = x_t + 0.5 x_{t-1} + w_t, t=1,…,4t = 1, \ldots, 4, with clamped observations. Compute the tree-width.

ch17-ex07

Hard

Prove that the sum-product algorithm on a tree computes the exact marginal p(xi)=∏aβˆˆβˆ‚iΞΌaβ†’i(xi)p(x_i) = \prod_{a \in \partial i} \mu_{a \to i}(x_i) up to normalization.

ch17-ex08

Easy

A factor graph has 12 variable nodes, 8 factor nodes, and 24 edges. Is it a tree? If not, how many independent cycles does it have?

ch17-ex09

Medium

Convert the Bayesian network p(a,b,c,d)=p(a)p(b∣a)p(c∣a)p(d∣b,c)p(a, b, c, d) = p(a) p(b|a) p(c|a) p(d|b, c) to a factor graph.

ch17-ex10

Medium

Show that loopy BP on a tree is equivalent to one forward pass plus one backward pass β€” iterating further does nothing.

ch17-ex11

Medium

Argue why loopy BP on a graph with girth gg is equivalent to exact inference on a tree for the first g/2g/2 iterations.

ch17-ex12

Hard

For a (dv,dc)(d_v, d_c)-regular Tanner graph with girth β‰₯2t\geq 2t, prove that the depth-tt neighborhood of any variable node is a tree with dv(dcβˆ’1)tβˆ’1d_v (d_c - 1)^{t-1} variable nodes at depth tt.

ch17-ex13

Medium

Give an example of a factor graph where loopy BP has multiple fixed points. What does this imply about convergence behavior?

ch17-ex14

Easy

The Bethe free energy FBethe\mathcal{F}_{\text{Bethe}} equals the exact Gibbs free energy Fexact\mathcal{F}_{\text{exact}} on which class of factor graphs?

ch17-ex15

Hard

A code with parity-check matrix has 4 variable nodes and 2 check nodes, each check of degree 3 (so H\mathbf{H} is 2Γ—42 \times 4 with three 1s per row). What is the maximum possible girth? Construct an H\mathbf{H} achieving it.

ch17-ex16

Medium

Convert the posterior of the Kalman filter problem xt+1=Axt+vt,yt=Cxt+wtx_{t+1} = A x_t + v_t, y_t = C x_t + w_t to a factor graph, and identify the message-passing cost per time step.

ch17-ex17

Medium

What is the relation between a factor graph with only pairwise factors and a Markov random field?

ch17-ex18

Hard

Show that flooding loopy BP and serial loopy BP have the same fixed points, but may have different convergence rates and stability.

ch17-ex19

Easy

Name three problem domains where factor graphs are the standard framework for inference.

ch17-ex20

Challenge

Consider a cluster graph obtained by grouping variables in a factor graph into overlapping clusters. Explain how generalized belief propagation (Yedidia et al.) uses a region graph to improve over loopy BP.