arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.10636cs.PLcs.LGcs.LO
收藏

ωPAP 空间:对高阶、递归概率与可微程序进行指称推理

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

Mathieu Huot, Alexander K. Lew, Vikash K. Mansinghka, Sam Staton

AI总结:

本文提出 ωPAP 空间范畴作为指称语义框架,以统一处理高阶递归概率与可微程序,并据此证明自动微分正确性及概率程序迹密度的几乎处处可微性。

摘要:

我们引入一个新的设定,即 ωPAP 空间范畴,用于对表达力强的可微与概率编程语言进行指称推理。我们的语义足够通用,能够为大多数实用的概率与可微程序赋予含义,包括那些使用一般递归、高阶函数、不连续原语以及离散与连续采样的程序。但关键在于,它又足够具体,能够排除许多病态的指称,从而使我们能够建立关于确定性可微程序和概率程序的新结果。在确定性设定中,我们证明了自动微分及其在梯度下降中使用的非常一般的正确性定理。在概率设定中,我们建立了概率程序的迹密度函数的几乎处处可微性,以及蒙特卡洛推断中用于密度计算的方便基测度的存在性。在某些情况下,这些结果此前已知,但需要带有操作风格的详细证明;相比之下,我们所有的证明都直接针对程序的指称进行。

英文摘要:

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 both discrete and continuous sampling. But crucially, it is also specific enough to exclude many pathological denotations, enabling us to establish new results about both deterministic differentiable programs and probabilistic programs. In the deterministic setting, we prove very 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 with an operational flavor; by contrast, all our proofs work directly with programs' denotations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑