On the Importance of the Execution Schedule for Bayesian Inference

Aug 31, 2024·
Patrick wijnings
Martin Roa Villescas
Martin Roa Villescas
,
Sander stuijk
,
Bert de vries
,
Henk corporaal
· 0 min read
Abstract
Bayesian inference is a probabilistic approach to the problem of drawing conclusions from observed data. Its main challenge is computational, which the Bayesian community tends to address through approximation techniques. However, these techniques come with their own set of challenges, including approximation errors, the difficulty of assessing these errors, and the inherited NP-hardness of the inference problem. Concurrently, in an effort to keep up with Moore’s law, the computer engineering community has developed an increasing number of programming techniques for today’s heterogeneous hardware. These techniques aim to optimize the execution schedule, which refers to the order and mapping of computations on the available execution units. In this work, we advocate for the utilization of these techniques to avoid a common pitfall known as premature approximation. Notably, these techniques have the potential to significantly enhance performance, thereby reducing the need for approximation and thus mitigating the challenges that accompany it. We first demonstrate how optimization of the storage strategy, i.e. when and where intermediate results are stored, allows for a trade-off between runtime and peak memory usage. We then investigate various techniques that aim to automatically generate efficient execution schedules. Finally, we focus on a specific, runtime-efficient execution schedule identified through design space exploration and compare its performance with that of two established solvers for probabilistic inference. The results show that our optimized implementation achieves speedups ranging from to for the UAI 2014 Promedus benchmark problems compared to the reference solvers. The ideas and methods presented in our study are examined within the framework of exact inference for discrete random variables. However, they are effectively applicable to scenarios involving continuous variables.
Publication
In ACM Transactions on Probabilistic Machine Learning
Martin Roa Villescas
Authors
Teacher & Researcher
Martin Roa Villescas holds a BSc in Electronic Engineering from the National University of Colombia and an MSc in Embedded Systems from Eindhoven University of Technology (TU/e). He worked at Philips Research as an embedded software designer from 2013 to 2018. He later returned to TU/e for his doctoral research in model-based machine learning, carried out within the PhD-Teaching Assistant trajectory combining research and teaching. Since 2023, he has been working at Fontys University of Applied Sciences in the Netherlands, where he teaches in the Information and Communication Technology program and conducts research in robotics and smart industry.