ωPAP Spaces: Reasoning Denotationally About Higher-Order, Recursive Probabilistic and Differentiable Programs

被引:1
|
作者
Huot, Mathieu
Lew, Alexander K.
Mansinghka, Vikash K.
Staton, Sam
机构
关键词
CATEGORIES;
D O I
10.1109/LICS56636.2023.10175739
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We introduce a new setting, the category of.PAP spaces, for reasoning denotationally about expressive differentiable and probabilistic programming languages. Our semantics is general enough to assign meanings to most practical probabilistic and differentiable programs, including those that use general recursion, higher-order functions, discontinuous primitives, and discrete and continuous sampling. But crucially, it is also specific enough to exclude many pathological denotations, enabling us to establish new results about differentiable and probabilistic programs. In the differentiable setting, we prove general correctness theorems for automatic differentiation and its use within gradient descent. In the probabilistic setting, we establish the almost-everywhere differentiability of probabilistic programs' trace density functions, and the existence of convenient base measures for density computation in Monte Carlo inference. In some cases these results were previously known, but required detailed proofs of an operational flavor; by contrast, all our proofs work directly with programs' denotations.
引用
收藏
页数:14
相关论文
共 50 条
  • [1] On the Termination Problem for Probabilistic Higher-Order Recursive Programs
    Kobayashi, Naoki
    Dal Lago, Ugo
    Grellois, Charles
    [J]. 2019 34TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2019,
  • [2] ON THE TERMINATION PROBLEM FOR PROBABILISTIC HIGHER-ORDER RECURSIVE PROGRAMS
    Kobayashi, Naoki
    Dal Lago, Ugo
    Grellois, Charles
    [J]. LOGICAL METHODS IN COMPUTER SCIENCE, 2020, 16 (04) : 1 - 57
  • [3] Reasoning about Recursive Probabilistic Programs
    Olmedo, Federico
    Kaminski, Benjamin Lucien
    Katoen, Joost-Pieter
    Matheja, Christoph
    [J]. PROCEEDINGS OF THE 31ST ANNUAL ACM-IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS 2016), 2016, : 672 - 681
  • [4] Error Credits: Resourceful Reasoning about Error Bounds for Higher-Order Probabilistic Programs
    Aguirre, Alejandro
    Haselwarter, Philipp G.
    de Medeiros, Markus
    Li, Kwing Hei
    Gregersen, Simon Oddershede
    Tassarotti, Joseph
    Birkedal, Lars
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2024, 8 (ICFP):
  • [5] Modular Reasoning about Concurrent Higher-Order Imperative Programs
    Birkedal, Lars
    [J]. ACM SIGPLAN NOTICES, 2014, 49 (01) : 1 - 1
  • [6] Small bisimulations for reasoning about higher-order imperative programs
    Koutavas, V
    Wand, M
    [J]. ACM SIGPLAN NOTICES, 2006, 41 (01) : 141 - 152
  • [7] Reasoning about higher-order processes
    Amadio, RM
    Dam, M
    [J]. TAPSOFT '95: THEORY AND PRACTICE OF SOFTWARE DEVELOPMENT, 1995, 915 : 202 - 216
  • [8] Semantics of Higher-Order Probabilistic Programs with Conditioning
    Dahlqvist, Fredrik
    Kozen, Dexter
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2020, 4 (POPL):
  • [9] Formal Verification of Higher-Order Probabilistic Programs
    Sato, Tetsuya
    Aguirre, Alejandro
    Barthe, Gilles
    Gaboardi, Marco
    Garg, Deepak
    Hsu, Justin
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2019, 3 (POPL):
  • [10] A higher-order function approach to evolve recursive programs
    Yu, T
    [J]. GENETIC PROGRAMMING THEORY AND PRACTICE III, 2006, 9 : 93 - 108