A Fast Convoluted Story: Scaling Probabilistic Inference for Integer Arithmetic

Lennert De Smet, Pedro Zuidberg Dos Martires
10/1/2024

No confident code implementation found for this paper.

Abstract

As illustrated by the success of integer linear programming, linear integer arithmetic is a powerful tool for modelling combinatorial problems. Furthermore, the probabilistic extension of linear programming has been used to formulate problems in neurosymbolic AI.

Show full abstract

However, two key problems persist that prevent the adoption of neurosymbolic techniques beyond toy problems. First, probabilistic inference is inherently hard, #P-hard to be precise. Second, the discrete nature of integers renders the construction of meaningful gradients challenging, which is problematic for learning. In order to mitigate these issues, we formulate linear arithmetic over integer-valued random variables as tensor manipulations that can be implemented in a straightforward fashion using modern deep learning libraries. At the core of our formulation lies the observation that the addition of two integer-valued random variables can be performed by adapting the fast Fourier transform to probabilities in the log-domain. By relying on tensor operations we obtain a differentiable data structure, which unlocks, virtually for free, gradient-based learning. In our experimental validation we show that tensorising probabilistic linear integer arithmetic and leveraging the fast Fourier transform allows us to push the state of the art by several orders of magnitude in terms of inference and learning times.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{smet2024fast,
  title  = {A Fast Convoluted Story: Scaling Probabilistic Inference for Integer Arithmetic},
  author = {Lennert De Smet and Pedro Zuidberg Dos Martires},
  year   = {2024},
  eprint = {2410.12389},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.12389},
  url    = {https://arxiv.org/abs/2410.12389},
  journal = {NEURIPS 2024 2024}
}

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/2410.12389.svg)](https://codeofpaper.com/paper/2410.12389)

Discussion