核心概念
The authors present a new method for static equivalence and similarity refutation analyses of probabilistic program pairs. The method is fully automated, applicable to infinite-state probabilistic programs, and provides formal guarantees on the correctness of its results.
摘要
The paper presents a new method for static analysis of equivalence and similarity of output distributions defined by pairs of probabilistic programs. The key aspects of the method are:
Equivalence Refutation:
- The method searches for a function f over program outputs whose expected value differs between the two programs.
- It computes an upper expectation supermartingale (UESM) for f in the first program and a lower expectation submartingale (LESM) for f in the second program.
- The UESM, LESM, and function f together provide a formal certificate that the output distributions of the two programs are not equivalent.
Similarity Refutation:
- The method extends the above approach to also refute similarity of output distributions, by requiring the function f to be 1-Lipschitz continuous.
- This allows the method to compute a lower bound on the Kantorovich distance between the output distributions.
The authors present fully automated algorithms for both equivalence and similarity refutation, based on the above proof rules. The algorithms simultaneously compute the function f, the UESM, and the LESM via a constraint solving-based approach. The method is applicable to numerical probabilistic programs with polynomial arithmetic expressions and both discrete and continuous sampling.
The experimental evaluation demonstrates the ability of the method to refute equivalence and compute lower bounds on Kantorovich distance for a variety of program pairs.
統計資料
The output distributions of the two programs in Figure 1 differ by at least 999.5 in Kantorovich distance.