Recipes for adjoint code construction
Ralf Giering, T. Kaminski · ACM Transactions on Mathematical Software · 1998
Adjoint models are increasingly being developed for use in meteorology and oceanography. Typical applications are data assimilation, model tuning, sensitivity analysis, and determination of singular vectors. The adjoint model computes the gradient of a cost function with respect to control variables. Generation of adjoint code may be seen as the special case of differentiation of algorithms in reverse mode, where the dependent function is a scalar. The described method for adjoint code generation is based on a few basic principles, which permits the establishment of simple construction rules for adjoint statements and complete adjoint subprograms. These rules are presented and illustrated with some examples. Conflicts that occur due to loops and redefinition of variables are also discussed. Direct coding of the adjoint of a more sophisticated model is extremely time consuming and subject to errors. Hence, automatic generation of adjoint code represents a distinct advantage. An implementation of the method, described in this article, is the tangent linear and adjoint model compiler (TAMC).
Cited by 809 works. doi:10.1145/293686.293695 Open-access PDF
Authors
References
- Dependence Analysis for Supercomputing
- Variational Assimilation of Meteorological Observations With the Adjoint Vorticity Equation. I: Theory
- Program Flow Analysis: Theory and Application
- Automatic Differentiation of Algorithms: Theory, Implementation, and Application.
- Sensitivity theory for nonlinear systems. I. Nonlinear functional analysis approach
- The complexity of partial derivatives
- D01 Chapter-Numerical Algorithms Group, in samenwerking met de andere D01-contributors. 1) NAG Fortran Mini Manual, Mark 8, D01 18p.,
- Achieving logarithmic growth of temporal and spatial complexity in reverse automatic differentiation
- Variational Assimilation of Meteorological Observations With the Adjoint Vorticity Equation. Ii: Numerical Results
- Mathematical Programming: Recent Developments and Applications.