Sequential Inference for Latent Force Models

Jouni Hartikainen, Simo Särkkä

TL;DR

This paper reformulates Latent Force Models (LFMs)—which combine physical differential equations with Gaussian Processes—into a state-space framework. By doing so, the authors enable efficient $O(T)$ inference using Kalman filters and extend the model to automatically detect "switches" in system dynamics using Switching Linear Dynamic Systems (SLDS).

What Problem Does This Paper Address?

Latent Force Models (LFMs) are powerful "hybrid" models. They use mechanistic principles (like Newton’s laws of motion expressed as differential equations) to describe a system, but they use non-parametric Gaussian Processes (GPs) to model the unknown "latent forces" driving that system.

However, LFMs face two major hurdles:

  1. Computational Complexity: Standard GP regression scales cubically ($O(T^3)$) with the number of data points $T$. While sparse approximations exist, they can be finicky.
  2. Mathematical Tedium: Traditional LFM inference requires deriving complex, closed-form covariance functions for every new differential equation. This is mathematically exhausting and hard to generalize.
  3. Rigid Switching: Previous "Switching LFMs" treated the times when a system changes (e.g., a car stopping at a light) as fixed hyperparameters that had to be optimized or cross-validated, rather than latent variables to be inferred.

Methods

The authors propose a State-Variable Approach to LFMs. Instead of solving the differential equations to find covariance functions, they convert the entire system into a Linear Time-Invariant (LTI) Stochastic Differential Equation (SDE).

Key components include:

  • State-Space Reformulation: They transform the physical ODEs into a vector-valued state-space model.
  • Matérn Kernels as SDEs: They leverage the fact that the Matérn class of GP kernels has an exact analytic state-space representation. This allows the latent forces to be modeled as part of the state vector.
  • Kalman Filtering & Smoothing: Once in state-space form, they use the classical Kalman Filter and Rauch-Tung-Striebel (RTS) smoother for inference. This drops the complexity from $O(T^3)$ to $O(T)$.
  • Probabilistic Switching (SLDS): To handle systems that change behavior over time, they formulate a Switching LFM as a Switching Linear Dynamic System (SLDS). They use Assumed Density Filtering (ADF) and Expectation Correction (EC) to approximate the posterior, allowing the model to probabilistically infer when the system switched states.

Datasets

The paper evaluates the approach on two main fronts:

  1. Simulated Scenarios: A toy 2nd-order ODE system used to compare computational efficiency against standard GP methods and sparse approximations (FITC/PITC).
  2. Real-World GPS Data: Car movement data collected in Helsinki, Finland, using an Indagon MTT130 positioning terminal. The dataset contains 6,865 data points representing various urban driving situations like traffic lights and turns.

Key Insights and Ideas

  • The "State-Space" Shortcut: By viewing GPs through the lens of state-space models, you bypass the need to manually derive covariance functions. The "math" is handled by matrix exponentials and integrals, which are easier to implement numerically.
  • Efficiency at Scale: Because the Kalman filter is sequential, the computational cost grows linearly with time. This makes the approach much more suitable for long time-series than standard GP methods.
  • Switching as Inference, Not Optimization: By treating switching points as part of a Markovian process within an SLDS, the model provides a probability distribution over when a switch occurred, accounting for uncertainty rather than just picking a single "best" time.

Key Results

  • Speedup: In simulations with $T=500$ points, the state-space approach (KF-M) was significantly faster than standard GPs (~0.1s vs ~9.6s) while maintaining identical accuracy (RMSE).
  • Competitive with Sparse GPs: The state-space method was comparable in speed to FITC/PITC but avoided the potential pitfalls of sparse approximations when the underlying latent function isn't smooth.
  • GPS Segmentation: The Probabilistic SLFM successfully identified switching points in real-world GPS data, accurately segmenting different driving behaviors (stops, turns, etc.) without needing the switching times to be provided upfront.

Limitations and Future Work

  • SLDS Complexity: While the base LFM is $O(T)$, the switching version (SLDS) still faces a combinatorial explosion of possible model sequences. The authors use approximations (ADF/EC), but the complexity still scales with the number of mixture components used.
  • Numerical Stability: The implementation relies on computing matrix exponentials and their integrals. While generally robust, these can become numerically sensitive for very high-dimensional or stiff systems.
  • Future Directions: The authors suggest that this framework could be extended to non-linear observation models using non-linear Kalman filters (like the EKF or UKF).

Reference: Hartikainen, J., & Särkkä, S. "Sequential Inference for Latent Force Models." Proceedings of the 14th International Conference on Artificial Intelligence and Statistics (AISTATS), 2011.

Summary updated

BibTeX
@inproceedings{hartikainen2011sequential,
  author = {Jouni Hartikainen and Simo Särkkä},
  title = {{Sequential Inference for Latent Force Models}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2011},
  url = {https://openreview.net/forum?id=DIXzRbEilZ},
}
Figure