| Title: | An Analysis of Vectorised Automatic Differentiation for Statistical Applications |
| Authors: | Kwok, CF Zhu, D Jacobi, L |
| Issue Year: | 2025 |
| Publisher | MDPI |
| Series | STATS: |
| Abstract | 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. |
| URI: | https://publications.svi.edu.au/publications/10215 |
| Other Identifiers | 10.3390/stats8020040 |
| Publication type | Article |