arXiv:2610.33939cs.LGOct 2026

Manuscript Offprint

arXiv:2610.33939

Stable and Calibrated Latent Force ODE Filters

Paul Fischer, Jonathan Schmidt, Philipp Hennig

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Estimating unobserved forces in mechanistic systems is a central task of scientific machine learning. Approximate Gaussian filtering methods that synthesize mechanistic and empirical information have shown remarkable capacity in jointly identifying latent processes together with the system state in a single forward-backward pass. The resulting latent force ODE filter framework channels information from observational data specifically into the unknown parts of the system. This work addresses open questions about calibration and stability of the method. We show that the joint posterior over state and force is the reweighted conventional latent force posterior. This uncovers a crucial dependence of the stability of the method on the prior variance of the system state, which effectively controls the flow of information from observations to the latent force through the mechanistic system. From this insight, we construct an improved algorithm that provides stable and calibrated plug-and-play inference. We demonstrate the improved framework on several simulated experimental settings.

1 INTRODUCTION

Many dynamical systems are driven by external forces that cannot be observed directly. Examples include wind loads acting on a bridge, stimulus currents driving a neuron, and contact forces disturbing a robot. Downstream decision making requires uncertainty quantification and identification of such unknown inputs. Hybrid models, which combine mechanistic knowledge in the form of differential equations with function approximations learned from data, leverage the advantages of both: the expressivity of function approximation and the generalizability of mechanistic models.

Latent force models (LFMs) (Álvarez et al., 2009; Hartikainen et al., 2012) are hybrid models that place a Gaussian process (GP) prior on the force, integrate it through the differential equation into a joint input-state prior, and condition this prior on the data. For systems described by ordinary differential equations (ODEs), Schmidt et al. (2021) introduced an adjacent approach, which we refer to as latent force ODE filters. It builds on ODE filters (Tronarp et al., 2019; Kersting et al., 2020b), probabilistic numerical solvers that treat the local gradient information of the vector field as data within a Bayesian inference framework (Cockayne et al., 2019; Hennig et al., 2022). State and force are modeled as independent GPs, and the mechanistic information only enters at inference time, essentially treating the dynamics model as data. Adding empirical observations then lifts the solver to a hybrid model. In ODE filters, the mechanistic information is encoded as pseudo-data pinned to zero, not a real measurement of the system. Conditioning confines the prior to the restricted measure that is consistent with the dynamics (Da Costa et al., 2025). Pinning the residual to zero is harmless while it only serves to solve the dynamics, but consequential once it is used as evidence for calibration and model selection. For latent force ODE filters, these aspects have not been studied yet. Model selection and calibration thus remain open challenges, hindering real-world applications and comparison to competing hybrid methods.

Contributions This paper turns the pseudo-data distinction into a calibration principle for latent force ODE filters. We show that the state diffusion of the prior process not only scales the numerical uncertainty but also controls the rate at which the latent force learns from the residual. This dual role leads to two failure modes (Fig. 1). A small diffusion enforces the dynamics too rigidly: the force compensates for the limited expressivity of the state prior, uncertainty bands contract, and the posterior fails to model the data. A large diffusion decouples force and state: the force is poorly inferred and the state interpolation is massively underconfident. Selecting the diffusion from the residual evidence, as is common for ODE filters, over-

Figure

Figure 1: The state diffusion controls the latent force inference. Latent force ODE filter on the Duffing oscillator of Eq. (16) with the position observed (Appendix D). Center: the diffusion σx⋆2\sigma_x^{\star2} that maximizes I(U;Y∣Z)I(U; Y \mid Z) (Sec. 3.4). Left and right: 10810^8 times smaller and 10610^6 times larger. Bands: mean ±2\pm 2 standard deviations of the classical latent force model with the probabilistic numerical solver, π(X,U)\pi(X, U), and of the full latent force ODE filter posterior p(X,U∣Y,Z)p(X, U \mid Y, Z).

enforces the dynamics. Selecting it instead by the information the data carry about the force, given the ODE, avoids both failures and yields calibrated and accurate posteriors.

Our main contributions are:

• We show that the posterior of a latent force ODE filter factorizes into a classical latent force model posterior and a Gibbs weight on the force whose temperature is the state diffusion. Latent force inference fails for both too high and too low values of the prior diffusion (Secs. 3.1–3.3).

• We propose selecting the diffusion by the mutual information I(U;Y∣Z)I(U;Y \mid Z) of force and data given the ODE, and evaluate it within an algorithm that refines the grid and calibrates hyperparameters (Secs. 3.4 and 3.5).

• On three nonlinear systems, selecting the diffusion by I(U;Y∣Z)I(U;Y \mid Z) recovers the force on every problem from a single start (Sec. 4).

References (34)