Papers › SPPL: Probabilistic Programming with Fast Exact Symbolic Inference

SPPL: Probabilistic Programming with Fast Exact Symbolic Inference

7 Oct 2020arXiv:2010.03485archive 2025-07-28

Feras A. Saad, Martin C. Rinard, Vikash K. Mansinghka

We present the Sum-Product Probabilistic Language (SPPL), a new probabilistic programming language that automatically delivers exact solutions to a broad range of probabilistic inference queries. SPPL translates probabilistic programs into sum-product expressions, a new symbolic representation and associated semantic domain that extends standard sum-product networks to support mixed-type distributions, numeric transformations, logical formulas, and pointwise and set-valued constraints. We formalize SPPL via a novel translation strategy from probabilistic programs to sum-product expressions and give sound exact algorithms for conditioning on and computing probabilities of events. SPPL imposes a collection of restrictions on probabilistic programs to ensure they can be translated into sum-product expressions, which allow the system to leverage new techniques for improving the scalability of translation and inference by automatically exploiting probabilistic structure. We implement a prototype of SPPL with a modular architecture and evaluate it on benchmarks the system targets, showing that it obtains up to 3500x speedups over state-of-the-art symbolic systems on tasks such as verifying the fairness of decision tree classifiers, smoothing hidden Markov models, conditioning transformed random variables, and computing rare event probabilities.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2010.03485")

Code

Syntology Ran 0 of 30 code samples harvested from 1 repository linked to this paper; 30 have no recorded run.

By repository: official repository: 30 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

probcomp/sppl officialmentioned in papermentioned on GitHubApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

30 samples harvested; 0 ran; 0 honoured the contract we drafted; 30 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

30unverified

Licence: 0 of the 30 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from probcomp/sppl. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Range probcomp/sppl/src/sets.py official repository unverified Apache-2.0 (permissive) · baee0e05ad0248df · report
RealsPosLoc probcomp/sppl/src/distributions.py official repository unverified Apache-2.0 (permissive) · 6e0ee20904acfa0f · report
UnitIntervalLocScale probcomp/sppl/src/distributions.py official repository unverified Apache-2.0 (permissive) · 688b62b496fcee46 · report
dnf_factor probcomp/sppl/src/dnf.py official repository unverified Apache-2.0 (permissive) · ee26be05f878892c · report
dnf_non_disjoint_clauses probcomp/sppl/src/dnf.py official repository unverified Apache-2.0 (permissive) · 527f747272f3070d · report
dnf_normalize probcomp/sppl/src/dnf.py official repository unverified Apache-2.0 (permissive) · 42f22ba89a518b3d · report
get_intersection probcomp/sppl/src/sym_util.py official repository unverified Apache-2.0 (permissive) · 91c2d76dc04929cc · report
get_piecewise_domains probcomp/sppl/src/transforms.py official repository unverified Apache-2.0 (permissive) · ab9b4ef49d2c921f · report
get_piecewise_inverse probcomp/sppl/src/transforms.py official repository unverified Apache-2.0 (permissive) · 54d900c269fd0a1f · report
get_piecewise_symbol probcomp/sppl/src/transforms.py official repository unverified Apache-2.0 (permissive) · b91a9c114c711463 · report
get_poly_symbol probcomp/sppl/src/poly.py official repository unverified Apache-2.0 (permissive) · ae73ee797e75376a · report
get_symbols probcomp/sppl/src/sym_util.py official repository unverified Apache-2.0 (permissive) · 9dd736346426c7cd · report
get_union probcomp/sppl/src/sym_util.py official repository unverified Apache-2.0 (permissive) · 72e9099e7c74f264 · report
log1mexp probcomp/sppl/src/math_util.py official repository unverified Apache-2.0 (permissive) · 27e10e42bf839bd7 · report
logdiffexp probcomp/sppl/src/math_util.py official repository unverified Apache-2.0 (permissive) · fc9d969f9e98c935 · report
lognorm probcomp/sppl/src/math_util.py official repository unverified Apache-2.0 (permissive) · bde1a9f8774489ac · report
memoize probcomp/sppl/src/spe.py official repository unverified Apache-2.0 (permissive) · c085361f73a1d372 · report
render_nested_lists probcomp/sppl/src/render.py official repository unverified Apache-2.0 (permissive) · 48560768848f1e6a · report
render_nested_lists_concise probcomp/sppl/src/render.py official repository unverified Apache-2.0 (permissive) · 2182f8250a46727d · report
render_sppl probcomp/sppl/src/compilers/spe_to_sppl.py official repository unverified Apache-2.0 (permissive) · 9c6d19e41ad6893a · report
render_sppl_helper probcomp/sppl/src/compilers/spe_to_sppl.py official repository unverified Apache-2.0 (permissive) · 35b4a90daadad6d0 · report
solve_poly_inequality probcomp/sppl/src/poly.py official repository unverified Apache-2.0 (permissive) · 8ac65d5e54f33db5 · report
solve_poly_inequality_symbolically probcomp/sppl/src/poly.py official repository unverified Apache-2.0 (permissive) · 64354224227a0e40 · report
spe_simplify_sum probcomp/sppl/src/spe.py official repository unverified Apache-2.0 (permissive) · 09c3217e8f9121da · report
spe_simplify_sum_leaf probcomp/sppl/src/spe.py official repository unverified Apache-2.0 (permissive) · 36e896e20603b0c2 · report
to_numeric probcomp/sppl/src/distributions.py official repository unverified Apache-2.0 (permissive) · 0ce4881dcb327b6e · report
union_intervals probcomp/sppl/src/sets.py official repository unverified Apache-2.0 (permissive) · a783434f7d3fbd30 · report
union_intervals_finite probcomp/sppl/src/sets.py official repository unverified Apache-2.0 (permissive) · 0dc0dfe76884c4bc · report
unroll_if probcomp/sppl/src/compilers/sppl_to_python.py official repository unverified Apache-2.0 (permissive) · d208d8d7f2b1fd99 · report
unroll_ifexp probcomp/sppl/src/compilers/sppl_to_python.py official repository unverified Apache-2.0 (permissive) · 19622879d1647b7f · report

Tasks

FairnessProbabilistic ProgrammingTranslation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections