Performing Incremental Bayesian Inference by Dynamic Model Counting

Wei Li, Peter van Beek, Pascal PoupartAAAI 2006

Abstract

The ability to update the structure of a Bayesian network when new data becomes available is crucial for building adaptive systems. Recent work demonstrates that the Davis-Putnam procedure combined with dynamic decomposition and caching is an effective method for exact inference in dense Bayesian networks. This paper introduces DynaMC, which extends these techniques to perform Bayesian inference incrementally as the network structure changes. By maintaining a persistent database of sub-problem solutions (components), DynaMC achieves significant speedups over state-of-the-art static solvers.

Introduction

Bayesian networks (BNs) are fundamental tools for reasoning under uncertainty. However, exact inference—calculating marginal or conditional probabilities—is NP-hard. In many real-world applications, the network structure is not static; edges may be added or removed as new information arrives.

Traditional inference methods like join trees are efficient for parameter updates but often require complete rebuilding when the structure changes. Conversely, modern model counting approaches, which translate BNs into Boolean formulas to count satisfying assignments (#SAT), are robust for complex networks but typically treat every structural update as a brand-new problem, discarding all previous computational effort.

The DynaMC Approach

DynaMC addresses this inefficiency by leveraging the similarity between a network and its updated version. The core methodology relies on Dynamic Model Counting.

  1. Weighted Model Counting (#SAT): The BN is encoded into a Conjunctive Normal Form (CNF) formula. Inference is then performed by summing the weights of all assignments that satisfy the formula.
  2. Dynamic Decomposition: As the solver searches for solutions, it dynamically breaks the large Boolean formula into smaller, independent sub-problems called "components."
The search tree and decomposition tree illustrate how DynaMC breaks down the inference problem into manageable sub-components during the search process.
  1. Component Caching and Reuse: Unlike static solvers that clear their cache between runs, DynaMC maintains a persistent database. When the network structure is updated, the algorithm identifies "stable" components—parts of the search tree unaffected by the local change—and retrieves their pre-calculated counts. This "good recording" strategy is particularly effective for counting problems, where reusing a single large component can save millions of search steps.

Experimental Evaluation

The authors evaluated DynaMC against Cachet, the state-of-the-art static model counter, using grid networks, DQMR medical databases, and standard benchmarks like the Alarm and Insurance networks.

Key Results

  • Grid Networks: On $10 \times 10$ grids, DynaMC consistently outperformed Cachet. The speedup ratio (Cachet/DynaMC) often reached 2x to 3x for runtime and over 5x for implication counts in specific deterministic settings.
  • Real-World Benchmarks: In the Alarm network, DynaMC reduced inference time from 43 seconds to 17 seconds. For the Insurance network, the time dropped from 1082 seconds to 360 seconds.
Performance comparison on 10x10 grids showing the speedup ratio of DynaMC over Cachet across varying levels of determinism.

Discussion and Future Work

The primary advantage of DynaMC is its ability to exploit local structural stability. Most sub-problems encountered during a search remain identical even after a local update to the network. However, the approach is not without overhead; querying the component database can be slower than re-solving very small components (fewer than 10 literals).

Future work will focus on optimizing cache management, such as implementing size thresholds to ensure only high-value components are stored, and developing more sophisticated hashing functions to improve the cache hit rate. These refinements will further enhance the scalability of incremental inference in massive, evolving Bayesian networks.

Summary updated

BibTeX
@inproceedings{li2006performing,
  author = {Wei Li and Peter van Beek and Pascal Poupart},
  title = {{Performing Incremental Bayesian Inference by Dynamic Model Counting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2006},
  url = {https://openreview.net/forum?id=H1-MYkWu-r},
}

Loading related content...

Figure