Publication: Efficient Derivative Codes through Automatic Differentiation and Interface Contraction: An Application in Biostatistics
No Thumbnail Available
Open/View Files
Date
1997
Published Version
Journal Title
Journal ISSN
Volume Title
Publisher
Society for Industrial and Applied Mathematics
The Harvard community has made this article openly available. Please share how this access benefits you.
Citation
Hovland, P., C. Bischof, D. Spiegelman, and M. Casella. 1997. “Efficient Derivative Codes through Automatic Differentiation and Interface Contraction: An Application in Biostatistics.” SIAM Journal on Scientific Computing 18 (4): 1056–66. https://doi.org/10.1137/s1064827595281800.
Research Data
Abstract
Developing code for computing the first- and higher-order derivatives of a function by hand can be very time consuming and is prone to errors. Automatic differentiation has proven capable of producing derivative codes with very little effort on the part of the user. Automatic differentiation avoids the truncation errors characteristic of divided difference approximations. However, the derivative code produced by automatic differentiation can be significantly less efficient than one produced by hand. This shortcoming may be overcome by utilizing insight into the high-level structure of a computation. This paper focuses on how to take advantage of the fact that the number of variables passed between subroutines frequently is small compared with the number of variables with respect to which one wishes to differentiate. Such an ''interface contraction,'' coupled with the associativity of the chain rule for differentiation, allows one to apply automatic differentiation in a more judicious fashion, resulting in much more efficient code for the computation of derivatives, A case study involving the ADIFOR (Automatic Differentiation of Fortran) tool and a program for maximizing a logistic-normal likelihood function developed from a problem in nutritional epidemiology is examined, and performance figures are presented.
Description
Other Available Sources
Keywords
Terms of Use
This article is made available under the terms and conditions applicable to Other Posted Material (LAA), as set forth at Terms of Service