面向概率编程的确定性流采样:语义与验证
Deterministic stream-sampling for probabilistic programming: semantics and verification
AI总结:
本文提出以采样器为核心的高阶概率编程语言及其连续映射语义,并通过类型系统处理不连续操作,进而给出采样器等价推理与正确性证明的形式化演算。
摘要:
概率编程语言从根本上依赖于某种采样概念,对于使用 Monte Carlo 技术执行 Bayesian 推断的概率编程语言而言更是如此。验证采样器——证明它们能从正确的分布生成样本——对于将概率编程语言用于统计建模和推断至关重要。然而,概率程序的典型指称语义与确定性采样概念并不兼容。鉴于大多数统计推断都是使用伪随机数生成器执行的,这一问题尤为突出。我们提出了一种以采样器和采样器操作为核心概念的高阶概率编程语言。我们以拓扑空间之间的连续映射为依据,为该语言给出了操作语义和指称语义。该语言还通过使用类型系统跟踪不连续性,支持不连续操作,例如实数之间的比较。这一特性可能具有独立价值,例如在可微编程语境中。利用该语言,我们开发了用于形式化验证采样器正确性的工具。我们提出了一种用于推理采样器等价性的等式演算,以及一种用于证明采样器语义正确性的可靠演算,即证明采样器在构造上能够正确地以给定测度为目标。
英文摘要:
Probabilistic programming languages rely fundamentally on some notion of sampling, and this is doubly true for probabilistic programming languages which perform Bayesian inference using Monte Carlo techniques. Verifying samplers - proving that they generate samples from the correct distribution - is crucial to the use of probabilistic programming languages for statistical modelling and inference. However, the typical denotational semantics of probabilistic programs is incompatible with deterministic notions of sampling. This is problematic, considering that most statistical inference is performed using pseudorandom number generators. We present a higher-order probabilistic programming language centred on the notion of samplers and sampler operations. We give this language an operational and denotational semantics in terms of continuous maps between topological spaces. Our language also supports discontinuous operations, such as comparisons between reals, by using the type system to track discontinuities. This feature might be of independent interest, for example in the context of differentiable programming. Using this language, we develop tools for the formal verification of sampler correctness. We present an equational calculus to reason about equivalence of samplers, and a sound calculus to prove semantic correctness of samplers, i.e. that a sampler correctly targets a given measure by construction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。