- Library Home /
- Search Collections /
- Open Collections /
- Browse Collections /
- BIRS Workshop Lecture Videos /
- Soundness for automatic differentiation via string...
Open Collections
BIRS Workshop Lecture Videos
BIRS Workshop Lecture Videos
Soundness for automatic differentiation via string diagrams Alvarez-Picallo, Mario
Description
Reverse-mode automatic differentiation, especially in the presence of complex language features, is notoriously hard to implement correctly, and most implementations focus on differentiating straight-line imperative first-order code. Generalisations exist, however, that can tackle more advanced features; for example, the algorithm described by Pearlmutter and Siskind in their 2008 paper can differentiate (pure) code containing closures. We show that AD algorithms can benefit enormously from being translated into the language of string diagrams in two steps: first, we rephrase Pearlmutter and Siskind's algorithm as a set of rules for transforming hierarchical graphs; rules which can -and indeed have been- be implemented correctly and efficiently in a non-trivial language. Then, we sketch a proof of soundness for it by reducing its transformations to the axioms of Cartesian reverse differential categories, expressed as string diagrams.
Item Metadata
Title |
Soundness for automatic differentiation via string diagrams
|
Creator | |
Publisher |
Banff International Research Station for Mathematical Innovation and Discovery
|
Date Issued |
2021-06-17T11:00
|
Description |
Reverse-mode automatic differentiation, especially in the presence of complex language
features, is notoriously hard to implement correctly, and most implementations focus on
differentiating straight-line imperative first-order code. Generalisations exist, however,
that can tackle more advanced features; for example, the algorithm described by Pearlmutter
and Siskind in their 2008 paper can differentiate (pure) code containing closures.
We show that AD algorithms can benefit enormously from being translated into the language
of string diagrams in two steps: first, we rephrase Pearlmutter and Siskind's algorithm as
a set of rules for transforming hierarchical graphs; rules which can -and indeed have been-
be implemented correctly and efficiently in a non-trivial language. Then, we sketch a proof
of soundness for it by reducing its transformations to the axioms of Cartesian reverse
differential categories, expressed as string diagrams.
|
Extent |
53.0 minutes
|
Subject | |
Type | |
File Format |
video/mp4
|
Language |
eng
|
Notes |
Author affiliation: Huawei Research
|
Series | |
Date Available |
2023-10-28
|
Provider |
Vancouver : University of British Columbia Library
|
Rights |
Attribution-NonCommercial-NoDerivatives 4.0 International
|
DOI |
10.14288/1.0437396
|
URI | |
Affiliation | |
Peer Review Status |
Unreviewed
|
Scholarly Level |
Other
|
Rights URI | |
Aggregated Source Repository |
DSpace
|
Item Media
Item Citations and Data
Rights
Attribution-NonCommercial-NoDerivatives 4.0 International