English

Efficient Higher Order Derivatives of Objective Functions Composed of Matrix Operations

Data Structures and Algorithms 2016-09-08 v1 Symbolic Computation

Abstract

This paper is concerned with the efficient evaluation of higher-order derivatives of functions ff that are composed of matrix operations. I.e., we want to compute the DD-th derivative tensor Df(X)RND\nabla^D f(X) \in \mathbb R^{N^D}, where f:RNRf:\mathbb R^{N} \to \mathbb R is given as an algorithm that consists of many matrix operations. We propose a method that is a combination of two well-known techniques from Algorithmic Differentiation (AD): univariate Taylor propagation on scalars (UTPS) and first-order forward and reverse on matrices. The combination leads to a technique that we would like to call univariate Taylor propagation on matrices (UTPM). The method inherits many desirable properties: It is easy to implement, it is very efficient and it returns not only Df\nabla^D f but yields in the process also the derivatives df\nabla^d f for dDd \leq D. As performance test we compute the gradient f(X)\nabla f(X) % and the Hessian A2f(A)\nabla_A^2 f(A) by a combination of forward and reverse mode of f(X)=\trace(X1)f(X) = \trace (X^{-1}) in the reverse mode of AD for XRn×nX \in \mathbb R^{n \times n}. We observe a speedup of about 100 compared to UTPS. Due to the nature of the method, the memory footprint is also small and therefore can be used to differentiate functions that are not accessible by standard methods due to limited physical memory.

Keywords

Cite

@article{arxiv.0911.4940,
  title  = {Efficient Higher Order Derivatives of Objective Functions Composed of Matrix Operations},
  author = {Sebastian F. Walter},
  journal= {arXiv preprint arXiv:0911.4940},
  year   = {2016}
}