A Hardware-oriented Approach for Efficient Bayesian Inference Computation and Deployment

Nikola Pižurica, Matteo Risso, Nikola Milović, Alessio Burrello, Igor Jovančević +2 more
7/20/2026
cs.AI
bayesian

No confident code implementation found for this paper.

Abstract

Bayesian inference provides a principled foundation for reasoning under uncertainty, but its computational cost hinders deployment on resource-constrained edge devices. In this paper, we present a hardware-oriented methodology for accelerating discrete Bayesian inference on commercial off-the-shelf embedded GPUs.

Show full abstract

We identify that the latency of a broad class of variational message-passing algorithms is dominated by tensor contractions. Our approach restructures the memory layout of these operations using two complementary merging strategies that produce compact, regularly-shaped primitives better suited for efficient GPU execution. We then introduce optional sparse array representations and a tensor-clustering scheme to reduce the memory footprint. We instantiate the methodology and produce optimized variants of three message-passing algorithms for Hidden Markov Models (HMMs), namely variational filtering, variational message passing, and marginal message passing. Furthermore, we complement this with a machine-learning-based autotuner that automatically selects the best-performing algorithmic variant for a given generative model specification. Benchmarked on an NVIDIA Jetson Orin AGX across 770 randomly sampled realistic Partially Observable Markov Decision Process (POMDP) configurations, our implementations achieve speedups of up to 5x, with typical gains of 2-2.5x, while producing numerically identical outputs to the baseline implementations.

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{piurica2026hardwareoriented,
  title  = {A Hardware-oriented Approach for Efficient Bayesian Inference Computation and Deployment},
  author = {Nikola Pižurica and Matteo Risso and Nikola Milović and Alessio Burrello and Igor Jovančević and Conor Heins and Miguel de Prado},
  year   = {2026},
  eprint = {2607.17855},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.17855v2}
}

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

Discussion