Proyectos europeos
Logo

Semantically correct automatic differentiation

Cordis

Detalles del proyecto

Objetivo

Many recent advances in machine learning and computational statistics rely on algorithms that calculate derivatives. This use of derivatives has motivated the creation of domain specific modelling languages in which each program can be differentiated automatically, by the compiler. This technique is known as automatic differentiation (AD). AD is typically implemented through source-code-transformations, either directly or indirectly via operator overloading. These transformations become intricate in languages with expressive language features like algebraic data types and higher-order functions. Meanwhile, traditional calculus and differential geometry do not suffice to prove their correctness or even give them meaning, as ordinary differential geometry cannot support higher-order functions. Indeed, such formal correctness proofs have never been published.

This project will use the mathematical foundations of diffeological spaces, a conservative extension of traditional differential geometry to higher-order types, to give precisely such correctness proofs. In particular, it will give appropriate source-code transformations for both the forward mode and reverse mode techniques of AD on a language with specified semantics in diffeological spaces. Next, it will prove that these source-code transformations correctly implement the canonical semantic notion of differentiation, as given by the diffeological spaces semantics. It will perform this analysis for a higher-order language with tuples and variant types. These formal descriptions and correctness proofs of AD for expressive languages will be accompanied by closely matching implementations, built on top of the Accelerate framework for purely functional GPU programming.

Acrónimo

SemanDiff

Estado

TERMINATED

Tema

MSCA-IF-2019

Palabras Clave

  • programming language semantics
  • automatic differentiation
  • differential programming

Coste total

187.572,48 €

Contribución máxima UE

187.572,48 €

Coordinadores

UNIVERSITEIT UTRECHT

Utrecht, NL

Duración

Fecha de inicio15 de marzo de 2020
Fecha de finalización14 de marzo de 2022
Proyectos Cordis relacionados