Mohammad Qasam Adil
Department of Mathematics, Faculty of Education, Helmand University, Lashkargah, Helmand, Afghanistan

Published : 1 Documents Claim Missing Document
Claim Missing Document
Check
Articles

Found 1 Documents
Search

Automatic Differentiation in Modern Machine Learning: Mathematical Foundations, Algorithmic Modes, Implementation Strategies, and Contemporary Challenges: A Comprehensive Review Article Mohammad Qasam Adil; Mirwais Ghafare
Interkoneksi: Journal of Computer Science and Digital Business Vol. 4 No. 2 (2026)
Publisher : Penerbit Hellow Pustaka

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.61166/interkoneksi.v4i2.99

Abstract

Automatic differentiation (AD) is the algorithmic backbone of nearly every gradient-based method used in contemporary machine learning, ranging from stochastic gradient descent for deep neural networks and Adam-style adaptive optimizers, through gradient-based Markov chain Monte Carlo and variational inference in probabilistic programs, to end-to-end differentiable simulation in scientific machine learning. AD evaluates derivatives of numerical functions defined by computer programs to floating-point precision, and, in its reverse mode, at a computational cost that is bounded by a small constant multiple of the cost of evaluating the function itself, independently of the number of inputs. This review synthesizes the theoretical foundations, algorithmic modes, and implementation strategies of AD; positions AD unambiguously against the two techniques with which it is most frequently confused — namely, numerical (finite-difference) differentiation, which is cheap but suffers from truncation and round-off error, and symbolic differentiation, which is exact but subject to expression swell for programs with control flow; and formalises the chain rule as the unifying mechanism that both the forward and reverse accumulation modes exploit. The complexity trade-offs between the two modes are analysed with reference to the shape of the Jacobian to be evaluated, and their combination for Hessian–vector products, mixed-mode, and higher-order derivatives is discussed. The historical convergence of reverse-mode AD with the backpropagation algorithm is traced from its independent origins in numerical rounding-error analysis (Linnainmaa, 1970), control theory (Werbos, 1974), general-purpose gradient compilation (Speelpenning, 1980), and connectionist learning (Rumelhart et al., 1986). The article further surveys the three principal implementation strategies — operator overloading, source-to-source transformation, and tracing with just-in-time compilation — as realised in the frameworks that dominate current practice, TensorFlow (Abadi et al., 2016), PyTorch (Paszke et al., 2019), and JAX (Bradbury et al., 2018). It closes with a discussion of open problems: correctness at points of non-differentiability, memory-efficient reverse mode through checkpointing, sound differentiation of stochastic and probabilistic programs, and formal verification of AD in compiler-embedded settings. The article integrates and updates prior treatments (Griewank & Walther, 2008; Baydin et al., 2018; Margossian, 2019) and reports on 2022–2024 developments in Enzyme, JAX, and differentiable programming for differential equations (Hückelheim et al., 2023; Sapienza et al., 2024).