~/talk

Contextual source code AD transformations for sum types

Talkat LAFI 2023 · on Sunday, 2023-01-15· [compilers-and-language-design, machine-learning]
links:none on file
slides:none on file

Provides context-based source-code transformations that implement forward AD, reverse AD and transposition for a first-order language with products and sums, and proves the transforms form a commuting diagram so reverse = transpose ∘ forward on the source code. Targets a mixed linear/non-linear target with dependent types that represent sum-type tangent spaces; uses a "bunch" elimination and structural-recursive generation of code. Delivers runtime and space bounds and shows efficiency except for extra cost when deep case-branching forces large tuple accumulation. Dependent tangent types appear essential.

AI-written summary · about

  1. 0:00Intro
  2. 1:26Our source code transformations
  3. 2:36Their advantages
  4. 3:19Efficiency
  5. 4:58Typing Environment Contexts
  6. 6:46Typing reverse differentiation (without sum types)
  7. 8:20Using contexts
  8. 11:02Target language
  9. 13:42Typing the linear language
  10. 16:12Type translation
  11. 17:09Forward differentiation translation
  12. 17:52Reverse differentiation translation
  13. 19:18Transposition translation
  14. 20:01Cases: forward differentiation
  15. 21:17Sums: Reverse differentiation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.