Semantics of Integrating and Differentiating Singularities
Jesse Michel, Wonyeol Lee, Hongseok Yang
摘要
WONYEOL LEE* , POSTECH, Republic of Korea HONGSEOK YANG, KAIST, Republic of Korea A singular function is a partial function such that at one or more points, the left and/or right limit diverge (e.g., the function 1/𝑥). Since programming languages typically support division, programs may denote singular functions. Although on its own, a singularity may be considered a bug, introducing a division-by-zero error, singular integrals-a version of the integral that is well-defined when the integrand is a singular function and the domain of integration contains a singularity-arise in science and engineering, including in physics, aerodynamics, mechanical engineering, and computer graphics.
In this paper, we present the first semantics of a programming language for singular integration. Our differentiable programming language, SingularFlow, supports the evaluation and differentiation of singular integrals. We formally define the denotational semantics of SingularFlow, deriving all the necessary mathematical machinery so that this work is rigorous and self-contained. We then define an operational semantics for SingularFlow that estimates integrals and their derivatives using Monte Carlo samples, and show that the operational semantics is a well-behaved estimator for the denotational semantics.
We implement SingularFlow in JAX and evaluate the implementation on a suite of benchmarks that perform the finite Hilbert transform, an integral transform related to the Fourier transform, which arises in domains such as physics and electrical engineering. We then use SingularFlow to approximate the solutions to four singular integral equations-equations where the unknown function is in the integrand of a singular integral-arising in aerodynamics and mechanical engineering.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
它引用的 Paper17
- Learning with Differentiable Pertubed OptimizersQuentin Berthet, Mathieu Blondel, Olivier Teboul, Marco Cuturi 等NeurIPS 2020 · 181 次引用
- Gradient Estimation with Stochastic Softmax TricksMax B. Paulus, Dami Choi, Daniel Tarlow, Andreas Krause 等NeurIPS 2020 · 104 次引用
- On Correctness of Automatic Differentiation for Non-Differentiable FunctionsWonyeol Lee, Hangyeol Yu, Xavier Rival, Hongseok YangNeurIPS 2020 · 50 次引用
- Automatic differentiation in PCFDamiano Mazza, Michele PaganiPOPL 2021 · 47 次引用
- Boundary Value Caching for Walk on SpheresBailey Miller, Rohan Sawhney, Keenan Crane, Ioannis GkioulekasSIGGRAPH 2023 · 34 次引用
相关 Paper
- 𝜆ₛ: computable semantics for differentiable programming with higher-order functions and datatypesBenjamin Sherman, Jesse Michel, Michael CarbinPOPL 2021 · 11 次引用
- Systematically differentiating parametric discontinuitiesSai Praveen Bangaru, Jesse Michel, Kevin Mu, Gilbert Bernstein 等SIGGRAPH 2021 · 30 次引用
- Distributions for Compositionally Differentiating Parametric DiscontinuitiesJesse Michel, Kevin Mu, Xuanda Yang, Sai Praveen Bangaru 等OOPSLA 2024 · 7 次引用
- ωPAP Spaces: Reasoning Denotationally About Higher-Order, Recursive Probabilistic and Differentiable ProgramsMathieu Huot, Alexander K. Lew, Vikash K. Mansinghka, Sam StatonLICS 2023 · 5 次引用
- Differentiable Spline ApproximationsMinsu Cho, Aditya Balu, Ameya Joshi, Anjana Deva Prasad 等NeurIPS 2021 · 7 次引用
