ADEV:概率规划期望值的可靠自动微分
ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programs
摘要:
优化概率过程的期望值是计算机科学及其应用中的一个中心问题,出现在从人工智能到运筹学到统计计算的各个领域。不幸的是,为确定性程序开发的自动微分技术通常不计算基于梯度优化的广泛使用的解决方案所需的正确梯度。在本文中,我们提出了ADEV,一个扩展的前向模式AD,正确区分的概率过程表示为程序,使随机选择的期望。我们的算法是一个源到源程序转换的表达,高阶语言的概率计算,离散和连续的概率分布。我们的转换的结果是一个新的概率程序,其预期的回报值是原始程序的期望值的导数。可以运行该输出程序以生成所需梯度的无偏蒙特卡罗估计,然后可以在随机梯度下降的内部循环中使用该估计。我们证明ADEV正确的源和目标概率程序的表示使用逻辑关系。因为它模块化地扩展了前向模式AD,所以我们的算法适合于一个简洁的实现策略,我们利用它在Haskell的几十行中开发了一个原型(https://github.com/probcomp/adev)。
英文摘要:
Optimizing the expected values of probabilistic processes is a central problem in computer science and its applications, arising in fields ranging from artificial intelligence to operations research to statistical computing. Unfortunately, automatic differentiation techniques developed for deterministic programs do not in general compute the correct gradients needed for widely used solutions based on gradient-based optimization. In this paper, we present ADEV, an extension to forward-mode AD that correctly differentiates the expectations of probabilistic processes represented as programs that make random choices. Our algorithm is a source-to-source program transformation on an expressive, higher-order language for probabilistic computation, with both discrete and continuous probability distributions. The result of our transformation is a new probabilistic program, whose expected return value is the derivative of the original program's expectation. This output program can be run to generate unbiased Monte Carlo estimates of the desired gradient, which can then be used within the inner loop of stochastic gradient descent. We prove ADEV correct using logical relations over the denotations of the source and target probabilistic programs. Because it modularly extends forward-mode AD, our algorithm lends itself to a concise implementation strategy, which we exploit to develop a prototype in just a few dozen lines of Haskell (https://github.com/probcomp/adev).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。