A Hardware-oriented Approach for Efficient Bayesian Inference Computation and Deployment
Nikola Pižurica, Matteo Risso, Nikola Milović, Alessio Burrello, Igor Jovančević, Conor Heins, Miguel de Prado
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. 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.
Create a lesson
Metadata
- Comments
- Corrected the affiliation of Conor Heins. No changes to the scientific content
Related papers
Cheap Memory Costs Future Compute: Co-Designing Persistent KV and GPU Execution for Efficient Streaming Video Diffusion
Shared title terminologycs.AIJian Yang, Zhizhuo Kou, Qiyuan Zhu et al.
KernelGenBench: Can LLMs and Agents Write Efficient Kernels Across Operator Sources and Hardware Platforms?
Shared title terminologycs.AIPeiyu Zang, Jian Tao, Jialing Zhang et al.
Procedure Inference as Memory: Learning Recruiter Decision Procedures from OKF-Structured Episodes in Multi-Session Hiring Assistants
Shared title terminologycs.AIPraveen Kumar Bodigutla, Yizhi Zhang, Sai Vivek Kanaparthy et al.
EgoUseBench: Benchmarking Computer-Use Agents under Evolving First-Person Contexts
Shared title terminologycs.AIYurun Chen, Biao Yi, Qihang Yu et al.
Ensuring Deployment-Time Safety of Neural Network Controlled Systems via Localized Certificate Repair
Shared title terminologycs.AIXiaoyang Lv, Peixin Wang, Jianhao Bai et al.
Improving Building Energy Efficiency with an Indoor Environmental World Model and Counterfactual Adaptive Learning
Shared title terminologycs.AIXu Yang, Kailai Sun, Dianyu Zhong et al.