Validity of Directional Derivatives computed by Automatic Differentiation HOWTO.

Motivation: Automatic Differentiation (AD) tools assume differentiability of the function implemented by the given program. However, due to switches in the control flow, most programs are only piecewise differentiable. Thereby, sometimes the derivatives are wrong, unfortunately this fact is overlook by everyday use of AD. There exist extended models of AD that return useful generalized derivatives for some classes of piecewise differentiable functions, but there is little hope of doing so for all cases. In contrast, our goal is to evaluate, along with the derivative, the size of the differentiable neighborhood around the current input. This ``safe neighborhood" is essential to use the derivatives consistently.

Mechanism: To validate the derivatives we evaluate the interval around the input data where no non-differentiability problem arises. Practically, this requires to analyzing each conditional statement at run-time, in order to find for which data it will switch, and propagate this information as a constraint on the input data.

Requirements:

Procedure:

Example of Application:

Conclusions:

For small an example looks trivial, but for large number of the conditionals the results may be very useful and not easy the obtain using a non-automatic way.

References:

* "Certification of Directional Derivatives Computed by Automatic Differentiation" at The 7th WSEAS International Conference on APPLIED MATHEMATICS (MATH 2005), Cancun, Mexico. May 2005.

* "Domain of Validity of Derivatives Computed by Automatic Differentiation", Rapport de Recherche, RR-5237. INRIA-SOP, France. June 2004.

last update 13/03/2006