概率编程中随机记忆化与名称生成的模型:基于预层范畴上单子的范畴语义
A model of stochastic memoization and name generation in probabilistic programming: categorical semantics via monads on presheaf categories
AI总结:
本文为概率编程中的随机记忆化与名称生成提供了操作与范畴语义,通过预层范畴上的新概率单子,首次为不可数类型的常量伯努利函数构建了验证数据流变换的随机记忆化模型。
摘要:
随机记忆化是概率编程语言的一种高阶构造,在贝叶斯非参数方法中至关重要,这是一种允许我们将模型扩展至其参数化限制之外,并以优雅且规范的方式组合它们的模块化方法。随机记忆化在实践中简单且有用,但在语义上却难以捉摸,特别是在数据流变换方面。由于朴素实现诉诸于状态单子(state monad),而状态单子不具备交换性,因此尚不清楚随机记忆化是否保持数据流特性——即在保持数据流图的前提下,我们能否在不改变程序语义的情况下重排程序代码行。在本文中,我们在一个最小概率编程语言的背景下,针对一类受限函数,为随机记忆化与名称生成提供了操作语义和范畴语义。我们的贡献是针对具有不可数类型的常量伯努利函数,提出了首个随机记忆化模型,该模型验证了数据流变换,弥合了传统概率理论与高阶概率模型之间的差距。我们的模型使用了一个预层范畴及其上的一个新颖概率单子。
英文摘要:
Stochastic memoization is a higher-order construct of probabilistic programming languages that is key in Bayesian nonparametrics, a modular approach that allows us to extend models beyond their parametric limitations and compose them in an elegant and principled manner. Stochastic memoization is simple and useful in practice, but semantically elusive, particularly regarding dataflow transformations. As the naive implementation resorts to the state monad, which is not commutative, it is not clear if stochastic memoization preserves the dataflow property -- i.e., whether we can reorder the lines of a program without changing its semantics, provided the dataflow graph is preserved. In this paper, we give an operational and categorical semantics to stochastic memoization and name generation in the context of a minimal probabilistic programming language, for a restricted class of functions. Our contribution is a first model of stochastic memoization of constant Bernoulli functions with a non-enumerable type, which validates data flow transformations, bridging the gap between traditional probability theory and higher-order probability models. Our model uses a presheaf category and a novel probability monad on it.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。