Science of Computer Programming · 2023 · 14 citations · 24 references
ComputingComputer ScienceAlgebraProgramming LanguagesTheory Of ComputationAbstract AlgebraAbstract InterpretationAlgebraic StructuresComputational AlgebraNeural NetworksAlgebraic LogicAutomatic DifferentiationAxiomatization Of Algebraic StructuresDirac Delta FunctionModule Theory
Automatic differentiation (AD) has been a topic of interest for researchers in many disciplines, with increased popularity since its application to machine learning and neural networks. Although many researchers appreciate and know how to apply AD, it remains a challenge to truly understand the underlying processes. From an algebraic point of view, however, AD appears surprisingly natural: it originates from the differentiation laws. In this work we use Algebra of Programming techniques to reason about different AD variants, leveraging Haskell to illustrate our observations. Our findings stem from three fundamental algebraic abstractions: (1) the notion of semimodule, (2) Nagata's construction of the ‘idealization of a module’, and (3) Kronecker's delta function, that together allow us to write a single-line abstract definition of AD. From this single-line definition, and by instantiating our algebraic structures in various ways, we derive different AD variants, that have the same extensional behaviour, but different intensional properties, mainly in terms of (asymptotic) computational complexity. We show the different variants equivalent by means of Kronecker isomorphisms, a further elaboration of our Haskell infrastructure which guarantees correctness by construction. With this framework in place, this paper seeks to make AD variants more comprehensible, taking an algebraic perspective on the matter.
24
Introduction to Commutative Algebra.
D. J. Lewis, B. R. McDonald, M. F. Atiyah et al. · American Mathematical Monthly · 1970 · 1.8K citations
Proof of correctness of data representations
C. A. R. Hoare · Acta Informatica · 1972 · 967 citations
Preliminary Sketch of Biquaternions
Clifford · Proceedings of the London Mathematical Society · 1871 · 618 citations · Full text
Fast Exact Multiplication by the Hessian
Barak A. Pearlmutter · Neural Computation · 1994 · 561 citations