Smoothness Analysis for Probabilistic Programs with Application to Optimised Variational Inference
Wonyeol Lee, Xavier Rival, Hongseok Yang
摘要
We present a static analysis for discovering differentiable or more generally smooth parts of a given probabilistic program, and show how the analysis can be used to improve the pathwise gradient estimator, one of the most popular methods for posterior inference and model learning. Our improvement increases the scope of the estimator from differentiable models to non-differentiable ones without requiring manual intervention of the user; the improved estimator automatically identifies differentiable parts of a given probabilistic program using our static analysis, and applies the pathwise gradient estimator to the identified parts while using a more general but less efficient estimator, called score estimator, for the rest of the program. Our analysis has a surprisingly subtle soundness argument, partly due to the misbehaviours of some target smoothness properties when viewed from the perspective of program analysis designers. For instance, some smoothness properties, such as partial differentiability and partial continuity, are not preserved by function composition, and this makes it difficult to analyse sequential composition soundly without heavily sacrificing precision. We formulate five assumptions on a target smoothness property, prove the soundness of our analysis under those assumptions, and show that our leading examples satisfy these assumptions. We also show that by using information from our analysis instantiated for differentiability, our improved gradient estimator satisfies an important differentiability requirement and thus computes the correct estimate on average (i.e., returns an unbiased estimate) under a regularity condition. Our experiments with representative probabilistic programs in the Pyro language show that our static analysis is capable of identifying smooth parts of those programs accurately, and making our improved pathwise gradient estimator exploit all the opportunities for high performance in those programs.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Probabilistic Programming with Programmable Variational Inference 引用了 Towards verified stochastic variational inference for probabilistic programs
- Probabilistic Programming with Programmable Variational Inference 引用了 Trace types and denotational semantics for sound programmable inference in probabilistic languages
- Probabilistic Programming with Programmable Variational Inference 引用了 ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programs
- Inference Plans for Hybrid Particle Filtering 引用了 Automatic Reparameterisation of Probabilistic Programs
- Inference Plans for Hybrid Particle Filtering 引用了 Scaling exact inference for discrete probabilistic programs
- Inference Plans for Hybrid Particle Filtering 引用了 Trace types and denotational semantics for sound programmable inference in probabilistic languages
- Scaling exact inference for discrete probabilistic programs 引用了 Automatic Reparameterisation of Probabilistic Programs
- Semantics of Integrating and Differentiating Singularities 引用了 Probabilistic Programming with Programmable Variational Inference
- Semantics of Integrating and Differentiating Singularities 引用了 ωPAP Spaces: Reasoning Denotationally About Higher-Order, Recursive Probabilistic and Differentiable Programs
- Semantics of Integrating and Differentiating Singularities 引用了 Towards verified stochastic variational inference for probabilistic programs
- Semantics of Integrating and Differentiating Singularities 引用了 ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programs
- ωPAP Spaces: Reasoning Denotationally About Higher-Order, Recursive Probabilistic and Differentiable Programs 引用了 Trace types and denotational semantics for sound programmable inference in probabilistic languages
- ωPAP Spaces: Reasoning Denotationally About Higher-Order, Recursive Probabilistic and Differentiable Programs 引用了 ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programs
- Trace types and denotational semantics for sound programmable inference in probabilistic languages 引用了 Towards verified stochastic variational inference for probabilistic programs
- ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programs 引用了 Towards verified stochastic variational inference for probabilistic programs
- ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programs 引用了 Trace types and denotational semantics for sound programmable inference in probabilistic languages
引用它的顶会 Paper7
- ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic ProgramsAlexander K. Lew, Mathieu Huot, Sam Staton, Vikash K. MansinghkaPOPL 2023 · 16 次引用
- Probabilistic Programming with Programmable Variational InferenceMcCoy R. Becker, Alexander K. Lew, Xiaoyan Wang, Matin Ghavami 等PLDI 2024 · 8 次引用
- ωPAP Spaces: Reasoning Denotationally About Higher-Order, Recursive Probabilistic and Differentiable ProgramsMathieu Huot, Alexander K. Lew, Vikash K. Mansinghka, Sam StatonLICS 2023 · 5 次引用
- Inference Plans for Hybrid Particle FilteringEllie Y. Cheng, Eric Atkinson, Guillaume Baudart, Louis Mandel 等POPL 2025 · 2 次引用
- Semantics of Integrating and Differentiating SingularitiesJesse Michel, Wonyeol Lee, Hongseok YangPLDI 2025
它引用的 Paper7
- The Lipschitz Constant of Self-AttentionHyunjik Kim, George Papamakarios, Andriy MnihICML 2021 · 208 次引用
- Scaling exact inference for discrete probabilistic programsSteven Holtzen, Guy Van den Broeck, Todd D. MillsteinOOPSLA 2020 · 85 次引用
- Automatic Reparameterisation of Probabilistic ProgramsMaria I. Gorinova, Dave Moore, Matthew D. HoffmanICML 2020 · 33 次引用
- Trace types and denotational semantics for sound programmable inference in probabilistic languagesAlexander K. Lew, Marco F. Cusumano-Towner, Benjamin Sherman, Michael Carbin 等POPL 2020 · 30 次引用
- Towards verified stochastic variational inference for probabilistic programsWonyeol Lee, Hangyeol Yu, Xavier Rival, Hongseok YangPOPL 2020 · 22 次引用
相关 Paper
- Marginalized Stochastic Natural Gradients for Black-Box Variational InferenceGeng Ji, Debora Sujono, Erik B. SudderthICML 2021 · 9 次引用
- Static Factorisation of Probabilistic Programs with User-Labelled Sample Statements and While LoopsMarkus Böck, Jürgen CitoOOPSLA 2026 · 1 次引用
- Nonparametric Score EstimatorsYuhao Zhou, Jiaxin Shi, Jun ZhuICML 2020 · 30 次引用
- Differentiable Synthesis of Program ArchitecturesGuofeng Cui, He ZhuNeurIPS 2021 · 20 次引用
- A Differentiable Point Process with Its Application to Spiking Neural NetworksHiroshi KajinoICML 2021 · 5 次引用
