swMATH ID: 16106
Software Authors: Jarrett Revels, Miles Lubin, Theodore Papamarkou
Description: Forward-Mode Automatic Differentiation in Julia. We present ForwardDiff, a Julia package for forward-mode automatic differentiation (AD) featuring performance competitive with low-level languages like C++. Unlike recently developed AD tools in other popular high-level languages such as Python and MATLAB, ForwardDiff takes advantage of just-in-time (JIT) compilation to transparently recompile AD-unaware user code, enabling efficient support for higher-order differentiation and differentiation using custom number types (including complex numbers). For gradient and Jacobian calculations, ForwardDiff provides a variant of vector-forward mode that avoids expensive heap allocation and makes better use of memory bandwidth than traditional vector mode. In our numerical experiments, we demonstrate that for nontrivially large dimensions, ForwardDiff’s gradient computations can be faster than a reverse-mode implementation from the Python-based autograd package. We also illustrate how ForwardDiff is used effectively within JuMP, a modeling language for optimization. According to our usage statistics, 41 unique repositories on GitHub depend on ForwardDiff, with users from diverse fields such as astronomy, optimization, finite element analysis, and statistics. This document is an extended abstract that has been accepted for presentation at the AD2016 7th International Conference on Algorithmic Differentiation.
Homepage: https://github.com/JuliaDiff/ForwardDiff.jl
Source Code: https://github.com/JuliaDiff/ForwardDiff.jl
Dependencies: Julia
Keywords: automatic differentiation; forward-mode AD; Julia package; JuMP modeling language
Related Software: Julia; PyTorch; TensorFlow; Ipopt; JuMP; Stan; DiffSharp; Python; Matlab; DifferentialEquations.jl; ADiGator; AMPL; Bridge.jl; ddfermi; SciPy; LBFGS-B; GAMS; Cassette.jl; Pyomo; Gurobi
Cited in: 20 Publications

Standard Articles

1 Publication describing the Software Year
Forward-Mode Automatic Differentiation in Julia
Jarrett Revels, Miles Lubin, Theodore Papamarkou

Citations by Year