Building on ideas from probabilistic programming, we introduce the concept of an expectation programming framework (EPF) that automates the calculation of expectations. Analogous to a probabilistic program, an expectation program is comprised of a mix of probabilistic constructs and deterministic calculations that define a conditional distribution over its variables. However, the focus of the inference engine in an EPF is to directly estimate the resulting expectation of the program return values, rather than approximate the conditional distribution itself. This distinction allows us to achieve substantial performance improvements over the standard probabilistic programming pipeline by tailoring the inference to the precise expectation we care about. We realize a particular instantiation of our EPF concept by extending the probabilistic programming language Turing to allow so-called target-aware inference to be run automatically, and show that this leads to significant empirical gains compared to conventional posterior-based inference.
翻译:基于概率性方案规划的构想,我们引入了预期性方案规划框架(EPF)的概念,将预期性方案规划的计算自动化。对概率性方案来说,预期性方案是由概率性构思和确定性计算相结合的组合构成的,它界定了对其变量的有条件分布。然而,在EPF中,推论引擎的重点是直接估计对方案回报值的预期值,而不是接近有条件分布本身。这种区分使我们能够通过根据我们所关心的准确期望调整推论,大大改进标准性能性能性方案编程管道。我们通过扩展概率性方案编制语言图图,使所谓的目标认知推论能够自动运行,从而实现我们EPF概念的特别即时化,并表明这与传统的事后推论相比,可以带来重大的经验收益。