Efficient Calculation of Jacobians Using Dynamic Programming
Résumé
The chain rule - fundamental for Automatic Differentiation (AD) - can be applied to computational graphs representing vector functions in arbitrary orders resulting in different operations counts for the calculation of their Jacobian matrices. Very few authors have looked at this interesting subject so far and there is no generally accepted terminology for dealing with these combinations of the forward and reverse modes of AD. The minimizati- on of the number of arithmetic operations required for the calculation of the complete Jacobian leads to a computationally hard combinatorial optimization problem. In this paper we will describe an approach to the solution of the edge elimination problem in computational graphs that builds on the idea of optimizing chained matrix products using dynamic programming techniques. We will discuss the theory and present some test results by regarding this approach in comparison with other methods for computing Jacobians using a minimal number of arithmetic operations.
Domaines
Autre [cs.OH]
Loading...