paperbot · PL 论文追踪

全部论文 待读 收藏

P2 State Space Estimation for DPOR-Based Model Checkers

面向基于 DPOR 的模型检测器的状态空间估计
PLDI 10(PLDI)2026匹配度 2/10 · 论文属于并发程序模型检测与状态空间估计,与形式化验证/程序分析相邻,但完全未涉及 LLM/Agent、浮点程序分析或贝叶斯程序分析,不属于用户核心关注的 PL 与 AI 交叉方向。引用 0 inbox
A. R. Balasubramanian, Mohammad Hossein Khoshechin Jorshari, Rupak Majumdar, Umang Mathur, Minjian Zhang
crossref: 2026-09-10

AI 速览

一句话:提出首个可证明多项式时间无偏估计 Mazurkiewicz 迹数量的 Monte Carlo 方法,用于 DPOR 模型检测的状态空间与开销估计。

本文研究并发程序有界状态空间估计:估计交错产生的最大 Mazurkiewicz 迹等价类数,以预测枚举式模型检测运行时长并衡量覆盖率。作者证明该计数即使对受限程序也 #P-hard,且除非 P=NP,多项式时间无法亚指数因子近似。为此提出 Monte Carlo 无偏估计:将无状态最优 DPOR 探索视为有界深度/宽度的树,叶子为最大 Mazurkiewicz 迹,用 Knuth 估计器得到无偏估计,并保持每层少量部分路径种群耦合演化以控制方差。在 JMC 中实现,共享内存基准上数百次试验即可在约 20% 误差内稳定估计 10^5–10^6 个类的状态空间,也可估计检测开销。这是首个可证明多项式时间的 Mazurkiewicz 迹计数无偏估计器。

问题
如何估计并发程序在 DPOR 模型检测中最大 Mazurkiewicz 迹等价类数量及搜索开销,以预测运行时间与覆盖率。
方法
证明计数复杂性后,将无状态最优 DPOR 探索建模为有界树,结合 Knuth 估计器与随机枚举/耦合种群控制方差,构造多项式时间无偏估计器。
评估
在 JMC 模型检测器上对共享内存基准进行实验,数百次试验内对 10^5–10^6 个类的状态空间给出约 20% 误差内的稳定估计,并展示开销估计能力。
原文摘要(Abstract)

We study the estimation problem for concurrent programs: given a bounded program P , estimate the number of maximal Mazurkiewicz trace–equivalence classes induced by its interleavings. This quantity informs two practical questions for enumeration-based model checking: how long a model checking run is likely to take, and what fraction of the search space has been covered so far. We first show the counting problem is #P-hard even for restricted programs and, unless P = NP, inapproximable within any subexponential factor in polynomial time. Thus, we cannot expect efficient exact or randomized approximation algorithms. We give a Monte Carlo approach to find a polynomial-time unbiased estimator: we convert a stateless optimal DPOR algorithm into an unbiased estimator by viewing its exploration as a bounded-depth, bounded-width, tree whose leaves are the maximal Mazurkiewicz traces. A classical estimator by Knuth, when run on this tree, gives an unbiased estimation. In order to control the variance of the estimation, we apply stochastic enumeration by maintaining a small population of partial paths per depth whose evolution is coupled. We have implemented our estimator in the JMC model checker and evaluated it on shared-memory benchmarks. We find that with modest budgets, our estimator yields stable estimates—typically within a 20% band—within a few hundred trials, even when the state space has 10 5 –10 6 classes. We also show how the same machinery estimates model-checking cost by weighting all explored traces, not only the maximal ones. Our algorithms provide the first provable poly-time unbiased estimators for counting Mazurkiewicz traces.

链接与引用

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

BibTeX
@article{abs-2512-23996,
  title = {State Space Estimation for DPOR-Based Model Checkers},
  author = {A. R. Balasubramanian and Mohammad Hossein Khoshechin Jorshari and Rupak Majumdar and Umang Mathur and Minjian Zhang},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {10},
  number = {PLDI},
  year = {2026},
  doi = {10.1145/3808291}
}