Scaling Integer Arithmetic in Probabilistic Programs

William X. Cao, Poorva Garg, Ryan Tjoa, Steven Holtzen, Todd Millstein +1 more
7/25/2023
cs.AIcs.PL

No official code found. Best implementation: Tractables/Alea.jl (33 stars, Apache-2.0, last commit 2025-11-08).

Abstract

Distributions on integers are ubiquitous in probabilistic modeling but remain challenging for many of today's probabilistic programming languages (PPLs). The core challenge comes from discrete structure: many of today's PPL inference strategies rely on enumeration, sampling, or differentiation in order to scale, which fail for high-dimensional complex discrete distributions involving integers. Our insight is that there is structure in arithmetic that these approaches are not using. We present a binary encoding strategy for discrete distributions that exploits the rich logical structure of integer operations like summation and comparison. We leverage this structured encoding with knowledge compilation to perform exact probabilistic inference, and show that this approach scales to much larger integer distributions with arithmetic.

View on arXivView PDF

Code Implementations(1)

Tractables/Alea.jlCommunity100%
Apache-2.0
3310Julia, PythonMay 20, 202111 months agoApache-2.0

Similar Papers

Cite this paper

@article{cao2023scaling,
  title  = {Scaling Integer Arithmetic in Probabilistic Programs},
  author = {William X. Cao and Poorva Garg and Ryan Tjoa and Steven Holtzen and Todd Millstein and Guy Van den Broeck},
  year   = {2023},
  eprint = {2307.13837},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.13837v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.13837.svg)](https://codeofpaper.com/paper/2307.13837)

Discussion