Correctness of Automatic Differentiation via Diffeologies and Categorical Gluing

01/07/2020
by   Mathieu Huot, et al.
0

We present semantic correctness proofs of Automatic Differentiation (AD). We consider a forward-mode AD method on a higher order language with algebraic data types, and we characterise it by identifying a universal property it satisfies. We describe a rich semantics for differentiable programming, based on diffeological spaces. We show that it interprets our language, and we phrase what it means for the AD method to be correct with respect to this semantics. We show that the universal property of AD gives rise to an elegant semantic proof of its correctness based on a gluing construction on diffeological spaces. We explain how this is, in essence, a logical relations argument. Finally, we sketch how the analysis extends to other AD methods by considering a continuation-based method.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset