An Analysis of Vectorised Automatic Differentiation for Statistical Applications
Automatic differentiation (AD) is a general method for computing exact derivatives in complex sensitivity analyses and optimisation tasks, particularly when closed-form solutions are unavailable and traditional analytical or numerical methods fall short. This paper introduces a vectorised formulation of AD grounded in matrix calculus. It aligns naturally with the matrix-oriented style prevalent in statistics, supports convenient implementations, and takes advantage of sparse matrix representation and other high-level optimisation techniques that are not available in the scalar counterpart. Our formulation is well-suited to high-dimensional statistical applications, where finite differences (FD) scale poorly due to the need to repeat computations for each input dimension, resulting in significant overhead, and is advantageous in simulation-intensive settings—such as Markov Chain Monte Carlo (MCMC)-based inference—where FD requires repeated sampling and multiple function evaluations, while AD can compute exact derivatives in a single pass, substantially reducing computational cost. Numerical studies are presented to demonstrate the efficacy and speed of the proposed AD method compared with FD schemes.
Authors
- Liana Jacobi (ORCID: https://orcid.org/0000-0001-7210-0500)
- Dan Zhu (ORCID: https://orcid.org/0000-0003-1487-2232)
- Chun Fung Kwok (ORCID: https://orcid.org/0000-0002-0716-3879)
Institutions
- The University of Melbourne (AU)
- Monash University (AU)
- St Vincents Institute of Medical Research (AU)
Publication Details
- Journal
- Stats
- Published
- 2025-05-19
- DOI
- https://doi.org/10.3390/stats8020040
- Primary Topic
- Control Systems and Identification
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Australian Research Council