paperbot · PL 论文追踪

全部论文 待读 收藏

P1 This is the moment for probabilistic loops

概率循环的时刻已经到来
OOPSLA 6(OOPSLA2)2022匹配度 5/10 · 论文属于概率程序/概率循环的静态分析,与用户关注的程序分析和贝叶斯/概率程序分析方向有一定交集,且兼具理论形式化与实现。但它不涉及 LLM/Agent、浮点程序分析或 LLM 与程序分析的交叉,因此不是当前研究画像的核心。引用 30 inbox
Marcel Moosbrugger, Miroslav Stankovič, Ezio Bartocci, Laura Kovács
crossref: 2026-09-10

AI 速览

一句话:提出全自动静态分析,为一大类概率循环精确推导程序变量高阶矩,无需外部不变式或模板。

本文面向具有潜在不可数状态空间的一大类概率循环,提出一种新的静态分析技术,用于自动推导程序变量的高阶矩。该工作不依赖外部提供的不变式或模板,而是采用基于线性递推的代数方法;同时引入程序变换,在保持统计性质的前提下简化概率程序,并发展幂约简技术以简化多项式算术。作者还定义了可精确计算高阶矩的“矩可计算概率循环”理论。该方法可用于恢复随机变量的概率分布并计算尾部概率。实证评估在多个挑战性示例上验证了其适用性。

问题
如何为状态空间可能不可数的概率循环自动推导程序变量的高阶矩,且不依赖外部不变式或模板。
方法
结合基于线性递推的代数技术、保持统计性质的程序变换和幂约简,定义矩可计算概率循环并精确计算高阶矩。
评估
在多个挑战性概率循环示例上进行实证评估,展示方法的适用性。
原文摘要(Abstract)

We present a novel static analysis technique to derive higher moments for program variables for a large class of probabilistic loops with potentially uncountable state spaces. Our approach is fully automatic, meaning it does not rely on externally provided invariants or templates. We employ algebraic techniques based on linear recurrences and introduce program transformations to simplify probabilistic programs while preserving their statistical properties. We develop power reduction techniques to further simplify the polynomial arithmetic of probabilistic programs and define the theory of moment-computable probabilistic loops for which higher moments can precisely be computed. Our work has applications towards recovering probability distributions of random variables and computing tail probabilities. The empirical evaluation of our results demonstrates the applicability of our work on many challenging examples.

链接与引用

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

BibTeX
@article{paperbot1463,
  title = {This is the moment for probabilistic loops},
  author = {Marcel Moosbrugger and Miroslav Stankovič and Ezio Bartocci and Laura Kovács},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {6},
  number = {OOPSLA2},
  year = {2022},
  doi = {10.1145/3563341}
}