Skip to main navigation Skip to search Skip to main content

Functorial String Diagrams for Reverse-Mode Automatic Differentiation

  • Mario Alvarez-Picallo*
  • , Dan Ghica*
  • , David Sprunger*
  • , Fabio Zanasi*
  • *Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution

61 Downloads (Pure)

Abstract

We formulate a reverse-mode automatic differentiation (RAD) algorithm for (applied) simply typed lambda calculus in the style of Pearlmutter and Siskind [27], using the graphical formalism of string diagrams. Thanks to string diagram rewriting, we are able to formally prove for the first time the soundness of such an algorithm. Our approach requires developing a calculus of string diagrams with hierarchical features in the spirit of functorial boxes, in order to model closed monoidal (and cartesian closed) structure. To give an efficient yet principled implementation of the RAD algorithm, we use foliations of our hierarchical string diagrams.

Original languageEnglish
Title of host publication31st EACSL Annual Conference on Computer Science Logic (CSL 2023)
EditorsBartek Klin, Elaine Pimentel
PublisherSchloss Dagstuhl - Leibniz-Zentrum für Informatik
ISBN (Electronic)9783959772648
DOIs
Publication statusPublished - 1 Feb 2023
Event31st EACSL Annual Conference on Computer Science Logic - Warsaw, Poland
Duration: 13 Feb 2023 → 16 Feb 2023
https://csl2023.mimuw.edu.pl/

Publication series

NameLeibniz International Proceedings in Informatics, LIPIcs
Volume252
ISSN (Print)1868-8969

Conference

Conference31st EACSL Annual Conference on Computer Science Logic
Abbreviated titleCSL 2023
Country/TerritoryPoland
CityWarsaw
Period13/02/23 → 16/02/23
Internet address

Bibliographical note

Publisher Copyright:
© Mario Alvarez-Picallo, Dan Ghica, David Sprunger, and Fabio Zanasi.

Keywords

  • automatic differentiation
  • hierarchical hypergraphs
  • string diagrams

ASJC Scopus subject areas

  • Software

Fingerprint

Dive into the research topics of 'Functorial String Diagrams for Reverse-Mode Automatic Differentiation'. Together they form a unique fingerprint.

Cite this