A Fast Convoluted Story: Scaling Probabilistic Inference for Integer Arithmetic
Not on the map. Why?
Abstract (arXiv)
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. 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.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 9 of its 36 references that are in the map. First posted on arXiv 16 Oct 2024.
Builds on
9 of 36 references.
References · 9
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2019Neural Probabilistic Logic Programming in DeepProbLogcited by 394
- 2020Einsum Networks: Fast and Scalable Learning of Tractable Probabilistic Circuitscited by 103
- 2022A-NeSI: A Scalable Approximate Method for Probabilistic Neurosymbolic Inferencecited by 50
- 2023FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Corescited by 33
- 2023Neural Probabilistic Logic Programming in Discrete-Continuous Domainscited by 25
- 2023Scaling Integer Arithmetic in Probabilistic Programscited by 6
- 2023Top-Down Knowledge Compilation for Counting Modulo Theoriescited by 2
- 2024Canonical Decision Diagrams Modulo Theoriescited by 2
Built on by
Citing papers per year: 2025: 3.
3 papers.
- 2025Neurosymbolic Diffusion Models19 May 2025
- 2025CTSketch: Compositional Tensor Sketching for Scalable Neurosymbolic Learning31 Mar 2025
- 2025A Probabilistic Neuro-symbolic Layer for Algebraic Constraint Satisfaction25 Mar 2025