Workload-aware Materialization for Efficient Variable Elimination on Bayesian Networks
Çigdem Aslay, Martino Ciaperoni, Aristides Gionis, Michael Mathioudakis
Abstract
Bayesian networks are general, well-studied probabilistic models that capture dependencies among a set of variables. Variable Elimination is a fundamental algorithm for probabilistic inference over Bayesian networks. In this paper, we propose a novel materialization method, which can lead to significant efficiency gains when processing inference queries using the Variable Elimination algorithm. In particular, we address the problem of choosing a set of intermediate results to precompute and materialize, so as to maximize the expected efficiency gain over a given query workload. For the problem we consider, we provide an optimal polynomial-time algorithm and discuss alternative methods. We validate our technique using real-world Bayesian networks. Our experimental results confirm that a modest amount of materialization can lead to significant improvements in the running time of queries, with an average gain of 70%, and reaching up to a gain of 99%, for a uniform workload of queries. Moreover, in comparison with existing junction tree methods that also rely on materialization, our approach achieves competitive efficiency during inference using significantly lighter materialization.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on1
Related papers
- Variance Computation for Weighted Model Counting with Knowledge Compilation ApproachKengo Nakamura, Masaaki Nishino, Norihito YasudaAAAI 2026
- Learning General Latent-Variable Graphical Models with Predictive Belief PropagationBorui Wang, Geoffrey J. GordonAAAI 2020 · 1 citation
- Approximate inference of marginals using the IBIA frameworkShivani Bathla, Vinita VasudevanNeurIPS 2023
- Optimised Storage for Datalog ReasoningXinyue Zhang, Pan Hu, Yavor Nenov, Ian HorrocksAAAI 2024
- Collaborative and Confidential Junction Trees for Hybrid Bayesian NetworksRoberto Gheda, Abele Malan, Thiago S. Guzella, Carlo Lancia et al.NeurIPS 2025
