Distributions for Compositionally Differentiating Parametric Discontinuities
Author(s)
Michel, Jesse; Mu, Kevin; Yang, Xuanda; Bangaru, Sai Praveen; Collins, Elias Rojas; Bernstein, Gilbert; Ragan-Kelley, Jonathan; Carbin, Michael; Li, Tzu-Mao; ... Show more Show less
Download3649843.pdf (1.107Mb)
Publisher with Creative Commons License
Publisher with Creative Commons License
Creative Commons Attribution
Terms of use
Metadata
Show full item recordAbstract
Computations in physical simulation, computer graphics, and probabilistic inference often require the differentiation of discontinuous processes due to contact, occlusion, and changes at a point in time. Popular differentiable programming languages, such as PyTorch and JAX, ignore discontinuities during differentiation. This is incorrect for
<jats:italic>parametric discontinuities</jats:italic>
—conditionals containing at least one real-valued parameter and at least one variable of integration. We introduce Potto, the first differentiable first-order programming language to soundly differentiate parametric discontinuities. We present a denotational semantics for programs and program derivatives and show the two accord. We describe the implementation of Potto, which enables separate compilation of programs. Our prototype implementation overcomes previous compile-time bottlenecks achieving an 88.1x and 441.2x speed up in compile time and a 2.5x and 7.9x speed up in runtime, respectively, on two increasingly large image stylization benchmarks. We showcase Potto by implementing a prototype differentiable renderer with separately compiled shaders.
Date issued
2024-04-29Journal
Proceedings of the ACM on Programming Languages
Publisher
Association for Computing Machinery
Citation
Michel, Jesse, Mu, Kevin, Yang, Xuanda, Bangaru, Sai Praveen, Collins, Elias Rojas et al. 2024. "Distributions for Compositionally Differentiating Parametric Discontinuities." Proceedings of the ACM on Programming Languages, 8 (OOPSLA1).
Version: Final published version
ISSN
2475-1421
Collections
The following license files are associated with this item: