paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Semi-symbolic inference for efficient streaming probabilistic programming

面向高效流式概率编程的半符号推断
OOPSLA 6(OOPSLA2)2022匹配度 4/10 · 论文研究概率编程语言的流式推断与半符号 RBPF,属于贝叶斯/概率编程系统方向,但未涉及 LLM、Agentic 程序、静态分析或浮点分析,与用户当前 PL 与 LLM 交叉的核心主线匹配度较低。引用 11 inbox
Eric Atkinson, Charles Yuan, Guillaume Baudart, Louis Mandel, Michael Carbin
crossref: 2026-09-10

AI 速览

一句话:提出半符号推断,使运行时自动实现 Rao-Blackwellized 粒子滤波,精确优先、必要时采样。

流式概率程序接收观测流并产生条件分布流,高效推断通常依赖 Rao-Blackwellized 粒子滤波(RBPF),但手工实现困难。本文提出半符号推断,使运行时推断系统自动实现 RBPF:系统操作符号分布,在可能时执行精确推断,在必要时退化为近似采样。为保证精确性,作者识别线性高斯、有限离散等闭族分布,并证明其上的推断精确。该方法实现在 ProbZelus 流式概率编程语言中。评估显示,在已有基准上相对最佳系统平均慢 1.6 倍,但在为利用闭族而设计的新挑战基准上获得 3×–87× 加速。

问题
流式概率程序的高效推断通常需要手工实现 RBPF;目标是自动从概率程序生成这种高效推断实现。
方法
提出半符号推断,运行时操纵符号分布进行精确推断,必要时回退到近似采样,并在线性高斯与有限离散等闭族上保证精确。
评估
在 ProbZelus 中实现该方法;已有基准上平均慢 1.6×,新设计的闭族挑战基准上获得 3×–87× 加速。
原文摘要(Abstract)

A streaming probabilistic program receives a stream of observations and produces a stream of distributions that are conditioned on these observations. Efficient inference is often possible in a streaming context using Rao-Blackwellized particle filters (RBPFs), which exactly solve inference problems when possible and fall back on sampling approximations when necessary. While RBPFs can be implemented by hand to provide efficient inference, the goal of streaming probabilistic programming is to automatically generate such efficient inference implementations given input probabilistic programs. In this work, we propose semi-symbolic inference, a technique for executing probabilistic programs using a runtime inference system that automatically implements Rao-Blackwellized particle filtering. To perform exact and approximate inference together, the semi-symbolic inference system manipulates symbolic distributions to perform exact inference when possible and falls back on approximate sampling when necessary. This approach enables the system to implement the same RBPF a developer would write by hand. To ensure this, we identify closed families of distributions – such as linear-Gaussian and finite discrete models – on which the inference system guarantees exact inference. We have implemented the runtime inference system in the ProbZelus streaming probabilistic programming language. Despite an average 1.6× slowdown compared to the state of the art on existing benchmarks, our evaluation shows that speedups of 3×-87× are obtainable on a new set of challenging benchmarks we have designed to exploit closed families.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot1429,
  title = {Semi-symbolic inference for efficient streaming probabilistic programming},
  author = {Eric Atkinson and Charles Yuan and Guillaume Baudart and Louis Mandel and Michael Carbin},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {6},
  number = {OOPSLA2},
  year = {2022},
  doi = {10.1145/3563347}
}