Correctness of Automatic Differentiation via Diffeologies and Categorical Gluing
Publication date
2020-04-17
Editors
Goubault-Larrecq, Jean
König, Barbara
Advisors
Supervisors
Document Type
Part of book
Metadata
Show full item recordCollections
License
cc_by_sa
Abstract
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 as the unique structure preserving macro given a choice of derivatives for basic operations. 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 our characterisation 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.
Keywords
Taverne
Citation
Huot, M, Staton, S & Vákár, M 2020, Correctness of Automatic Differentiation via Diffeologies and Categorical Gluing. in J Goubault-Larrecq & B König (eds), Foundations of Software Science and Computation Structures - 23rd International Conference, FOSSACS 2020, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2020, Dublin, Ireland, April 25-30, 2020, Proceedings. vol. 12077, Lecture Notes in Computer Science, Springer, pp. 319-338. https://doi.org/10.1007/978-3-030-45231-5_17