ACM Transactions on Mathematical Software · 2014 · 173 citations · 19 references
ComputingComputer ScienceAlgorithmsOptimizationProgramming LanguagesAlgorithm AnalysisGradient-based OptimizationNumerical AlgorithmsNumerical AnalysisAutomatic DifferentiationCompile-time Optimization
Gradient-based optimization problems are encountered in many fields, but the associated task of differentiating large computer algorithms can be formidable. The operator-overloading approach to performing reverse-mode automatic differentiation is the most convenient for the user but current implementations are typically 10-35 times slower than the original algorithm. In this paper a fast new operator-overloading method is presented that uses the expression template programming technique in C++ to provide a compile-time representation of each mathematical expression as a computational graph that can be efficiently traversed in either direction. Benchmarking with four different numerical algorithms shows this approach to be 2.6--9 times faster than current operator-overloading libraries, and 1.3--7.7 times more efficient in memory usage. It is typically less than 4 times the computational cost of the original algorithm, although poorer performance is found for all libraries in the case of simple loops containing no mathematical functions. An implementation is freely available in the Adept C++ software library.
19
Peter D. Lax, Burton Wendroff · Communications on Pure and Applied Mathematics · 1960 · 2.6K citations
Recipes for adjoint code construction
Ralf Giering, T. Kaminski · ACM Transactions on Mathematical Software · 1998 · 854 citations · Full text
Lecture notes in computational science and engineering
Ignazio Maria Viola, Raffaele Ponzini, D. Rocchi et al. · 2010 · 809 citations
Natural Sciences, Computational Engineering, Computer Science +13
Andreas Griewank, David Juedes, Jean Utke · ACM Transactions on Mathematical Software · 1996 · 745 citations · Full text