A Fast Convoluted Story: Scaling Probabilistic Inference for Integer Arithmetic

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: De Smet, Lennert, Martires, Pedro Zuidberg Dos
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916441879478272
author De Smet, Lennert
Martires, Pedro Zuidberg Dos
author_facet De Smet, Lennert
Martires, Pedro Zuidberg Dos
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_12389
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A Fast Convoluted Story: Scaling Probabilistic Inference for Integer Arithmetic
De Smet, Lennert
Martires, Pedro Zuidberg Dos
Artificial Intelligence
68T37
G.3; G.3; I.2.6
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.
title A Fast Convoluted Story: Scaling Probabilistic Inference for Integer Arithmetic
topic Artificial Intelligence
68T37
G.3; G.3; I.2.6
url https://arxiv.org/abs/2410.12389