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 language | English |
|---|---|
| Title of host publication | 31st EACSL Annual Conference on Computer Science Logic (CSL 2023) |
| Editors | Bartek Klin, Elaine Pimentel |
| Publisher | Schloss Dagstuhl - Leibniz-Zentrum für Informatik |
| ISBN (Electronic) | 9783959772648 |
| DOIs | |
| Publication status | Published - 1 Feb 2023 |
| Event | 31st EACSL Annual Conference on Computer Science Logic - Warsaw, Poland Duration: 13 Feb 2023 → 16 Feb 2023 https://csl2023.mimuw.edu.pl/ |
Publication series
| Name | Leibniz International Proceedings in Informatics, LIPIcs |
|---|---|
| Volume | 252 |
| ISSN (Print) | 1868-8969 |
Conference
| Conference | 31st EACSL Annual Conference on Computer Science Logic |
|---|---|
| Abbreviated title | CSL 2023 |
| Country/Territory | Poland |
| City | Warsaw |
| Period | 13/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
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver