Cargando…

Correctness of Automatic Differentiation via Diffeologies and Categorical Gluing

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...

Descripción completa

Detalles Bibliográficos
Autores principales: Huot, Mathieu, Staton, Sam, Vákár, Matthijs
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2020
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7788619/
http://dx.doi.org/10.1007/978-3-030-45231-5_17
_version_ 1783633065535340544
author Huot, Mathieu
Staton, Sam
Vákár, Matthijs
author_facet Huot, Mathieu
Staton, Sam
Vákár, Matthijs
author_sort Huot, Mathieu
collection PubMed
description 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.
format Online
Article
Text
id pubmed-7788619
institution National Center for Biotechnology Information
language English
publishDate 2020
record_format MEDLINE/PubMed
spelling pubmed-77886192021-01-07 Correctness of Automatic Differentiation via Diffeologies and Categorical Gluing Huot, Mathieu Staton, Sam Vákár, Matthijs Foundations of Software Science and Computation Structures Article 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. 2020-04-17 /pmc/articles/PMC7788619/ http://dx.doi.org/10.1007/978-3-030-45231-5_17 Text en © The Author(s) 2020 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
spellingShingle Article
Huot, Mathieu
Staton, Sam
Vákár, Matthijs
Correctness of Automatic Differentiation via Diffeologies and Categorical Gluing
title Correctness of Automatic Differentiation via Diffeologies and Categorical Gluing
title_full Correctness of Automatic Differentiation via Diffeologies and Categorical Gluing
title_fullStr Correctness of Automatic Differentiation via Diffeologies and Categorical Gluing
title_full_unstemmed Correctness of Automatic Differentiation via Diffeologies and Categorical Gluing
title_short Correctness of Automatic Differentiation via Diffeologies and Categorical Gluing
title_sort correctness of automatic differentiation via diffeologies and categorical gluing
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7788619/
http://dx.doi.org/10.1007/978-3-030-45231-5_17
work_keys_str_mv AT huotmathieu correctnessofautomaticdifferentiationviadiffeologiesandcategoricalgluing
AT statonsam correctnessofautomaticdifferentiationviadiffeologiesandcategoricalgluing
AT vakarmatthijs correctnessofautomaticdifferentiationviadiffeologiesandcategoricalgluing