Abstract
Parameter inference is a fundamental problem in data-driven modeling. Given observed data that is believed to be a realization of some parameterized model, the aim is to find parameter values that are able to explain the observed data. In many situations, the dominant sources of uncertainty must be included into the model, for making reliable predictions. This naturally leads to stochastic models. Stochastic models render parameter inference much harder, as the aim then is to find a distribution of likely parameter values. In Bayesian statistics, which is a consistent framework for data-driven learning, this so-called posterior distribution can be used to make probabilistic predictions. We propose a novel, exact and very efficient approach for generating posterior parameter distributions, for stochastic differential equation models calibrated to measured time-series. The algorithm is inspired by re-interpreting the posterior distribution as a statistical mechanics partition function of an object akin to a polymer, where the measurements are mapped on heavier beads compared to those of the simulated data. To arrive at distribution samples, we employ a Hamiltonian Monte Carlo approach combined with a multiple time-scale integration. A separation of time scales naturally arises if either the number of measurement points or the number of simulation points becomes large. Furthermore, at least for 1D problems, we can decouple the harmonic modes between measurement points and solve the fastest part of their dynamics analytically. Our approach is applicable to a wide range of inference problems and is highly parallelizable.
Introduction
Calibrating mathematical models to noisy, real-world data is a fundamental challenge, especially when the underlying system is best described by stochastic differential equations (SDEs). In Bayesian statistics, the goal is to find a "posterior distribution" of likely parameter values that explain the observed data.
However, when noise is intrinsic to the model equations (as in SDEs), Bayesian inference becomes computationally expensive. Traditional simulation-based methods—like Particle Filters or Approximate Bayesian Computation (ABC)—often struggle with inefficiency when dealing with many data points or high-dimensional spaces. Frequently, researchers are forced to rely on ad-hoc "summary statistics" to make the mathematics tractable. This work addresses the need for an exact, highly efficient method to generate posterior parameter distributions for SDEs calibrated to measured time-series data without sacrificing accuracy.
Methodology: The Polymer Analogy
The proposed approach reinterprets the Bayesian posterior distribution as the partition function of a physical system—specifically, a polymer chain.
In this framework, the discretized time steps of the SDE are mapped to "beads" on a polymer. Measurement points (actual data) are assigned heavy masses because they are constrained by observation errors, while intermediate simulation points are assigned lighter masses.
To sample the parameter space, the authors employ Hamiltonian Monte Carlo (HMC). A key innovation is exploiting the time-scale separation that arises because the intermediate beads significantly outnumber the measurement beads. Their dynamics occur on a much faster time scale, dominated by harmonic bonds. By introducing "staging variables," these fast harmonic modes are decoupled and solved analytically using Trotter's formula. Only the slower, non-harmonic dynamics associated with the heavy beads require numerical integration via a velocity Verlet algorithm. For 1D SDEs, the system can be re-parameterized such that the noise term is constant, which is critical for unlocking the analytical solution for the fast dynamics.
Results and Discussion
The method was evaluated using synthetic data from a 1D nonlinear SDE model inspired by hydrology (reservoir dynamics with time-varying rain and state-dependent noise). The dataset included 11 measurement points with multiplicative log-normal errors across 301 discretization points.
The algorithm demonstrated extreme efficiency, completing 50,000 HMC iterations in approximately 43 seconds on a single 2.7 GHz CPU core. A notable feature is the near-zero burn-in: as shown in the parameter space trajectories, the Markov chain jumps directly into the vicinity of the true parameter values from the very first step.
The resulting probability density functions accurately captured the true parameters and successfully explored the heavy tails of the distribution. Additionally, because the burn-in phase is negligible, the process is highly parallelizable; independent chains can be run across multiple cores with near-linear scaling, potentially reducing runtimes to just a few seconds on a multi-core system.
Conclusion and Future Work
This novel HMC-based approach provides a highly efficient and exact method for Bayesian inference in 1D SDEs. By leveraging physical analogies and time-scale separation, it overcomes the computational bottlenecks typical of stochastic model calibration. While the current speedup relies on a 1D-specific transformation to constant noise, the general principle of scale separation remains applicable to higher-dimensional systems. Future research will focus on extending this framework to multi-dimensional SDEs and coupled SDE-ODE systems.
Summary updated