| <Reference List> | |
| Type: | Preprint |
| National /International: | International |
| Title: | Backpropagation for effectful languages I: Finite probability and discrete output algebraic effects |
| Publication Date: | 2026-07-15 |
| Authors: |
- Diogo Simm
- Fernando Lucatelli Nunes - Matthijs Vákár |
| Abstract: | We analyse reverse-mode automatic differentiation (AD) for discrete probabilistic programs. Our construction is formulated in the framework of Combinatory Homomorphic Automatic Differentiation (CHAD), treating AD as a structure-preserving transformation of programs, guided by a denotational semantics. The main case study is the finite atomic distribution monad, whose computations have finite support and differentiable weights. The key point is that differentiating probabilistic programs requires cotangents to flow backwards not only through deterministic computations, but also through the probabilistic structure itself. We define the corresponding reverse-mode code transformation and prove its correctness, for handled real-output programs, by a categorical logical-relations argument. |
| Institution: | DMUC 26-35 |
| Online version: | http://www.mat.uc.pt...prints/eng_2026.html |
| Download: | Not available |
