Mean Field Variational Approximation for Continuous-Time Bayesian Networks

Ido Cohn, Tal El-Hay, Nir Friedman, Raz KupfermanUAI 2009

Introduction

Continuous-Time Bayesian Networks (CTBNs) are powerful tools for modeling stochastic processes that evolve continuously, such as server cluster dynamics or DNA sequence evolution. By exploiting sparse interactions between components, CTBNs offer a compact representation of complex systems. However, performing inference in these models remains a significant challenge. As the number of components grows, the state space expands exponentially, making exact inference computationally intractable. Existing approximate methods, such as Gibbs sampling or Expectation Propagation, often suffer from slow convergence or lack theoretical guarantees. This paper presents a mean field variational approach that provides a fast, numerically stable, and theoretically grounded alternative.

Methodology

The proposed method leverages the Variational Principle to approximate the complex, coupled posterior distribution of a CTBN. The core innovation lies in three key areas:

  1. Factored Inhomogeneous Approximation: The authors approximate the posterior as a product of independent, time-varying (inhomogeneous) Markov processes. Unlike previous piecewise-constant models, this inhomogeneous representation naturally captures the continuous changes in transition rates influenced by evidence at specific time points.
  2. Marginal Density Representation: To ensure numerical stability, the process is represented using marginal probabilities ($\mu$) and transition densities ($\gamma$) rather than raw transition rates. This avoids singularities where rates might otherwise approach infinity near observed evidence.
  3. Fixed-Point ODE Solvers: The inference problem is transformed into a system of coupled Ordinary Differential Equations (ODEs) derived from Euler-Lagrange equations. These are solved iteratively in a "round-robin" fashion, allowing the use of optimized numerical solvers like Runge-Kutta.

Key Results

The effectiveness of the Mean Field approach was evaluated using synthetic Ising chains and real-world RNA evolution data.

Computational Efficiency

A primary advantage of the variational method is its scalability. While exact inference costs grow exponentially with the number of components, the Mean Field approach scales linearly.

Computational scaling of the Mean Field approach compared to exact inference.

As shown in the figure above, the run time for the Mean Field method remains manageable even as the number of components increases to 40, whereas exact inference becomes impractical beyond a very small number of components.

Accuracy and Likelihood

The method provides a provable lower bound on the likelihood (the Evidence Lower Bound, or ELBO). Experiments on Ising chains demonstrate that the approximation closely tracks the exact log-likelihood across various parameter regimes ($\beta$ and $\tau$).

Comparison of log-likelihood (Log P(e)) between exact and Mean Field methods across different parameters.

The results indicate that the Mean Field approximation is particularly effective when evidence is strong, as seen in phylogenetic tree models where leaf evidence stabilizes the variational paths.

Discussion and Limitations

While the Mean Field approach offers significant speedups and global consistency, it is not without limitations. Like other mean-field methods, it can become trapped in local optima, particularly in multi-modal posterior distributions. Furthermore, the independence assumption prevents the model from capturing correlations between components in the posterior.

Future work aims to use this variational approximation as a "warm start" for Gibbs samplers, combining the initial speed of the mean field method with the asymptotic unbiasedness of sampling. This hybrid approach could be pivotal for large-scale biological parameter learning.

Summary updated

BibTeX
@inproceedings{cohn2009mean,
  author = {Ido Cohn and Tal El-Hay and Nir Friedman and Raz Kupferman},
  title = {{Mean Field Variational Approximation for Continuous-Time Bayesian Networks}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2009},
}
Figure