paper

Exact Inference Without Positivity: Certifying Signed Fixed Points for Probabilistic Loops

arXiv:2612.02006

Abstract

We present a method for exact posterior inference for discrete probabilistic programs with unbounded loops. Existing occupation-invariant approaches must establish positivity: all coefficients of a rational candidate's power-series expansion are nonnegative. Deciding this property subsumes the longstanding Positivity Problem for linear recurrence sequences, whose decidability remains open; implementations therefore resort to incomplete heuristics. We instead extend occupation-measure semantics to signed power series of finite total variation, i.e., with absolutely summable coefficients. We prove that a fixed point in this space exists precisely when the loop terminates with finite expected runtime, and that all such fixed points--nonnegative or not--agree on exit states, where they yield the exact posterior measure. For rational candidates, finite total variation is certified by a decidable zero-freeness test on the reduced denominator over the closed unit polydisc. This yields a sound and relatively complete proof rule for exact posterior inference via rational candidates. Experiments on benchmarks from the literature show that our method certifies exact posteriors beyond the reach of the positivity-based baseline--including programs that admit no nonnegative rational fixed point.

arXiv comment40 pages