Approximate Learning of Dynamic Models

Xavier Boyen, Daphne KollerNeurIPS 1998

Learning the underlying "rules" of a system that changes over time—such as temporal models or Dynamic Bayesian Networks (DBNs)—is computationally brutal. Standard tools like Hidden Markov Models (HMMs) work well for simple systems, but as more variables are added, the number of possible states grows exponentially. This phenomenon is known as the "curse of dimensionality."

To learn these models from data, researchers typically rely on the Expectation-Maximization (EM) algorithm. EM requires an "inference" step to fill in missing information about the system's state at every point in time. However, in a complex DBN, exact inference is often impossible because the required data structures become too large to fit in memory. Furthermore, standard EM is an "offline" process: it requires the entire sequence of data before it can start learning, making it impractical for real-time applications.

This paper introduces a method to learn the parameters of complex dynamic systems using approximate inference within the EM framework. By utilizing a factored representation of the system's state, the authors achieve massive speedups over exact methods with negligible loss in accuracy, while providing theoretical guarantees that errors will not explode over time.

Methods and Core Innovations

The authors build upon the Boyen-Koller (BK) algorithm, an approximate inference technique that keeps the state representation compact by assuming certain groups of variables are independent (factoring the belief state).

The key technical contributions include:

  1. Approximate Forward-Backward Pass: The authors extend the BK algorithm—originally designed for forward monitoring—to handle the backward propagation of information required by the EM algorithm.
  2. Error Bounds: They prove that the errors introduced by these approximations remain bounded. Using a metric called projective distance, they show that the stochastic nature of the system actually helps "wash away" approximation errors over time, a property known as contraction.
  3. Online EM: They propose an online version of the algorithm that uses a small "lookahead" window. Instead of waiting for the end of a sequence to calculate backward messages, looking just a few steps into the future is sufficient for high-quality learning.

Experimental Setup: The BAT Network

The authors evaluated their approach using the BAT (Bayesian Automated Taxi) network, a well-known DBN used for traffic monitoring.

The Bayesian Automated Taxi (BAT) network, illustrating the factored state representation (dotted boxes) across time slices.

They conducted two main types of experiments:

  • Batch Experiments: Used a sequence of 1,000 time slices for training and 50 for testing.
  • Online Experiments: Used a single long sequence of 40,000 time slices to test real-time convergence.

Key Insights

  • The Power of Factoring: Tracking every possible correlation between variables is unnecessary. By grouping variables into independent clusters (e.g., a "5+5" split for 10 variables), an exponential problem can be reduced to a linear one.
  • Contraction is Your Friend: Because dynamic systems have inherent "noise" or stochasticity, the exact influence of an old approximation error diminishes exponentially as you move forward (or backward) in time. This prevents the error from growing infinitely.
  • The Future is Short-Lived: For online learning, a "lookahead" window of just 4 time steps performed nearly as well as having the entire future sequence. This justifies ignoring distant future observations to save computation.

Results

The approximate EM approach yielded impressive performance gains without sacrificing model quality:

  • Massive Speedups: On a Sun Ultra II workstation, exact EM took 138 minutes per iteration. In contrast, the approximate version using 5+5 clustering took only 6 minutes—a 23x improvement. More aggressive approximations took less than 5 minutes.
  • Negligible Accuracy Loss: Despite the massive speedup, the log-likelihood of the learned models was almost identical to the exact version. The largest difference in peak log-likelihood was a mere 0.04.
Average log-likelihood over EM iterations, demonstrating that approximate methods (like 5+5 EM) achieve nearly identical accuracy to Exact EM.
  • Online Efficiency: The online EM algorithm converged to a high-quality hypothesis much faster than the standard offline batch EM, proving its viability for real-time learning scenarios.

Limitations and Future Work

While highly effective, the authors note a few limitations. First, this paper focuses exclusively on learning parameters (the probabilities) for a known structure. Integrating this approach with structure learning (discovering the connections between variables) is a logical next step.

Additionally, while the approach excels at structured, sparse models like DBNs, variational methods might still perform better for very densely connected models where independence assumptions are harder to justify. Finally, the paper assumes the user knows how to cluster the variables effectively; automating the choice of these structural approximations remains an open challenge.

Summary updated

BibTeX
@inproceedings{boyen1998approximate,
  author = {Xavier Boyen and Daphne Koller},
  title = {{Approximate Learning of Dynamic Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1998},
}
Figure