Optimization of Generalized Jacobian Chain Products without Memory Constraints

03/12/2020
by   Uwe Naumann, et al.
0

The efficient computation of Jacobians represents a fundamental challenge in computational science and engineering. Large-scale modular numerical simulation programs can be regarded as sequences of evaluations of in our case differentiable modules with corresponding local Jacobians. The latter are typically not available. Tangent and adjoint versions of the individual modules are assumed to be given as results of algorithmic differentiation instead. The classical (Jacobian) matrix chain product formulation is extended with the optional evaluation of matrix-free Jacobian-matrix and matrix-Jacobian products as tangents and adjoints. We propose a dynamic programming algorithm for the minimization of the computational cost of such generalized Jacobian chain products without considering constraints on the available persistent system memory. In other words, the naive evaluation of an adjoint of the entire simulation program is assumed to be a feasible option. No checkpointing is required. Under the given assumptions we obtain optimal solutions which improve the best state of the art methods by factors of up to seven on a set of randomly generated problem instances of growing size.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/13/2022

Reduction of the Random Access Memory Size in Adjoint Algorithmic Differentiation by Overloading

Adjoint algorithmic differentiation by operator and function overloading...
research
03/17/2021

Hessian Chain Bracketing

Second derivatives of mathematical models for real-world phenomena are f...
research
05/02/2023

A Matrix-Free Newton Method

A modification of Newton's method for solving systems of n nonlinear equ...
research
07/12/2021

On the Computational Complexity of the Chain Rule of Differential Calculus

Many modern numerical methods in computational science and engineering r...
research
04/10/2018

The Generalized Matrix Chain Algorithm

In this paper, we present a generalized version of the matrix chain algo...
research
03/30/2023

The Essential Algorithms for the Matrix Chain

For a given product of n matrices, the matrix chain multiplication probl...
research
06/10/2016

Memory-Efficient Backpropagation Through Time

We propose a novel approach to reduce memory consumption of the backprop...

Please sign up or login with your details

Forgot password? Click here to reset