SLIDE 44 Equivalence
◮ Vertex elimination on the gradient graph Gg gives the Hessian
(combinatorial approach).
◮ Second order reverse mode gives the Hessian (analytical approach).
Second order reverse mode:
◮
Initialize : ¯ vl = 1.0, ¯ vl−1 = · · · = 0
◮
for k = l, l − 1, · · · , 1 for each unordered pair (vi , vj ) hk (vi , vj ) = hk+1(vi , vj ) + ∂vk
∂vi hk+1(vj , vk ) + ∂vk ∂vj hk+1(vi , vk )
+ ∂vk
∂vi ∂vk ∂vj hk+1(vk , vk ) + ∂2vk ∂vi ∂vj ¯
vk
Vertex Elimination on Gg
◮
Pick intermediate node vj
◮
For all (i, k), s.t, i ≺ j ≺ k do c(i, k)+ = c(i, j) ∗ c(j, k)
◮
Remove vj from V
◮
Repeat until V has no intermediate vertices
Theorem
If vertex elimination is performed on Gg in a symmetric reverse topological ordering, i.e, (vk, ¯ vk) are eliminated in pairs, in the order k = l, l − 1, · · · , 1, then the two algorithms correspond step-by-step.
Wang et.al (Purdue University) Second Order Reverse AD October 10, 2016 14 / 21