"To be recorded" analysis in reverse-mode automatic differentiation

  • Authors:
  • Laurent Hascoët;Uwe Naumann;Valérie Pascual

  • Affiliations:
  • Projet Tropics, INRIA, Sophia-Antipolis, France;Software and Tools for Computational Engineering, RWTH Aachen University, Aachen, Germany;Projet Tropics, INRIA, Sophia-Antipolis, France

  • Venue:
  • Future Generation Computer Systems
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

The automatic generation of adjoints of mathematical models that are implemented as computer programs is receiving increased attention in the scientific and engineering communities. Reverse-mode automatic differentiation is of particular interest for large-scale optimization problems. It allows the computation of gradients at a small constant multiple of the cost for evaluating the objective function itself, independent of the number of input parameters. Source-to-source transformation tools apply simple differentiation rules to generate adjoint codes based on the adjoint version of every statement. In order to guarantee correctness, certain values that are computed and overwritten in the original program must be made available in the adjoint program. For their determination we introduce a static data-flow analysis called "to be recorded" analysis. Possible overestimation of this set must be kept minimal to get efficient adjoint codes. This efficiency is essential for the applicability of source-to-source transformation tools to real-world applications.