Efficient Derivative Codes Through Automatic Differentiation and Interface Contraction: An Application in Biostatistics
-
1997/07/01
Details
-
Personal Author:
-
Description: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 provided by NIOSH]
-
Subjects:
-
Keywords:
-
ISSN:1064-8275
-
Document Type:
-
Funding:
-
Genre:
-
Place as Subject:
-
CIO:
-
Topic:
-
Location:
-
Volume:18
-
Issue:4
-
NIOSHTIC Number:nn:20024391
-
Citation:SIAM J Sci Comput 1997 Jul-Aug; 18(4):1056-1066
-
Contact Point Address:Computer Science Department, University of Illinois at Urbana-Champaign, 1304 W. Springfield Avenue, Urbana, IL 61801
-
Email:hovland@uiuc.edu
-
Federal Fiscal Year:1997
-
NORA Priority Area:
-
Performing Organization:Harvard University, School of Public Health, Department of Epidemiology and Biostatistics, Boston, Massachusetts
-
Peer Reviewed:True
-
Start Date:19910701
-
Source Full Name:SIAM Journal on Scientific Computing
-
End Date:19950630
-
Collection(s):
-
Main Document Checksum:urn:sha-512:931f0df985133fada545d1baa9b56027b254626e58e76631cd1e8fcd2131f45964109f59a655f2c473bd0d6944566d67292c8afa3af9f0bf71abb409a0940068
-
Download URL:
-
File Type:
ON THIS PAGE
CDC STACKS serves as an archival repository of CDC-published products including
scientific findings,
journal articles, guidelines, recommendations, or other public health information authored or
co-authored by CDC or funded partners.
As a repository, CDC STACKS retains documents in their original published format to ensure public access to scientific information.
As a repository, CDC STACKS retains documents in their original published format to ensure public access to scientific information.
You May Also Like