Approximate Inference for Infinite Contingent Bayesian Networks

Brian Milch, Bhaskara Marthi, David A. Sontag, Stuart Russell, Daniel L. Ong, Andrey Kolobov

Introduction

Standard Bayesian Networks (BNs) are a cornerstone of probabilistic modeling, yet they are fundamentally limited by the requirement of a fixed, finite set of variables and a directed acyclic graph (DAG) structure. Many real-world domains—such as tracking an unknown number of objects or resolving citations in a large database—defy these constraints. In these scenarios, the number of entities is often unknown and potentially infinite, and dependencies between variables are frequently context-specific.

This paper introduces Contingent Bayesian Networks (CBNs), a formal framework designed to handle infinite sets of variables and cyclic dependencies. By labeling edges with activation conditions, CBNs allow for models that are globally complex or cyclic but locally finite and acyclic for any specific realization.

The Formalism: Contingent Bayesian Networks

The authors propose two layers of modeling to address these challenges. First, Partition-Based Models (PBMs) provide a high-level abstraction where a variable’s conditional probability distribution (CPD) is determined by a partition of the possible outcomes of its potential parents.

Building on this, Contingent Bayesian Networks (CBNs) offer a concrete implementation. In a CBN, an edge from node $A$ to node $B$ is "active" only if a specific condition on $A$ (or other variables) is met. This mechanism allows the network to represent Context-Specific Independence (CSI). For example, an observation of a ball's color depends on the true color of a specific ball in an urn only if that specific ball was the one actually drawn.

Well-Definedness Criteria

To ensure that an infinite or cyclic CBN defines a unique joint probability distribution, the authors establish three structural conditions:

  1. No Consistent Cycles: There must be no cycle in the graph where all edges can be active simultaneously for any single outcome.
  2. No Infinite Receding Chains: There can be no infinite sequence of nodes where each node is an active parent of the next.
  3. Finite Active Parents: For any given outcome, no node can have an infinite number of active parents.

Inference via Lazy Likelihood Weighting

Traditional inference algorithms like standard likelihood weighting require a topological ordering of all variables, which is impossible in an infinite model. To overcome this, the authors present a "lazy" likelihood weighting algorithm.

Instead of sampling every variable, the algorithm uses a stack-based approach to sample only the variables that are "active" and relevant to the current query and evidence. By following only active edges, the algorithm effectively ignores the infinite "background" of the model, ensuring that inference completes in finite time.

Illustrative Scenarios

The paper demonstrates the utility of CBNs through stylized generative models that highlight the limitations of standard BNs.

The Balls-and-Urn Problem

In this scenario, an urn contains an unknown number of balls $N$. We perform $K$ draws, observing the color of each drawn ball with some sensor noise. The goal is to estimate $N$ or determine the identity of the balls drawn.

Figure 1: A plate representation of the Balls-and-Urn problem, where the number of balls $N$ is unknown and the observed color $ObsColor_k$ depends on which ball $n$ was drawn.

As shown in Figure 1, the dependency of $ObsColor_k$ on $TrueColor_n$ is contingent on the value of $BallDrawn_k$. In a standard BN, $ObsColor_k$ would require an infinite number of parents (one for every possible ball), but in a CBN, it only has one active parent for any given draw.

The Hurricane Scenario

This example illustrates how contingency can resolve apparent cycles. Consider two cities, A and B. The level of preparation in City A might depend on the observed damage in City B, and vice versa, depending on which city the hurricane hits first.

Figure 2: A contingent model of hurricane damage and preparation. The dependencies between preparation ($P$) and damage ($D$) in cities A and B are active only depending on the hurricane's path ($F$).

In Figure 2, the edges are labeled with conditions (e.g., $F=B$). While the graph appears to have a cycle ($P_A \to D_A \to P_B \to D_B \to P_A$), the conditions ensure that for any value of $F$, the active edges form a DAG, making the model well-defined.

Key Results and Discussion

The primary contribution of this work is the rigorous proof that contingent, infinite models—later popularized in probabilistic programming languages like BLOG—are mathematically sound.

Experimental results on the balls-and-urn problem confirmed that the lazy likelihood weighting algorithm successfully converges to the true posterior distribution. Interestingly, the authors found that sensor noise actually improved convergence speed. In noiseless scenarios, many samples were discarded due to zero weights (impossible outcomes), whereas noise allowed the sampler to explore the state space more effectively.

While the "lazy" approach makes inference possible, likelihood weighting can be inefficient in high-dimensional spaces. Future work points toward more advanced MCMC techniques and automated structural verification to ensure large-scale models remain well-defined.

Summary updated

BibTeX
@inproceedings{milch2005approximate,
  author = {Brian Milch and Bhaskara Marthi and David A. Sontag and Stuart Russell and Daniel L. Ong and Andrey Kolobov},
  title = {{Approximate Inference for Infinite Contingent Bayesian Networks}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2005},
}
Figure