We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:


Current browse context:


Change to browse by:

References & Citations

DBLP - CS Bibliography


(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo ScienceWISE logo

Computer Science > Programming Languages

Title: Correctness of Automatic Differentiation via Diffeologies and Categorical Gluing

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.
Comments: Proceedings of FoSSaCS 2020
Subjects: Programming Languages (cs.PL); Logic in Computer Science (cs.LO)
Cite as: arXiv:2001.02209 [cs.PL]
  (or arXiv:2001.02209v3 [cs.PL] for this version)

Submission history

From: Matthijs Vákár [view email]
[v1] Tue, 7 Jan 2020 18:21:52 GMT (279kb)
[v2] Mon, 24 Feb 2020 07:56:36 GMT (453kb)
[v3] Wed, 1 Apr 2020 08:05:26 GMT (453kb)

Link back to: arXiv, form interface, contact.