Edge pushing is equivalent to vertex elimination for computing Hessians
Edge pushing is equivalent to vertex elimination for computing Hessians
复制标题
推边相当于计算 Hessians 的顶点消除
DOI:
10.1137/1.9781611974690.ch11
复制
发表时间:
2016
期刊:
影响因子:
--
通讯作者:
Mu Wang, Alex Pothen
中科院分区:
文献类型:
--
作者:
Mu Wang, Alex Pothen
We prove the equivalence of two different Hessian evaluation algorithms in AD. The first is the Edge Pushing algorithm of Gower and Mello, which may be viewed as a second order Reverse mode algorithm for computing the Hessian. In earlier work, we have derived the Edge Pushing algorithm by exploiting a Reverse mode invariant based on the concept of live variables in compiler theory. The second algorithm is based on eliminating vertices in a computational graph of the gradient, in which intermediate variables are successively eliminated from the graph, and the weights of the edges are updated suitably. We prove that if the vertices are eliminated in a reverse topological order while preserving symmetry in the computational graph of the gradient, then the Vertex Elimination algorithm and the Edge Pushing algorithm perform identical computations. In this sense, the two algorithms are equivalent. This insight that unifies two seemingly disparate approaches to Hessian computations could lead to improved algorithms and implementations for computing Hessians.