NeFut Logo NeFut
Admin Login

[CS.AI] Hardware-Oriented Efficient Bayesian Inference Methodology

Published at: 2026-07-22 22:00 Last updated: 2026-07-23 12:33
#algorithm #Machine Learning #optimization

Bayesian inference provides a principled foundation for reasoning under uncertainty, but its computational cost hinders deployment on resource-constrained edge devices. This paper presents a hardware-oriented methodology for accelerating discrete Bayesian inference on commercial off-the-shelf embedded GPUs. 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.

Blogger's Review: This paper significantly enhances the efficiency of Bayesian inference on embedded devices through hardware optimization techniques, particularly the innovations in GPU execution are noteworthy. The use of sparse arrays and tensor clustering strategies not only reduces memory usage but also supports algorithmic flexibility, which is crucial for practical applications. It will be interesting to see if future research expands to more types of models and algorithms.

Original Source: https://arxiv.org/abs/2607.17855

[h] Back to Home