Skip to content

Menu

WorksMathematics

Broadly Applicable Approximate MCMC for Switching Stochastic Differential Equations Using Uniformization and Time-Conditioned Factorized Neural Likelihood Estimation

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_bvhkfbnh. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Switching stochastic differential equations (SSDEs) describe continuous-time dynamics whose parameters switch according to a latent regime process that follows a continuous-time Markov chain (CTMC). By allowing dynamics to change between regimes, SSDEs represent heterogeneous system behavior and have been applied across diverse fields. However, Bayesian inference for SSDEs remains difficult, and existing SSDE inference methods have limited applicability, with restrictions such as noise-free observations, univariate states, linear drift, or state-independent diffusion. In this study, we propose an approximate Markov chain Monte Carlo sampler for SSDEs using uniformization and factorized neural likelihood estimation (FNLE), a simulation-based inference method. Uniformization provides an exact representation of the CTMC but requires SDE transition densities over arbitrary time intervals. We approximate these densities by training a time-conditioned FNLE model. The resulting sampler is broadly applicable to SSDEs without requiring analytically tractable transition densities. In synthetic-data experiments, our method recovered regime paths and parameters for three SSDE models for which previous methods have limited applicability. We also applied our method to a real dataset and detected a regime transition.

Introduction

Stochastic differential equations (SDEs) provide a natural framework for modeling noisy continuous-time dynamics. A single SDE may be insufficient in many cases because dynamics in real-world systems often change. Switching stochastic differential equations (SSDEs) represent such dynamics by allowing the drift and diffusion functions to switch according to the regime at each time. SSDEs have been applied in many fields, such as ecology [36], biology [15], and economics [22]. Figure 1 illustrates an SSDE and its noisy observations.

Figure 1. Illustration of a simulated Lotka–Volterra SSDE. The upper panel shows the two components of the continuous state and their noisy observations. Background shading indicates the active regime, and the lower panel shows the regime path.

Bayesian inference for SSDEs remains challenging. It requires joint estimation of latent states, regimes, and model parameters from noisy observations. Moreover, regime transitions can occur between observation times. Due to these challenges, existing SSDE inference methods have limited applicability and are typically restricted to settings with noise-free observations, univariate states, linear drift, or state-independent diffusion [13, 19, 20, 32].

Uniformization is a method to represent the continuous-time Markov chain (CTMC) by a discrete-time regime sequence on Poisson event times [30]. When regime-dependent emission likelihoods are available, this representation facilitates parameter inference in CTMC-based models and has been used in a range of applications [9] [12, 28]. For an SDE, however, the required likelihood involves transition densities of the state process over each interval. These densities are generally unavailable for SDEs, limiting the direct use of uniformization-based regime updates in general SSDEs.

Simulation-based inference can learn otherwise intractable densities from simulations [5, 29]. Neural likelihood estimation learns conditional densities from simulated parameter–data pairs, while factorized neural likelihood estimation (FNLE) exploits the Markov property to approximate trajectory likelihoods from learned local transition densities [11]. Standard FNLE is formulated for discrete-time Markovian sequences and is typically trained for a fixed transition interval, and it cannot be directly evaluated at the varying intervals introduced by uniformization.

In this study, we propose an approximate Markov chain Monte Carlo (MCMC) sampler for SSDEs using time-conditioned FNLE. As a foundation, we develop an exact uniformization-based sampler for SSDEs with tractable transition densities and conditional intermediate-state sampling. We then condition FNLE on elapsed time to approximate regime-specific transition densities over varying intervals and use sampling-importance-resampling (SIR) to approximate conditional intermediate-state sampling. This yields a broadly applicable sampler for SSDEs without requiring analytically tractable transition densities.

Our contributions are summarized as follows:

  • We combine time-conditioned FNLE with uniformization to construct an approximate MCMC sampler applicable to a broad range of SSDEs.

  • We show that the sampler successfully recovers regime paths and model parameters in synthetic experiments on three SSDE models spanning nonlinear drift, state-dependent diffusion, and multivariate latent states.

  • We apply the sampler to a real dataset and infer a persistent regime change.

Related Work

Existing continuous-time SSDE inference methods differ in their model restrictions and treatment of uncertainty. Blackwell [2] considers SSDEs with regimes observed at discrete times. Blackwell et al. [3] use uniformization for SDEs with state-dependent switching and tractable transition densities, jointly updating candidate times, states, and regimes using Metropolis–Hastings (MH). In contrast, our sampler updates regimes conditional on the grid states using a Gibbs update. Hibbah et al. [13] develop a data-augmentation MCMC method for nonlinear SDEs with state-dependent switching, but demonstrate only univariate models without observation error and note computational and mixing difficulties under dense augmentation. Köhs et al. [19, 20] demonstrate multivariate inference with observation error under more restrictive models: the former uses variational inference with state-independent diffusion, while the latter uses MCMC with linear-Gaussian dynamics. Stumpf-Fétizon et al. [32] provide discretization-free exact inference for nonlinear univariate SSDEs with state-dependent diffusion and direct observations, while multivariate extensions require substantially stronger conditions and are not demonstrated.

Our approach combines uniformization-based CTMC sampling [30] with FNLE, a simulation-based inference method for Markovian time series [11]. We use time-conditioned FNLE to approximate SDE transition densities over varying time intervals. Similarly, neural stochastic flows learn time-conditioned SDE transition distributions [17] but are formulated without conditioning on SDE parameters. In contrast, our transition-density approximation is conditioned on both time intervals and model parameters, allowing it to be incorporated into an approximate MCMC sampler that jointly infers latent states, regimes, and model parameters. Table 1 summarizes the differences between our method and existing SSDE inference approaches.

MethodObservation errorNonlinear driftState-dependent diffusionIntractable transition densityMultivariate states
Blackwell et al. [3]△△△×✓
Hibbah et al. [13]△✓✓✓△
Köhs et al. [19]✓△×△✓
Köhs et al. [20]✓×××✓
Stumpf-Fétizon et al. [32]△✓✓✓△
Proposed method✓✓✓✓✓

Table 1. Applicability of SSDE Inference Methods. ✓: Demonstrated applicability; △: Applicability not established; ×: Excluded by model assumptions.

Background

Switching Stochastic Differential Equations

A switching stochastic differential equation (SSDE) combines a continuous latent state with a regime that determines its drift and diffusion functions [27]. Let Yt∈RDY_t \in\mathbb{R}^{D} be a continuous latent state and let Wt∈RDW_t \in\mathbb{R}^{D} be a standard Brownian motion. The regime Zt∈{1,…,K}Z_t \in\{1,\ldots,K\} evolves as a CTMC, where DD is the state dimension and KK is the number of regimes. We consider an SSDE of the form

dYt=f(Yt,Zt)dt+g(Yt,Zt)dWt,(1)\mathrm{d}Y_t = f(Y_t,Z_t)\mathrm{d}t + g(Y_t,Z_t)\mathrm{d}W_t, \tag*{(1)}

where f:RD×{1,…,K}→RDf:\mathbb{R}^{D}\times\{1,\ldots,K\}\to\mathbb{R}^{D} and g:RD×{1,…,K}→RD×Dg:\mathbb{R}^{D}\times\{1,\ldots,K\}\to\mathbb{R}^{D\times D} are the drift and diffusion functions, respectively. For each regime kk, f(⋅,k)f(\cdot,k) and g(⋅,k)g(\cdot,k) define the corresponding regime-specific SDE. The transition rate matrix Q=(qkh)Q=(q_{kh}) of ZtZ_t satisfies

qkh≥0(k≠h),qkk=−∑h≠kqkh.(2)q_{kh}\geq0\quad(k\ne h),\qquad q_{kk}=-\sum_{h\ne k}q_{kh}. \tag*{(2)}

On the observation interval [0,T][0,T], we write Y={Yt}t∈[0,T]Y=\{Y_t\}_{t\in[0,T]} and Z={Zt}t∈[0,T]Z=\{Z_t\}_{t\in[0,T]} for the state and regime paths. Their realizations are denoted by y={yt}t∈[0,T]y=\{y_t\}_{t\in[0,T]} and z={zt}t∈[0,T]z=\{z_t\}_{t\in[0,T]}.

Uniformization of Continuous-Time Markov Chains

Uniformization represents a CTMC as a discrete-time Markov chain observed at event times of a Poisson process [30]. For a fixed observation grid, augmenting the regime path ZZ with candidate times Tcand\mathcal{T}_{\mathrm{cand}} gives an equivalent discrete representation through the almost-sure one-to-one mapping

(Z~1:L,Tevent)=Ψ(Z,Tcand),(3)(\widetilde{Z}_{1:L},\mathcal{T}_{\mathrm{event}})=\Psi(Z,\mathcal{T}_{\mathrm{cand}}), \tag*{(3)}

where Tevent=Ttrue∪Tcand\mathcal{T}_{\mathrm{event}}=\mathcal{T}_{\mathrm{true}}\cup\mathcal{T}_{\mathrm{cand}} combines the true jump times Ttrue\mathcal{T}_{\mathrm{true}}, at which the regime changes, and candidate times Tcand\mathcal{T}_{\mathrm{cand}}. For NN observations at fixed times Tobs={tiobs}i=1N\mathcal{T}_{\mathrm{obs}}=\{t_i^{\mathrm{obs}}\}_{i=1}^{N}, with 0=t1obs<⋯<tNobs=T0=t_1^{\mathrm{obs}}<\cdots<t_N^{\mathrm{obs}}=T, the combined grid is

Tall=Tobs∪Tevent={t1,…,tL},0=t1<⋯<tL=T.(4)\mathcal{T}_{\mathrm{all}}=\mathcal{T}_{\mathrm{obs}}\cup\mathcal{T}_{\mathrm{event}}=\{t_1,\ldots,t_L\}, \qquad 0=t_1<\cdots<t_L=T. \tag*{(4)}

Here, Tevent\mathcal{T}_{\mathrm{event}} and Tobs\mathcal{T}_{\mathrm{obs}} are almost surely disjoint, and Z~j=Ztj\widetilde{Z}_j=Z_{t_j}. The sequence z1:L=(zt1,…,ztL)z_{1:L}=(z_{t_1},\ldots,z_{t_L}) is its realization, distinct from the full path zz. Under the right-continuous convention, zjz_j is the regime on [tj,tj+1)[t_j,t_{j+1}) for j=1,…,L−1j=1,\ldots,L-1; z1z_1 and zLz_L are the initial and terminal regimes.

Factorized Neural Likelihood Estimation for Transition Densities

As an illustrative model, consider conditionally independent latent states with densities p(y~j∣zj,θ)p(\widetilde{y}_j\mid z_j,\theta) and conditionally independent observations with densities p(xi∣y~ℓ(i),θ)p(x_i\mid\widetilde{y}_{\ell(i)},\theta), where θ\theta is fixed and tℓ(i)=tiobst_{\ell(i)}=t_i^{\mathrm{obs}}. Given y~1:L\widetilde{y}_{1:L} and θ\theta, observation factors cancel from the regime conditional. Writing ej(k)=p(y~j∣zj=k,θ)e_j(k)=p(\widetilde{y}_j\mid z_j=k,\theta) and E={ej(k)}j=1,…,L; k=1,…,K\mathcal{E}=\{e_j(k)\}_{j=1,\ldots,L;\,k=1,\ldots,K}, we obtain

p(z1:L∣Tall,E,Q)∝p(z1)e1(z1)∏j=2LAj(zj−1,zj)ej(zj).(5)p(z_{1:L}\mid\mathcal{T}_{\mathrm{all}},\mathcal{E},Q) \propto p(z_1)e_1(z_1)\prod_{j=2}^{L}A_j(z_{j-1},z_j)e_j(z_j). \tag*{(5)}

The transition matrix AjA_j depends on QQ, the uniformization rate Ω\Omega, and whether tjt_j is an event or observation-only time (Appendix A.1). This hidden Markov model (HMM) factorization permits forward-filtering backward-sampling (FFBS) [8].

Conditional on the current path and QQ, candidate times are sampled as virtual-jump times from a Poisson process with rate Ω(Q)+qZtZt\Omega(Q)+q_{Z_tZ_t}, where Ω(Q)>max⁡k(−qkk)\Omega(Q)>\max_k(-q_{kk}) is deterministic given QQ (Appendix A.1). After FFBS, candidate times may become true jump times, and we update

Ttrue←{tj∈Tall:zj−1≠zj, j=2,…,L}.(6)\mathcal{T}_{\mathrm{true}}\leftarrow\{t_j\in\mathcal{T}_{\mathrm{all}}:z_{j-1}\ne z_j,\ j=2,\ldots,L\}. \tag*{(6)}

Factorized Neural Likelihood Estimation for Transition Densities

Factorized neural likelihood estimation (FNLE) is a method for approximating intractable transition densities in Markov process models [11].

For a discrete-time Markov trajectory y1:Jy_{1:J} of length JJ, the trajectory likelihood factorizes as

p(y1:J∣θ)=p(y1)∏j=1J−1p(yj+1∣yj,θ).(7)p(y_{1:J}\mid\theta)=p(y_1)\prod_{j=1}^{J-1}p(y_{j+1}\mid y_j,\theta). \tag*{(7)}

where θ\theta denotes the parameters that determine the transition density. FNLE learns p^ϕ(yj+1∣yj,θ)≈p(yj+1∣yj,θ)\widehat{p}_{\phi}(y_{j+1}\mid y_j,\theta)\approx p(y_{j+1}\mid y_j,\theta) by maximizing the conditional log-likelihood of simulated transitions, where ϕ\phi denotes the density-estimator parameters. Conditional normalizing flows support both density evaluation and sampling [11, 29], enabling likelihood approximation and SIR proposals in our sampler.

Problem setting

We define the model targeted by our proposed sampler. We assume that the drift and diffusion functions share common functional forms across regimes as follows:

f(y,k)=f(y;θk),g(y,k)=g(y;θk),(8)f(y,k)=f(y;\theta_k),\qquad g(y,k)=g(y;\theta_k), \tag*{(8)}

where θk\theta_k is the SDE parameter vector in regime kk. Note that our method is not limited to this case and that functional forms can depend on regimes. We let Θ\Theta collect the unconstrained SDE parameters, with separate entries for regime-specific parameters and a single entry for each shared parameter, and write

θk=hk(Θ),k=1,…,K.(9)\theta_k=h_k(\Theta),\qquad k=1,\ldots,K. \tag*{(9)}

Here, hkh_k selects the parameters used in regime kk and applies the transformations required by their constraints.

At the discrete observation times in Tobs\mathcal{T}_{\mathrm{obs}}, observations are modeled as

Xi∣Ytiobs,τ2∼N(Ytiobs,diag⁡(τ2)).(10)X_i\mid Y_{t_i^{\mathrm{obs}}},\tau^2\sim\mathcal{N}\left(Y_{t_i^{\mathrm{obs}}},\operatorname{diag}(\tau^2)\right). \tag*{(10)}

Here, Xi∈RDX_i\in\mathbb{R}^D denotes the random observation at time tiobst_i^{\mathrm{obs}}, and xix_i denotes its realized value. We write X={Xi}i=1NX=\{X_i\}_{i=1}^N and x={xi}i=1Nx=\{x_i\}_{i=1}^N. Furthermore, τ2∈R+D\tau^2\in\mathbb{R}_+^D is the vector of observation-noise variances. The initial state and regime have independent priors p(y1)p(y_1) and p(z1)p(z_1) that do not depend on the unknown parameters. Prior settings for unknown variables are provided in Appendix D.1.2. The target posterior distribution is written as

p(y,z,Θ,τ2,Q∣x)∝p(x,y,z,Θ,τ2,Q)(11)p(y,z,\Theta,\tau^2,Q\mid x)\propto p(x,y,z,\Theta,\tau^2,Q) \tag*{(11)}
=p(x∣y,τ2)p(y∣z,Θ)p(z∣Q)×p(Θ)p(τ2)p(Q).(12)\begin{aligned} &=p(x\mid y,\tau^2)p(y\mid z,\Theta)p(z\mid Q)\\ &\quad\times p(\Theta)p(\tau^2)p(Q). \tag*{(12)} \end{aligned}

Proposed Method

We first construct an exact MCMC sampler for tractable SSDEs, then use time-conditioned FNLE to obtain an approximate sampler for intractable SSDEs. We call an SSDE tractable when exact transition-density evaluation and exact sampling from the corresponding bridge distribution are available for each regime-specific SDE. We refer to all other SSDEs as intractable in this sense. Here, a bridge distribution is the conditional distribution of the state path between two fixed times, given the endpoint states and the SDE parameters. We consider a single series; Appendix C.3 gives the extension to multiple series.

Exact MCMC for Tractable SSDEs

On the combined grid in Eq. (4), write yj=ytjy_j=y_{t_j} for j=1,…,Lj=1,\ldots,L and Δj=tj−tj−1\Delta_j=t_j-t_{j-1} for j=2,…,Lj=2,\ldots,L. We write YTallY_{\mathcal{T}_{\mathrm{all}}} and YT‾allY_{\overline{\mathcal{T}}_{\mathrm{all}}} for the restrictions of YY to the combined grid and the remaining times, respectively.

Uniformization augments the posterior in Eq. (12) with Tcand\mathcal{T}_{\mathrm{cand}}. For fixed Tevent\mathcal{T}_{\mathrm{event}}, we perform three successive block Gibbs updates of Y=(YTall,YT‾all)Y=(Y_{\mathcal{T}_{\mathrm{all}}},Y_{\overline{\mathcal{T}}_{\mathrm{all}})}, (Z,YTall)(Z,Y_{\mathcal{T}_{\mathrm{all}}}), and (Θ,YTall)(\Theta,Y_{\mathcal{T}_{\mathrm{all}}}). The unused draws of YTallY_{\mathcal{T}_{\mathrm{all}}} can be trimmed by partially collapsed Gibbs sampling [7], leaving the following finite-dimensional updates. Consequently, only the grid values y1:Ly_{1:L} are explicitly sampled; the intervening paths are marginalized.

Candidate Times Given the current regime path and QQ, we sample Tcand\mathcal{T}_{\mathrm{cand}} using the Poisson–Uniform construction in Section 2.2 and set Tevent\mathcal{T}_{\mathrm{event}} and Tall\mathcal{T}_{\mathrm{all}}. The rate Ω\Omega and uniformized transition matrix BB are computed as in Appendix A.1.

Latent States at Newly Inserted Candidate Times Before updating all grid values, we sample each block ya:by_{a:b} of state values at candidate times from the bridge distribution

p(ya:b∣ya−1,yb+1,z1:L,Δa:b+1,Θ),(13)p(y_{a:b}\mid y_{a-1},y_{b+1},z_{1:L},\Delta_{a:b+1},\Theta), \tag*{(13)}

where ya:by_{a:b} is a consecutive block of {yt}t∈Tcand\{y_t\}_{t\in\mathcal{T}_{\mathrm{cand}}}, with fixed neighboring values ya−1y_{a-1} and yb+1y_{b+1} at adjacent points of Tobs∪Ttrue\mathcal{T}_{\mathrm{obs}}\cup\mathcal{T}_{\mathrm{true}}.

For SSDEs, we redefine eje_j as the exact transition density for j=2,…,Lj=2,\ldots,L:

ej(k)=p(yj∣yj−1,θk,Δj).(14)e_j(k)=p(y_j\mid y_{j-1},\theta_k,\Delta_j). \tag*{(14)}

Because zj−1z_{j-1} is the regime on [tj−1,tj)[t_{j-1},t_j), the transition to yjy_j contributes ej(zj−1)e_j(z_{j-1}).

Latent States on the Combined Time Grid We update y1:Ly_{1:L} using an MH kernel targeting

p(y1:L∣z1:L,Tall,Θ,τ2,x)∝p(y1)∏j=2Lej(zj−1)×∏i=1Np(xi∣ytiobs,τ2).(15)\begin{aligned} p(y_{1:L}\mid z_{1:L},\mathcal{T}_{\mathrm{all}},\Theta,\tau^2,x) &\propto p(y_1)\prod_{j=2}^{L}e_j(z_{j-1})\\ &\quad\times\prod_{i=1}^{N}p(x_i\mid y_{t_i^{\mathrm{obs}}},\tau^2). \tag*{(15)} \end{aligned}

Regime Path Marginalizing YTallY_{\mathcal{T}_{\mathrm{all}}} gives

p(z1:L∣y1:L,Tevent,Θ,Q,τ2,x)∝p(z1)∏j=2LAj(zj−1,zj)ej(zj−1).(16)p(z_{1:L} \mid y_{1:L}, \mathcal{T}_{\mathrm{event}}, \Theta, Q, \tau^2, x) \propto p(z_1) \prod_{j=2}^{L} A_j(z_{j-1},z_j)e_j(z_{j-1}). \tag*{(16)}

This HMM factorization permits FFBS; Appendix § 10.2.3 gives the derivation.

SDE Parameters The conditional density is

p(Θ∣y1:L,z1:L,Tall)∝p(Θ)∏j=2Lej(zj−1).(17)p(\Theta\mid y_{1:L}, z_{1:L}, \mathcal{T}_{\mathrm{all}}) \propto p(\Theta) \prod_{j=2}^{L} e_j(z_{j-1}). \tag*{(17)}

We update Θ\Theta using an MH kernel targeting this conditional.

Observation Noise and Transition Rates We sample τ2\tau^2 and the off-diagonal entries of QQ from their conjugate full conditionals, with virtual jumps marginalized in the QQ update; see Appendix § 12.§ 2.

With exact sampling from the bridge distribution and conditional-invariant MH kernels, this sweep preserves the exact posterior marginal of the regime path, latent values at Tobs∪Ttrue\mathcal{T}_{\mathrm{obs}} \cup\mathcal{T}_{\mathrm{true}}, and parameters [25]. Appendix § 10.§ 2 gives the full derivation.

Time-Conditioned FNLE for SDE Transition Densities

To construct the approximate MCMC sampler, we approximate the SDE transition densities required by the exact updates. For a regime-specific SDE, the transition density is

p(ynext∣yprev,θk,Δ).(18)p(y^{\mathrm{next}} \mid y^{\mathrm{prev}}, \theta_k, \Delta). \tag*{(18)}

Here, yprevy^{\mathrm{prev}} and ynexty^{\mathrm{next}} are state values separated by elapsed time Δ\Delta. We train an FNLE model with the elapsed time Δ\Delta as a conditioning variable to obtain

p^ϕ(ynext∣yprev,θk,Δ)≈p(ynext∣yprev,θk,Δ).(19)\hat{p}_{\phi}(y^{\mathrm{next}} \mid y^{\mathrm{prev}}, \theta_k, \Delta) \approx p(y^{\mathrm{next}} \mid y^{\mathrm{prev}}, \theta_k, \Delta). \tag*{(19)}

A single FNLE model can be shared across regimes with common drift and diffusion forms by conditioning on θk\theta_k; otherwise, a separate model can be trained for each distinct pair of functional forms. The model and training settings are given in Appendix § 13.§ 1.1.

Approximate Markov Chain Monte Carlo Sampler with FNLE

We obtain the approximate sampler by replacing the transition densities in § 5 with FNLE densities and using SIR to sample state values at candidate times. For j=2,…,Lj=2,\ldots,L, define

e^j(k)=p^ϕ(yj∣yj−1,θk,Δj).(20)\hat{e}_j(k)=\hat{p}_{\phi}(y_j \mid y_{j-1},\theta_k,\Delta_j). \tag*{(20)}

Approximation Properties

In our approximate MCMC sampler, FNLE approximates the transition densities, and the finite number of SIR particles introduces a separate error in sampling from the bridge distribution. Because FNLE densities do not necessarily satisfy the Chapman–Kolmogorov equation, inserting intermediate grid points can change the implied transition density. Consequently, successive sweeps apply the FNLE-based state, regime, and parameter updates on different grids and are not guaranteed to preserve a common approximate target. Exact or Chapman–Kolmogorov-consistent transition densities remove this inconsistency, but not the error due to the finite number of

Algorithm 1  Continuous-time SSDE sampler with time-conditioned FNLE

Require: Data $\{(x_i,t_i^{\mathrm{obs}})\}_{i=1}^{N}$
         Initial $\mathcal{T}_{\mathrm{true}}$, $Q$, $\Theta$, $\tau^2$; trained $\hat{p}_{\phi}$
1: Set $\mathcal{T}_{\mathrm{all}}=\mathcal{T}_{\mathrm{obs}}\cup\mathcal{T}_{\mathrm{true}}$
2: Initialize $y_{1:L}$ and $z_{1:L}$ on $\mathcal{T}_{\mathrm{all}}$, consistent with $\mathcal{T}_{\mathrm{true}}$
3: Compute $\Omega$, $B$ (Eq. (28))
4: for iteration $n=1,\ldots,N_{\mathrm{iter}}$ do
5:   Sample $\mathcal{T}_{\mathrm{cand}}$ ({xref}`Section 2.2`)
6:   Set $\mathcal{T}_{\mathrm{event}}=\mathcal{T}_{\mathrm{true}}\cup\mathcal{T}_{\mathrm{cand}}$
7:   Set $\mathcal{T}_{\mathrm{all}}$ ({xref}`Eq. (4)`)
8:   Re-evaluate $z_{1:L}$ on the new $\mathcal{T}_{\mathrm{all}}$
9:   SIR: sample $\{y_t\}_{t\in\mathcal{T}_{\mathrm{cand}}}$
10: NUTS: sample $y_{1:L}$ ({xref}`Eq. (15)`)
11: FFBS: sample $z_{1:L}$ ({xref}`Eq. (16)`)
12: Set $\mathcal{T}_{\mathrm{true}}$ ({xref}`Eq. (6)`)
13: NUTS: sample $\Theta$ ({xref}`Eq. (17)`)
14: Sample $\tau^2$ ({xref}`Eq. (47)`)
15: Sample $\{q_{kh}\}_{k\ne h}$ ({xref}`Eq. (49)`)
16: Set $q_{kk}$ ({xref}`Eq. (50)`); recompute $\Omega$, $B$

Replacing eje_j with e^j\hat{e}_j in Eqs. (15), (16), and (17) defines the approximate conditionals on a fixed grid. The chain factorization still permits FFBS for z1:Lz_{1:L}. and Θ\Theta, we use the No-U-Turn Sampler (NUTS) [14], using gradients of the corresponding FNLE-based conditional log densities. The candidate-time, observation-noise, and transition-rate updates are unchanged.

For the state values at candidate times, SIR [31] approximates the bridge distribution in Eq. (13) with FNLE transition densities. Particles are sampled forward from the fixed left endpoint and weighted by the FNLE density at the fixed right endpoint (Appendix § 12.§ 1). Thus, FNLE must support conditional sampling and differentiable density evaluation.

Algorithm Summary Algorithm 1 summarizes the proposed sampler with FNLE. Here, NiterN_{\mathrm{iter}} denotes the total number of MCMC sweeps. Appendix § 12.§ 4 describes its per-sweep computational costs. SIR particles. On a fixed grid, an MH transition, such as NUTS with fixed tuning parameters, preserves its conditional target and introduces no additional target approximation [25].

We assess FNLE error through the displacement of conditional parameter modes. Consider one series with a realized combined time grid G=Tall={0=t1<⋯<tL=T}\mathcal{G}=\mathcal{T}_{\mathrm{all}}=\{0=t_1<\cdots<t_L=T\}, and condition on fixed y1:Ly_{1:L} and z1:Lz_{1:L}. Let qGq_{\mathcal{G}} and q^G\hat{q}_{\mathcal{G}} be the exact and FNLE-based versions of the unnormalized conditional density in Eq. (17). Let K\mathcal{K} contain the modes of both qGq_{\mathcal{G}} and q^G\hat{q}_{\mathcal{G}}. For j=2,…,Lj=2,\ldots,L, define the local log-density error as

ηj(Θ)=log⁡p^ϕ(yj∣yj−1,hzj−1(Θ),Δj)−log⁡p(yj∣yj−1,hzj−1(Θ),Δj).(21)\eta_j(\Theta)=\log\hat{p}_{\phi}(y_j\mid y_{j-1},h_{z_{j-1}}(\Theta),\Delta_j)-\log p(y_j\mid y_{j-1},h_{z_{j-1}}(\Theta),\Delta_j). \tag*{(21)}

Write ℓG=T−1log⁡qG\ell_{\mathcal{G}}=T^{-1}\log q_{\mathcal{G}} and ℓ^G=T−1log⁡q^G\hat{\ell}_{\mathcal{G}}=T^{-1}\log\hat{q}_{\mathcal{G}}, and let MG=arg⁡max⁡Θ∈KℓG(Θ)\mathcal{M}_{\mathcal{G}}=\arg\max_{\Theta\in\mathcal{K}}\ell_{\mathcal{G}}(\Theta). For a function ee, let osc⁡K(e)=sup⁡Ke−inf⁡Ke\operatorname{osc}_{\mathcal{K}}(e)=\sup_{\mathcal{K}}e-\inf_{\mathcal{K}}e, and let dist⁡(Θ,MG)=inf⁡ϑ∈MG∥Θ−ϑ∥2\operatorname{dist}(\Theta,\mathcal{M}_{\mathcal{G}})=\inf_{\vartheta\in\mathcal{M}_{\mathcal{G}}}\lVert\Theta-\vartheta\rVert_2. We use oscillation because additive log-density errors independent of Θ\Theta do not affect the modes. The following proposition bounds the displacement of conditional parameter modes caused by FNLE approximation.

Proposition 1 (Stability of FNLE-based conditional parameter modes). Assume that both qGq_{\mathcal{G}} and q^G\hat{q}_{\mathcal{G}} attain their maxima on K\mathcal{K} for every G\mathcal{G} and its associated fixed y1:Ly_{1:L} and z1:Lz_{1:L}. Choose any ΘG⋆∈MG\Theta_{\mathcal{G}}^\star\in\mathcal{M}_{\mathcal{G}}. Suppose that there exist δ≥0\delta\ge0 and c>0c>0 such that, uniformly over G\mathcal{G} and its associated fixed y1:Ly_{1:L} and z1:Lz_{1:L},

osc⁡K(ηj)≤δ,j=2,…,L,\operatorname{osc}_{\mathcal{K}}(\eta_j)\le\delta,\qquad j=2,\ldots,L,
ℓG(ΘG⋆)−ℓG(Θ)≥c2dist⁡(Θ,MG)2,Θ∈K.(22)\ell_{\mathcal{G}}(\Theta_{\mathcal{G}}^\star)-\ell_{\mathcal{G}}(\Theta)\ge\frac{c}{2}\operatorname{dist}(\Theta,\mathcal{M}_{\mathcal{G}})^2,\qquad\Theta\in\mathcal{K}. \tag*{(22)}

For any Θ^G∈arg⁡max⁡Θ∈Kℓ^G(Θ)\hat{\Theta}_{\mathcal{G}}\in\arg\max_{\Theta\in\mathcal{K}}\hat{\ell}_{\mathcal{G}}(\Theta), set DG=dist⁡(Θ^G,MG)D_{\mathcal{G}}=\operatorname{dist}(\hat{\Theta}_{\mathcal{G}},\mathcal{M}_{\mathcal{G}}). Let Eunif[⋅∣Q]\mathbb{E}_{\mathrm{unif}}[\cdot\mid Q] denote expectation over the uniformization event grid generated by a Poisson process with constant rate Ω(Q)\Omega(Q) on [0,T][0,T], conditional on QQ, with the observation grid fixed. Then

Eunif[DG∣Q]≤[2δc{N−1T+Ω(Q)}]1/2.(23)\mathbb{E}_{\mathrm{unif}}[D_{\mathcal{G}}\mid Q]\le\left[\frac{2\delta}{c}\left\{\frac{N-1}{T}+\Omega(Q)\right\}\right]^{1/2}. \tag*{(23)}

The first condition bounds parameter-dependent variation in the FNLE log-density error; the second is a quadratic separation condition requiring the normalized log posterior to decrease at least quadratically with distance from its mode set. Both conditions must hold uniformly over grids and fixed latent variables and are not guaranteed by FNLE training. This local sensitivity result does not guarantee the marginal posterior or the full sampler. At a fixed observation frequency (N−1)/T(N-1)/T, the bound remains uniformly bounded as NN increases, provided that Ω(Q)\Omega(Q), δ\delta, and c−1c^{-1} remain bounded. A proof is provided in Appendix § 11.

Numerical Experiments

MCMC settings and initialization are detailed in Appendix § 13.1.3. Computing infrastructure and software are described in Appendices § 13.§ 6.1 and § 13.§ 6.2, respectively.

Posterior Comparison on an Ornstein–Uhlenbeck Model

To assess the effect of FNLE approximation error, we compare posterior distributions obtained with two approximate MCMC samplers and an exact MCMC sampler (§ 5) for a tractable SSDE. We use an SSDE with K=2K=2 and an Ornstein–Uhlenbeck (OU) model [33] in each regime. In regime kk, the model is

dYt=κ(μk−Yt)dt+σdWt.(24)\mathrm{d}Y_t=\kappa(\mu_k-Y_t)\mathrm{d}t+\sigma\mathrm{d}W_t. \tag*{(24)}

Here, WtW_t is a one-dimensional standard Brownian motion. Each regime-specific OU SDE has an exact transition density and bridge distribution, making this SSDE tractable under the definition in Sec-tion 4.1. tion 4. Figure 2 compares posterior parameter distributions from the three samplers. The sampler using FNLE trained on exact transitions produces posterior marginals close to those from the exact sampler. The marginals remain similar when FNLE is trained on Euler–Maruyama simulations instead, as in the subsequent experiments on intractable SSDEs. All three samplers recovered the SDE parameters and regime path, with R^\hat{R} values close to one (Appendix Table 10). The experimental settings are given in Appendix § 13.§ 2.1.

Figure 2. Comparison of inference results for the OU experiment using an exact MCMC sampler and two approximate MCMC samplers with FNLE trained on exact transitions and Euler–Maruyama simulations, respectively.

Synthetic-Data Experiments

We evaluate regime-path recovery and estimation of Θ\Theta using synthetic data from three SSDE models with K=2K = 2 and known regimes and parameters. The remaining three rows of Table 2 summarize these intractable SSDEs; the first row describes the tractable OU benchmark in § 6.1.

ModelObservation errorNonlinear driftState-dependent diffusionIntractable transition densityMultivariate states
Ornstein–Uhlenbeck✓××××
Lotka–Volterra✓✓✓✓✓
Gene-expression CLE✓×✓✓✓
Susceptible–infected–recovered epidemic model✓✓✓✓✓

Table 2. Characteristics of the SSDE Models Used to Generate the Synthetic Datasets. ✓: Present; ×: Absent.

All three models include observation error, state-dependent diffusion, and multivariate latent states. The previous methods in Table 1 have not demonstrated applications combining these features.

Wt,1W_{t,1} and Wt,2W_{t,2} denote independent Brownian motions. Complete settings of these three experiments are given in Appendices § 13.§ 2.2, § 13.2.3, and § 13.2.4, respectively.

Lotka–Volterra Equation We write Yt,1Y_{t,1} and Yt,2Y_{t,2} for predator and prey abundance, respectively. The drift follows the classical Lotka–Volterra (LV) predator–prey model [26, 35], and independent multiplicative noise is introduced as in Li and Mao [23]. In regime kk, the model is

dYt,1=(γkYt,2Yt,1−δkYt,1) dt+σ1Yt,1 dWt,1,dYt,2=(αkYt,2−βkYt,2Yt,1) dt+σ2Yt,2 dWt,2.(25)\begin{aligned} \mathrm{d}Y_{t,1} &= (\gamma_k Y_{t,2}Y_{t,1}-\delta_k Y_{t,1})\,\mathrm{d}t+\sigma_1Y_{t,1}\,\mathrm{d}W_{t,1},\\ \mathrm{d}Y_{t,2} &= (\alpha_k Y_{t,2}-\beta_kY_{t,2}Y_{t,1})\,\mathrm{d}t+\sigma_2Y_{t,2}\,\mathrm{d}W_{t,2}. \tag*{(25)} \end{aligned}

Chemical Langevin Equation We write Yt,1Y_{t,1} for the mRNA copy number and Yt,2Y_{t,2} for the fluorescence intensity proportional to the protein copy number, using continuous approximations to the copy numbers. We use a chemical Langevin equation (CLE) [10], whose dynamics in regime kk are

dYt,1=(αk−βYt,1)dt+αk+βYt,1 dWt,1,dYt,2=(γYt,1−δYt,2)dt+cγYt,1+δYt,2 dWt,2.(26)\begin{aligned} \mathrm{d}Y_{t,1} &= (\alpha_k-\beta Y_{t,1})\mathrm{d}t+\sqrt{\alpha_k+\beta Y_{t,1}}\,\mathrm{d}W_{t,1},\\ \mathrm{d}Y_{t,2} &= (\gamma Y_{t,1}-\delta Y_{t,2})\mathrm{d}t+c\sqrt{\gamma Y_{t,1}+\delta Y_{t,2}}\,\mathrm{d}W_{t,2}. \tag*{(26)} \end{aligned}

For inference, we reparameterize the CLE using ρk=αk/β\rho_k=\alpha_k/\beta and β\beta instead of αk\alpha_k and β\beta to improve MCMC mixing. The coefficient c2c^2 converts protein copy number to fluorescence intensity.

Susceptible–Infected–Recovered Epidemic Model We write Yt,1Y_{t,1} and Yt,2Y_{t,2} for the susceptible and recovered populations, respectively. The drift follows the classical susceptible–infected–recovered epidemic model [16], and the diffusion terms follow the chemical Langevin approximation [10]. The infected population is determined by It=Npop−Yt,1−Yt,2I_t=N_{\mathrm{pop}}-Y_{t,1}-Y_{t,2}, where NpopN_{\mathrm{pop}} is the fixed total population. In regime kk, the model is

dYt,1=−βkYt,1ItNpop dt−βkYt,1ItNpop dWt,1,dYt,2=γkIt dt+γkIt dWt,2.(27)\begin{aligned} \mathrm{d}Y_{t,1} &= -\frac{\beta_kY_{t,1}I_t}{N_{\mathrm{pop}}}\,\mathrm{d}t-\sqrt{\frac{\beta_kY_{t,1}I_t}{N_{\mathrm{pop}}}}\,\mathrm{d}W_{t,1},\\ \mathrm{d}Y_{t,2} &= \gamma_kI_t\,\mathrm{d}t+\sqrt{\gamma_kI_t}\,\mathrm{d}W_{t,2}. \tag*{(27)} \end{aligned}

Posterior means were close to the true parameters with narrow 95% credible intervals in all three experiments (Figure 3). The posterior regime probabilities also recovered the true switching pattern. The τ1\tau_1 parameter in the CLE experiment and τ1,τ2\tau_1,\tau_2 in the susceptible–infected–recovered experiment showed poor mixing (Appendix Tables 12 and 13); diagnostics for the LV experiment are in Appendix Table 11.

Figure 3. Inference results for synthetic data from three SSDEs with regime-specific Lotka–Volterra, gene-expression chemical Langevin, and susceptible–infected–recovered epidemic models (left to right).

Real-Data Application

We applied the proposed method to 71 paired abundance observations of Didinium and Paramecium from Veilleux [34], using the LV SSDE in Eq. (25) with K=2K=2. Data preprocessing and inference settings are given in Appendix § 13.§ 3.

As shown in Figure 4, the posterior probability of regime 2 increased around t=7t=7 and remained close to one thereafter. Notably, the initial regime identified in an unsupervised manner closely corresponds to the transient period that was manually excluded prior to fitting a LV model in a previous analysis of these data [24]. Appendix Figure 5 shows similar chain-specific marginal posterior distributions and overlapping traces across the four chains. The diagnostics in Appendix Table 14 also suggest convergence.

Figure 4. Real-data inference results for the Didinium–Paramecium time series using a Lotka–Volterra SSDE.

Conclusion

We proposed a broadly applicable approximate MCMC sampler combining time-conditioned FNLE and uniformization for joint inference of SSDE latent states, regimes, and parameters. Starting from an exact uniformization-based MCMC sampler for tractable SSDEs, we used FNLE to approximate transition densities and SIR to sample approximately from bridge distributions, extending the approach to intractable SSDEs. In the OU benchmark, approximate samplers using FNLE trained on exact or Euler–Maruyama transitions produced posterior parameter marginals similar to those from exact MCMC. The approximate sampler also recovered parameters and regime paths for the three SSDE models, to which existing methods have limited applicability. In the real-data analysis of the Didinium–Paramecium time series, the method identified a persistent regime transition from the initial transient dynamics to the subsequent predator–prey dynamics.

AI use statement

In this work, we used generative AI tools to help develop theoretical models or conceptual frameworks, formulate mathematical claims, provide critical ingredients for proving mathematical claims, assist in the writing of proofs, design or provide feedback on research methodology or experiments, implement methods, and assist with translation. We have not used generative AI tools to generate synthetic datasets, propose or refine hypotheses, clean and reformat datasets, support qualitative and thematic data analysis, or interpret results. Additionally, we used generative AI tools to create or modify scientific figures or images, suggest experimental parameters, create or edit software code, draft parts of a research paper, summarize or analyze existing literature, brainstorm, source or search for information, edit a research paper to improve readability, identify relevant literature, and propose a title or keywords. We have reviewed all AI-assisted work. We manually reviewed all LLM-generated code, draft text, and proofs. All changes, whether AI-assisted or manual, were tracked using git, and we inspected the corresponding diffs to carefully review modifications made with the assistance of LLMs. LLM-assisted proofs were checked by the authors for correctness. All references were added to the BibTeX file manually after verifying their bibliographic information against the original sources and reading the cited works to confirm their content and relevance. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.

Code Availability

The code for the numerical experiments is available at https://github.com/shion-h/fnle-ssde.

Exact Sampling Construction

We derive an exact version of Algorithm 1 from the proper full-path posterior in Eq. (12), assuming exact SDE transition densities and sampling from bridge distributions are available. For any time set G\mathcal{G}, define YG={Yt}t∈GY_{\mathcal{G}} = \{Y_t\}_{t\in\mathcal{G}} and Y\G={Yt}t∈[0,T]∖GY_{\backslash\mathcal{G}} = \{Y_t\}_{t\in[0,T]\setminus\mathcal{G}}, with realizations denoted by lowercase symbols, and let Tret=Tobs∪Ttrue\mathcal{T}_{\mathrm{ret}} = \mathcal{T}_{\mathrm{obs}} \cup\mathcal{T}_{\mathrm{true}}. Each sweep first samples (Tcand,Y\Tret)(\mathcal{T}_{\mathrm{cand}}, Y_{\backslash\mathcal{T}_{\mathrm{ret}}}) conditional on the current regime, retained state values, and parameters. With the resulting Tevent\mathcal{T}_{\mathrm{event}} and Tall\mathcal{T}_{\mathrm{all}} fixed, it updates the blocks YY, (Z,Y\Tall)(Z, Y_{\backslash\mathcal{T}_{\mathrm{all}}}), and (Θ,Y\Tall)(\Theta, Y_{\backslash\mathcal{T}_{\mathrm{all}}}), followed by τ2\tau^2. The candidate-time augmentation is then marginalized before updating QQ. The factorizations below permit trimming unused path draws by partially collapsed Gibbs sampling [7].

Uniformization Matrices and Candidate Times

For a transition rate matrix QQ, choose a deterministic rate Ω=Ω(Q)>max⁡k(−qkk)\Omega= \Omega(Q) > \max_k(-q_{kk}). The uniformized chain has transition matrix [30]

B=IK+QΩ,(28)B = I_K + \frac{Q}{\Omega}, \tag*{(28)}

where IKI_K is the K×KK \times K identity matrix. On Tall\mathcal{T}_{\mathrm{all}}, event times permit regime transitions, whereas observation-only times preserve the regime:

Aj={B,tj∈Tevent,IK,tj∈Tobs,j=2,…,L.(29)A_j = \begin{cases} B, & t_j \in\mathcal{T}_{\mathrm{event}},\\ I_K, & t_j \in\mathcal{T}_{\mathrm{obs}}, \end{cases} \qquad j = 2,\ldots,L. \tag*{(29)}

Event times almost surely do not coincide with the fixed observation times. See Rao and Teh [30] for the uniformization construction and its MCMC application.

For candidate generation, let [ar,br][a_r,b_r], r=1,…,RZr = 1,\ldots,R_Z, be the intervals between consecutive times in {0,T}∪Ttrue\{0,T\} \cup\mathcal{T}_{\mathrm{true}}, with regime krk_r in each interval’s interior. Conditional on the current path and QQ, sample independently across intervals

Mr∼Poisson⁡{(Ω+qkrkr)(br−ar)},(30)M_r \sim\operatorname{Poisson}\left\{(\Omega+ q_{k_rk_r})(b_r-a_r)\right\}, \tag*{(30)}

followed by

ur,m∣Mr∼i.i.d.Uniform⁡(ar,br),m=1,…,Mr,(31)u_{r,m} \mid M_r \mathrel{\overset{\mathrm{i.i.d.}}{\sim}} \operatorname{Uniform}(a_r,b_r), \qquad m = 1,\ldots,M_r, \tag*{(31)}

where Poisson⁡(λ)\operatorname{Poisson}(\lambda) has mean λ\lambda, and Uniform⁡(a,b)\operatorname{Uniform}(a,b) is uniform on (a,b)(a,b). The sampled times ur,mu_{r,m} form Tcand\mathcal{T}_{\mathrm{cand}}.

Block Gibbs Construction

Candidate Grids and Path Augmentation

Conditional on ZZ, Tret\mathcal{T}_{\mathrm{ret}} is fixed, and the (Tcand,Y\Tret)(\mathcal{T}_{\mathrm{cand}}, Y_{\backslash\mathcal{T}_{\mathrm{ret}}}) update factors by conditional independence:

p(Tcand,y\Tret∣yTret,z,Θ,Q,τ2,x)=p(Tcand∣z,Q)×p(y\Tret∣yTret,z,Θ).(32)\begin{aligned} p(\mathcal{T}_{\mathrm{cand}}, y_{\backslash\mathcal{T}_{\mathrm{ret}}} \mid y_{\mathcal{T}_{\mathrm{ret}}}, z, \Theta, Q, \tau^2, x) &= p(\mathcal{T}_{\mathrm{cand}} \mid z,Q) \\ &\quad\times p(y_{\backslash\mathcal{T}_{\mathrm{ret}}} \mid y_{\mathcal{T}_{\mathrm{ret}}}, z,\Theta). \tag*{(32)} \end{aligned}

The first factor is the conditional Poisson process in Eqs. (30) and (31) [30].

Use the local indices a:ba:b from Eq. (13), with endpoints ta−1t_{a-1} and tb+1t_{b+1} consecutive in Tret\mathcal{T}_{\mathrm{ret}} and regime kk between them. By the Markov property and the Chapman–Kolmogorov equation, its candidate-time marginal is

p(ya:b∣ya−1,yb+1,z,Tall,Θ)=∏j=ab+1p(yj∣yj−1,θk,Δj)p(yb+1∣ya−1,θk,tb+1−ta−1).(33)p(y_{a:b}\mid y_{a-1},y_{b+1},z,\mathcal{T}_{\mathrm{all}},\Theta) = \frac{\prod_{j=a}^{b+1}p(y_j\mid y_{j-1},\theta_k,\Delta_j)} {p(y_{b+1}\mid y_{a-1},\theta_k,t_{b+1}-t_{a-1})}. \tag*{(33)}

Sampling the intervening paths from their bridge distributions conditional on yTcandy_{\mathcal{T}_{\mathrm{cand}}} yields Y∖TretY\setminus\mathcal{T}_{\mathrm{ret}}.

Latent-State Update

The YY block factors as

p(yTall,y∖Tall∣z,Tevent,Θ,τ2,x)=p(yTall∣z,Tevent,Θ,τ2,x)×p(y∖Tall∣yTall,z,Tevent,Θ).(34)\begin{aligned} p(y_{\mathcal{T}_{\mathrm{all}}},y_{\setminus\mathcal{T}_{\mathrm{all}}}\mid z,\mathcal{T}_{\mathrm{event}},\Theta,\tau^2,x) &=p(y_{\mathcal{T}_{\mathrm{all}}}\mid z,\mathcal{T}_{\mathrm{event}},\Theta,\tau^2,x)\\ &\quad\times p(y_{\setminus\mathcal{T}_{\mathrm{all}}}\mid y_{\mathcal{T}_{\mathrm{all}}},z,\mathcal{T}_{\mathrm{event}},\Theta). \tag*{(34)} \end{aligned}

Since zj−1z_{j-1} is the regime on [tj−1,tj)[t_{j-1},t_j), the Markov property gives

p(y1:L∣z1:L,Tevent,Θ)=p(y1)∏j=2Lp(yj∣yj−1,θzj−1,Δj).(35)p(y_{1:L}\mid z_{1:L},\mathcal{T}_{\mathrm{event}},\Theta) = p(y_1)\prod_{j=2}^{L}p(y_j\mid y_{j-1},\theta_{z_{j-1}},\Delta_j). \tag*{(35)}

Multiplying by p(x∣y1:L,τ2)p(x\mid y_{1:L},\tau^2) gives Eq. (15).

Regime Conditional Distribution

The (Z,YTall)(Z,Y_{\mathcal{T}_{\mathrm{all}}}) block factors as

p(z,y∖Tall∣yTall,Tevent,Θ,Q,τ2,x)=p(z∣yTall,Tevent,Θ,Q,τ2,x)×p(y∖Tall∣yTall,z,Tevent,Θ).(36)\begin{aligned} p(z,y_{\setminus\mathcal{T}_{\mathrm{all}}}\mid y_{\mathcal{T}_{\mathrm{all}}},\mathcal{T}_{\mathrm{event}},\Theta,Q,\tau^2,x) &=p(z\mid y_{\mathcal{T}_{\mathrm{all}}},\mathcal{T}_{\mathrm{event}},\Theta,Q,\tau^2,x)\\ &\quad\times p(y_{\setminus\mathcal{T}_{\mathrm{all}}}\mid y_{\mathcal{T}_{\mathrm{all}}},z,\mathcal{T}_{\mathrm{event}},\Theta). \tag*{(36)} \end{aligned}

Uniformization [30] and identity transitions at observation-only times give

p(Tevent,z1:L∣Q)=p(Tevent∣Ω(Q))p(z1)∏j=2LAj(zj−1,zj).(37)p(\mathcal{T}_{\mathrm{event}},z_{1:L}\mid Q) = p(\mathcal{T}_{\mathrm{event}}\mid\Omega(Q))p(z_1)\prod_{j=2}^{L}A_j(z_{j-1},z_j). \tag*{(37)}

Here, p(Tevent∣Ω(Q))p(\mathcal{T}_{\mathrm{event}}\mid\Omega(Q)) is the Poisson-process density. Bayes’ rule with Eqs. (37) and (35) expresses the first factor in Eq. (36) as Eq. (16).

Parameter Updates

The (Θ,YTall)(\Theta,Y_{\mathcal{T}_{\mathrm{all}}}) block factors as

p(Θ,y∖Tall∣yTall,z,Tevent,Q,τ2,x)=p(Θ∣yTall,z,Tevent)×p(y∖Tall∣yTall,z,Tevent,Θ).(38)\begin{aligned} p(\Theta,y_{\setminus\mathcal{T}_{\mathrm{all}}}\mid y_{\mathcal{T}_{\mathrm{all}}},z,\mathcal{T}_{\mathrm{event}},Q,\tau^2,x) &=p(\Theta\mid y_{\mathcal{T}_{\mathrm{all}}},z,\mathcal{T}_{\mathrm{event}})\\ &\quad\times p(y_{\setminus\mathcal{T}_{\mathrm{all}}}\mid y_{\mathcal{T}_{\mathrm{all}}},z,\mathcal{T}_{\mathrm{event}},\Theta). \tag*{(38)} \end{aligned}

Using Eq. (35) and the independent prior for Θ\Theta gives Eq. (17) for the first factor. The τ2\tau^2 update in Eq. (47) depends on YY only through YTobsY_{\mathcal{T}_{\mathrm{obs}}}.

Marginalizing Tcand\mathcal{T}_{\mathrm{cand}} recovers Eq. (12), under which Q∣zQ\mid z follows Eq. (49). After this collapsed update, new candidate times must be generated using the updated QQ before any further grid-dependent update [7].

Trimming and Invariance Across Iterations

Within a sweep, each draw of YTallY_{\mathcal{T}_{\mathrm{all}}} is unused by the subsequent marginal update; the τ2\tau^2 and QQ updates also require no such values.

Every updated true-jump time lies in Tevent\mathcal{T}_{\mathrm{event}}, implying that the updated Tret\mathcal{T}_{\mathrm{ret}} is a subset of the current Tall\mathcal{T}_{\mathrm{all}}. Equation (32) resamples the path outside this retained set before any values at new candidate times are used. Thus, the final intervening-path draw of the previous sweep is also unused.

Trimming these draws preserves the retained-variable transition kernel [7]. The block updates and augmentation preserve the full-path posterior marginal; hence, at sweep boundaries, the invariant distribution is the marginal of Eq. (12) on

(Z,YTret,Θ,τ2,Q),Tret=Tobs∪Ttrue.(39)(Z,Y_{\mathcal{T}_{\mathrm{ret}}},\Theta,\tau^2,Q), \qquad\mathcal{T}_{\mathrm{ret}}=\mathcal{T}_{\mathrm{obs}}\cup\mathcal{T}_{\mathrm{true}}. \tag*{(39)}

In particular, its (Z,Θ,τ2,Q)(Z,\Theta,\tau^2,Q) marginal is the desired posterior marginal.

For fixed Tevent\mathcal{T}_{\mathrm{event}}, the retained conditionals share the same marginalized posterior. The YTallY_{\mathcal{T}_{\mathrm{all}}} and Θ\Theta draws may therefore be replaced by Markov transitions preserving their respective conditionals, including NUTS with fixed tuning [14, 25].

Proof of Proposition 1

Proof. Fix a realized grid G\mathcal{G} and its associated y1:Ly_{1:L} and z1:Lz_{1:L}. Because the exact and FNLE-based conditional densities differ only in their transition-density factors, they can be written with a common multiplicative convention as

qG(Θ)=p(Θ)∏j=2Lp(yj∣yj−1,hzj−1(Θ),Δj),q_{\mathcal{G}}(\Theta)=p(\Theta)\prod_{j=2}^{L}p(y_j\mid y_{j-1},h_{z_{j-1}}(\Theta),\Delta_j),
q^G(Θ)=p(Θ)∏j=2Lp^ϕ(yj∣yj−1,hzj−1(Θ),Δj).\widehat{q}_{\mathcal{G}}(\Theta)=p(\Theta)\prod_{j=2}^{L}\widehat{p}_{\phi}(y_j\mid y_{j-1},h_{z_{j-1}}(\Theta),\Delta_j).

Any omitted factors are independent of Θ\Theta and therefore do not affect either conditional mode. The common prior factor cancels from the difference between the normalized log densities, and we have

eG(Θ):=ℓ^G(Θ)−ℓG(Θ)=1T∑j=2Lηj(Θ).e_{\mathcal{G}}(\Theta):=\widehat{\ell}_{\mathcal{G}}(\Theta)-\ell_{\mathcal{G}}(\Theta) =\frac{1}{T}\sum_{j=2}^{L}\eta_j(\Theta).

For arbitrary functions f2,…,fLf_2,\ldots,f_L on K\mathcal{K},

osc⁡K(∑j=2Lfj)≤∑j=2Losc⁡K(fj).\operatorname{osc}_{\mathcal{K}}\left(\sum_{j=2}^{L}f_j\right)\leq\sum_{j=2}^{L}\operatorname{osc}_{\mathcal{K}}(f_j).

Applying this inequality to the local errors and using the first condition in Eq. (22) yields

osc⁡K(eG)≤1T∑j=2Losc⁡K(ηj)≤(L−1)δT.(40)\operatorname{osc}_{\mathcal{K}}(e_{\mathcal{G}})\leq\frac{1}{T}\sum_{j=2}^{L}\operatorname{osc}_{\mathcal{K}}(\eta_j) \leq\frac{(L-1)\delta}{T}. \tag*{(40)}

The maximizing property of Θ^G\widehat{\Theta}_{\mathcal{G}} gives

ℓ^G(Θ^G)≥ℓ^G(ΘG⋆).\widehat{\ell}_{\mathcal{G}}(\widehat{\Theta}_{\mathcal{G}})\geq\widehat{\ell}_{\mathcal{G}}(\Theta^\star_{\mathcal{G}}).

Substituting ℓ^G=ℓG+eG\widehat{\ell}_{\mathcal{G}}=\ell_{\mathcal{G}}+e_{\mathcal{G}} and rearranging gives

ℓG(ΘG⋆)−ℓG(Θ^G)≤eG(Θ^G)−eG(ΘG⋆)≤osc⁡K(eG).\ell_{\mathcal{G}}(\Theta_{\mathcal{G}}^\star)-\ell_{\mathcal{G}}(\widehat{\Theta}_{\mathcal{G}})\leq e_{\mathcal{G}}(\widehat{\Theta}_{\mathcal{G}})-e_{\mathcal{G}}(\Theta_{\mathcal{G}}^\star) \leq\operatorname{osc}_{K}(e_{\mathcal{G}}).

Combining the second condition in Eq. (22) with Eq. (40) therefore gives

c2DG2≤ℓG(ΘG⋆)−ℓG(Θ^G)≤(L−1)δT.\frac{c}{2}D_{\mathcal{G}}^2\leq\ell_{\mathcal{G}}(\Theta_{\mathcal{G}}^\star)-\ell_{\mathcal{G}}(\widehat{\Theta}_{\mathcal{G}}) \leq\frac{(L-1)\delta}{T}.

Consequently, every realized grid satisfies the pointwise bound

DG≤{2(L−1)δcT}1/2.(41)D_{\mathcal{G}}\leq\left\{\frac{2(L-1)\delta}{cT}\right\}^{1/2}. \tag*{(41)}

It remains to average Eq. (41) over the joint uniformization construction. Let M=∣Tevent∣M=\lvert\mathcal{T}_{\mathrm{event}}\rvert be the number of uniformization events. Conditional on QQ, the event process is a Poisson process with rate Ω(Q)\Omega(Q), and hence

M∣Q∼Poisson⁡{Ω(Q)T}.M\mid Q\sim\operatorname{Poisson}\{\Omega(Q)T\}.

The Poisson event times are almost surely distinct from one another and from the NN fixed observation times, and L=N+ML=N+M almost surely and

Eunif[L−1∣Q]=N−1+Ω(Q)T.(42)\mathbb{E}_{\mathrm{unif}}[L-1\mid Q]=N-1+\Omega(Q)T. \tag*{(42)}

The pointwise bound in Eq. (41) is uniform in the associated fixed yy and zz, and only the distribution of LL is needed below. Taking conditional expectations in Eq. (41) and applying Jensen’s inequality to the concave square-root function gives

Eunif[DG∣Q]≤(2δcT)1/2Eunif[(L−1)1/2∣Q]≤{2δcTEunif[L−1∣Q]}1/2=[2δc{N−1T+Ω(Q)}]1/2,\begin{aligned} \mathbb{E}_{\mathrm{unif}}[D_{\mathcal{G}}\mid Q]\leq\left(\frac{2\delta}{cT}\right)^{1/2}\mathbb{E}_{\mathrm{unif}}[(L-1)^{1/2}\mid Q] \\ &\leq\left\{\frac{2\delta}{cT}\mathbb{E}_{\mathrm{unif}}[L-1\mid Q]\right\}^{1/2} \\ &=\left[\frac{2\delta}{c}\left\{\frac{N-1}{T}+\Omega(Q)\right\}\right]^{1/2}, \end{aligned}

where the final equality follows from Eq. (42). This is Eq. (23) and completes the proof.

Algorithmic Details and Extensions

Sampling State Values at Candidate Times with SIR

Before applying the NUTS update to yy, we use sampling-importance-resampling (SIR) to assign latent values {yt}t∈Tcand\{y_t\}_{t\in\mathcal{T}_{\mathrm{cand}}}. Using local indices on the combined time grid containing the newly sampled Tcand\mathcal{T}_{\mathrm{cand}}, consider a consecutive block ya:by_{a:b} of current state values at candidate times with fixed neighboring values ya−1y_{a-1} and yb+1y_{b+1} at adjacent points of Tobs∪Ttrue\mathcal{T}_{\mathrm{obs}}\cup\mathcal{T}_{\mathrm{true}}. For particle p=1,…,Pp=1,\ldots,P, we simulate

yj(p)∼p^ϕ( ⋅∣yj−1(p),θzj−1,Δj),j=a,…,b,(43)y_j^{(p)}\sim\widehat{p}_{\phi}\left(\,\cdot\mid y_{j-1}^{(p)},\theta_{z_{j-1}},\Delta_j\right),\qquad j=a,\ldots,b, \tag*{(43)}

with ya−1(p)=ya−1y_{a-1}^{(p)}=y_{a-1}. Because the proposal is the forward FNLE transition-density approximation from the left endpoint, the SIR weight is

w~p=p^ϕ(yb+1∣yb(p),θzb,Δb+1),(44)\widetilde{w}_p=\widehat{p}_{\phi}\left(y_{b+1}\mid y_b^{(p)},\theta_{z_b},\Delta_{b+1}\right), \tag*{(44)}
wp=w~p∑q=1Pw~q.(45)w_p=\frac{\widetilde{w}_p}{\sum_{q=1}^{P}\widetilde{w}_q}. \tag*{(45)}

We then draw A∼Categorical⁡(w1,…,wP)A\sim\operatorname{Categorical}(w_1,\ldots,w_P) and set ya:b=ya:b(A)y_{a:b}=y_{a:b}^{(A)}. This construction is applied to every interval between consecutive points of Tobs∪Ttrue\mathcal{T}_{\mathrm{obs}}\cup\mathcal{T}_{\mathrm{true}} that contains at least one current candidate time.

Conjugate Parameter Updates

Let τd2\tau_d^2 denote the dd-th element of τ2\tau^2. Assume independent priors τd2∼InvGamma⁡(αdτ,βdτ)\tau_d^2 \sim\operatorname{InvGamma}(\alpha_d^\tau,\beta_d^\tau) and qkh∼Gamma⁡(αQ,βQ)q_{kh} \sim\operatorname{Gamma}(\alpha^Q,\beta^Q) for k≠hk \ne h, with the Gamma distribution parameterized by shape and rate. Here, InvGamma⁡(a,b)\operatorname{InvGamma}(a,b) denotes the inverse-Gamma distribution with shape aa and scale bb, whose density is proportional to v−a−1exp⁡(−b/v)v^{-a-1}\exp(-b/v) for v>0v>0. Let

Rd=∑i=1N(xi,d−ytiobs,d)2.(46)R_d = \sum_{i=1}^{N}\left(x_{i,d}-y_{t_i^{\mathrm{obs}},d}\right)^2. \tag*{(46)}

The conjugate observation-noise update used in Algorithm 1 is

τd2∣x,y∼InvGamma⁡(αdτ+N2,βdτ+Rd2).(47)\tau_d^2 \mid x,y \sim\operatorname{InvGamma}\left(\alpha_d^\tau+\frac{N}{2},\beta_d^\tau+\frac{R_d}{2}\right). \tag*{(47)}

Let nkhn_{kh} be the number of true jumps from kk to hh, and let

mk=∫0TI{Zt=k} dt(48)m_k = \int_0^T \mathbb{I}\{Z_t=k\}\,\mathrm{d}t \tag*{(48)}

be the total holding time in regime kk. After marginalizing the virtual jumps, the conjugate update is

qkh∣z∼Gamma⁡(αQ+nkh,βQ+mk),k≠h.(49)q_{kh}\mid z \sim\operatorname{Gamma}(\alpha^Q+n_{kh},\beta^Q+m_k),\qquad k\ne h. \tag*{(49)}

The diagonal entries are set to

qkk=−∑h≠kqkh.(50)q_{kk}=-\sum_{h\ne k}q_{kh}. \tag*{(50)}

Extension to Multiple Time Series

Suppose that SS time series are conditionally independent given the shared parameters Θ\Theta, τ2\tau^2, QQ. Series ss has its own observations, latent state process, regime path, and combined time grid, denoted by x(s)x^{(s)}, Y(s)Y^{(s)}, Z(s)Z^{(s)}, and Tall(s)\mathcal{T}_{\mathrm{all}}^{(s)}, respectively. Let NsN_s be its number of observations, LsL_s its number of combined grid points, and [0,Ts][0,T_s] its observation interval. We use yj(s)y_j^{(s)}, zj(s)z_j^{(s)}, and Δj(s)\Delta_j^{(s)} for its latent states and regimes at the grid points, and its interval lengths, respectively.

The initialization and the candidate-grid, latent-state, and regime updates in Algorithm 1 are performed separately for each series. The shared parameters are then updated using the contributions from all series, with each prior included only once. The FNLE-based conditional density corresponding to Eq. (17) becomes

p^(Θ∣{y(s),z(s),Tall(s)}s=1S)∝p(Θ)∏s=1S∏j=2Lsp^ϕ(yj(s)∣yj−1(s),hzj−1(s)(Θ),Δj(s)).(51)\hat{p}\left(\Theta\mid\left\{y^{(s)},z^{(s)},\mathcal{T}_{\mathrm{all}}^{(s)}\right\}_{s=1}^{S}\right)\propto p(\Theta)\prod_{s=1}^{S}\prod_{j=2}^{L_s}\hat{p}_{\phi}\left(y_j^{(s)}\mid y_{j-1}^{(s)},h_{z_{j-1}^{(s)}}(\Theta),\Delta_j^{(s)}\right). \tag*{(51)}

For the observation-noise update in Eq. (47), replace NN by ∑s=1SNs\sum_{s=1}^{S}N_s and RdR_d by ∑s=1SRd(s)\sum_{s=1}^{S}R_d^{(s)}, where

Rd(s)=∑i=1Ns(xi,d(s)−yti,obs(s),d(s))2(52)R_d^{(s)}=\sum_{i=1}^{N_s}\left(x_{i,d}^{(s)}-y_{t_{i,\mathrm{obs}}^{(s)},d}^{(s)}\right)^2 \tag*{(52)}

is the residual sum of squares for component dd in series ss. For Eq. (49), replace nkhn_{kh} and mkm_k by ∑s=1Snkh(s)\sum_{s=1}^{S}n_{kh}^{(s)} and ∑s=1Smk(s)\sum_{s=1}^{S}m_k^{(s)}, where nkh(s)n_{kh}^{(s)} counts the true jumps from kk to hh in series ss, and

mk(s)=∫0TsI{Zt(s)=k} dt(53)m_k^{(s)}=\int_0^{T_s}\mathbb{I}\{Z_t^{(s)}=k\}\,\mathrm{d}t \tag*{(53)}

is its holding time in regime kk.

Computational Complexity

For one sweep with LL combined grid points, KK regimes, and PP SIR particles, constructing the emission factors requires K(L−1)K(L-1) FNLE density evaluations, followed by O(LK2)O(LK^2) arithmetic operations for FFBS [30]. SIR requires O(P∣Tcand∣)O(P\lvert T_{\mathrm{cand}}\rvert) conditional FNLE samples and density evaluations across all candidate blocks. The NUTS cost depends on its trajectory-dependent number of gradient evaluations, each involving O(L)O(L) local FNLE terms, together with observation and prior terms [14]. These costs exclude offline FNLE training.

Experimental Settings

This appendix records the settings for the synthetic-data experiments (OU comparison, LV, gene-expression CLE, and susceptible–infected–recovered) and the real-data LV analysis.

Settings for the Main Experiments

The synthetic-data LV, gene-expression CLE, and susceptible–infected–recovered experiments, along with the real-data LV analysis, use two regimes and observe every state component with Gaussian errors as in Eq. (10).

FNLE Training

The time-conditioned FNLE training dataset is

Dtrain={(yrprev,yrnext,θr,Δr)}r=1Rtrain,(54)\mathcal{D}_{\mathrm{train}} = \left\{\left(y_r^{\mathrm{prev}}, y_r^{\mathrm{next}}, \theta_r, \Delta_r\right)\right\}_{r=1}^{R_{\mathrm{train}}}, \tag*{(54)}

where RtrainR_{\mathrm{train}} is the number of simulated transitions and rr indexes training examples rather than positions in a trajectory. The density estimator is trained by maximizing the conditional log-likelihood

max⁡ϕ∑r=1Rtrainlog⁡p^ϕ(yrnext∣yrprev,θr,Δr).(55)\max_{\phi} \sum_{r=1}^{R_{\mathrm{train}}} \log\widehat{p}_{\phi}\left(y_r^{\mathrm{next}} \mid y_r^{\mathrm{prev}}, \theta_r, \Delta_r\right). \tag*{(55)}

Omitting elapsed-time conditioning gives the standard FNLE training objective.

A separate time-conditioned FNLE model was trained for each experiment. We used preliminary MCMC draws to check whether the FNLE parameter training ranges in Sections D.2.5 and D.3 covered the parameter regions relevant to inference. Where needed, we expanded the ranges, retrained FNLE, and reran MCMC. These adjustments refine the numerical likelihood approximation without changing the SSDE model or prior.

A natural cubic spline through that experiment’s observations was evaluated on an Euler–Maruyama grid [18] with step size h=0.01h = 0.01 to obtain a reference path. Negative spline values were truncated at zero. For every training example, each component of log⁡θ\log\theta was sampled uniformly between the logarithms of the corresponding physical-scale bounds reported below, and θ\theta was then obtained by exponentiation. For each training example, one location was selected from the reference path. Isotropic Gaussian noise with standard deviation 0.320.32 was added to this state. If the perturbed state left [0,104]D[0, 10^4]^D, the noise was redrawn until the state lay inside this domain.

The maximum elapsed time required for density evaluation is bounded by the largest observation interval, which determines the required training range. The number of numerical transitions, nn, was sampled uniformly from {1,…,nmax⁡}\{1,\ldots,n_{\max}\}, and the elapsed time was Δ=nh\Delta= nh. The simulator was advanced by nn Euler–Maruyama steps, and FNLE was trained on the scaled increment

R=Yt+Δ−YtΔ(56)R = \frac{Y_{t+\Delta} - Y_t}{\sqrt{\Delta}} \tag*{(56)}

conditional on (θ,Yt,Δ)(\theta, Y_t, \Delta). When the learned density of RR is evaluated as a transition density for Yt+ΔY_{t+\Delta}, the change of variables gives

p^ϕ(ynext∣yprev,θ,Δ)=Δ−D/2p^ϕ,R(ynext−yprevΔ∣yprev,θ,Δ).(57)\widehat{p}_{\phi}\left(y^{\mathrm{next}} \mid y^{\mathrm{prev}}, \theta, \Delta\right) = \Delta^{-D/2}\widehat{p}_{\phi,R}\left(\left.\frac{y^{\mathrm{next}}-y^{\mathrm{prev}}}{\sqrt{\Delta}}\right|y^{\mathrm{prev}},\theta,\Delta\right). \tag*{(57)}

Thus, Eq. (56) is a target reparameterization and does not change the underlying transition model. For the OU experiment, the two FNLE training sets shared identical conditioning inputs (yprevy^{\mathrm{prev}}, θ\theta, Δ\Delta) and differed only in how ynexty^{\mathrm{next}} was generated. For approximate MCMC with FNLE (exact-transition training), it was sampled from the exact transition density in Appendix § 13.§ 2.1; for approximate MCMC with FNLE (Euler–Maruyama training), it was generated by Euler–Maruyama.

Every FNLE model was a neural spline flow [6] with 50 hidden features, five transforms, and ten spline bins. Each synthetic-data training set contained 100,000 independently sampled parameter settings, and the real-data training set contained 800,000, with one simulated transition per setting. Training used a batch size of 256, a learning rate of 5×10−45 \times10^{-4}, at most 100 epochs, and early stopping after 20 epochs without validation-loss improvement. The density estimator and batch size were selected through preliminary experiments, and maximum epoch counts were set according to the available computational budget. All other FNLE training hyperparameters used the sbi defaults, including reserving 10% of the simulated transitions for validation. The experiment-specific transition-length settings and final epoch counts are given in Table 3.

Experimentnmax⁡n_{\max}nmax⁡hn_{\max}h
Synthetic-data OU (approx. MCMC with Euler–Maruyama FNLE)1001.00
Synthetic-data LV1001.00
Synthetic-data gene-expression CLE250.25
Synthetic-data susceptible–infected–recovered200.20
Real-data LV980.98

Table 3. Experiment-Specific FNLE Training Settings.

Prior Settings

SDE parameter priors and parameter-sharing structures are given in Sections D.2.5 and D.3. Each prior is evaluated once per unique parameter. Here, LogNormal⁡(m,s)\operatorname{LogNormal}(m,s) denotes a distribution whose natural logarithm is Gaussian with mean mm and standard deviation ss. The initial regime probabilities were (1/2,1/2)(1/2,1/2), and the initial state had an improper uniform prior, p(y1)∝1p(y_1) \propto1 on RD\mathbb{R}^{D}.

The observation-variance priors are τd2∼InvGamma⁡(αdτ,βdτ)\tau_d^2 \sim\operatorname{InvGamma}(\alpha_d^\tau,\beta_d^\tau), with the experiment-specific settings listed in Table 4.

ExperimentComponentPrior
Synthetic-data OUscalar stateτ22∼InvGamma⁡(10−3,10−3)\tau_2^2 \sim\operatorname{InvGamma}(10^{-3},10^{-3})
Synthetic-data LVpredatorτ12∼InvGamma⁡(10−3,10−3)\tau_1^2 \sim\operatorname{InvGamma}(10^{-3},10^{-3})
Synthetic-data LVpreyτ22∼InvGamma⁡(10−3,10−3)\tau_2^2 \sim\operatorname{InvGamma}(10^{-3},10^{-3})
Synthetic-data gene-expression CLEmRNAτ12∼InvGamma⁡(10−3,10−3)\tau_1^2 \sim\operatorname{InvGamma}(10^{-3},10^{-3})
Synthetic-data gene-expression CLEprotein fluorescenceτ22∼InvGamma⁡(10−3,10−3)\tau_2^2 \sim\operatorname{InvGamma}(10^{-3},10^{-3})
Synthetic-data susceptible–infected–recoveredsusceptibleτ12∼InvGamma⁡(10−3,10−3)\tau_1^2 \sim\operatorname{InvGamma}(10^{-3},10^{-3})
Synthetic-data susceptible–infected–recoveredrecoveredτ22∼InvGamma⁡(10−3,10−3)\tau_2^2 \sim\operatorname{InvGamma}(10^{-3},10^{-3})
Real-data LVDidiniumτ12∼InvGamma⁡(10−3,10−3)\tau_1^2 \sim\operatorname{InvGamma}(10^{-3},10^{-3})
Real-data LVParameciumτ22∼InvGamma⁡(10−3,10−3)\tau_2^2 \sim\operatorname{InvGamma}(10^{-3},10^{-3})

Table 4. Priors for the Observation Variances

In all experiments, the off-diagonal CTMC rates independently followed Gamma⁡(2,20)\operatorname{Gamma}(2,20) in the shape–rate parameterization.

MCMC Settings and Initialization

The deterministic uniformization rate used cΩ=3c_\Omega= 3 and a numerical safeguard ε=10−6\varepsilon= 10^{-6} in

Ω(Q)=max⁡{cΩmax⁡k(−qkk),max⁡k(−qkk)+ε,ε}.(58)\Omega(Q) = \max\left\{ c_\Omega\max_k(-q_{kk}), \max_k(-q_{kk}) + \varepsilon, \varepsilon\right\}. \tag*{(58)}

After computing B=IK+Q/Ω(Q)B = I_K + Q/\Omega(Q), negative entries caused by numerical error were clipped to zero and each row was renormalized. Newly inserted candidate-time states were sampled by sampling-importance-resampling with 100 particles. The continuous path and nonredundant SDE parameters were updated conditionally using Pyro NUTS. Before the production runs, we used Pyro’s step-size adaptation in preliminary runs and fixed the resulting step sizes. Table 5 lists the step sizes for the state-path and parameter updates by experiment and sampler. The production chains used one NUTS draw per sweep, with no warm-up or further step-size adaptation. In all experiments, the maximum tree depth was 5 for the state-path update and 3 for the parameter update; these values were selected in preliminary experiments based on the observed divergence rates and sample displacements. The regime path was updated by log-space forward filtering and backward sampling.

ExperimentState path y1:Ly_{1:L}Parameters Θ\Theta
Synthetic-data OU (exact MCMC)2−82^{-8}2−52^{-5}
Synthetic-data OU (approx. MCMC with exact FNLE)2−82^{-8}2−52^{-5}
Synthetic-data OU (approx. MCMC with Euler–Maruyama FNLE)2−82^{-8}2−52^{-5}
Synthetic-data LV2−92^{-9}2−82^{-8}
Synthetic-data gene-expression CLE2−92^{-9}2−82^{-8}
Synthetic-data susceptible–infected–recovered2−92^{-9}2−82^{-8}
Real-data LV2−92^{-9}2−52^{-5}

Table 5. Fixed NUTS Step Sizes by Experiment and Sampler

At initialization, SDE parameters were sampled from their experiment-specific priors conditional on lying inside the corresponding FNLE ranges. Shared components were sampled once and copied across regimes. Every off-diagonal CTMC rate and observation variance was sampled from its prior. The initial regime path was simulated from an auxiliary symmetric CTMC with q12=q21=0.2q_{12} = q_{21} = 0.2 for the synthetic-data OU and LV experiments, 0.4 for the synthetic-data gene-expression CLE experiment, and 0.5 for the synthetic-data susceptible–infected–recovered and real-data LV experiments. This generator was used only to initialize the regime path, independently of the initial QQ drawn from its prior. The initial continuous path was obtained by linear interpolation of the observations. FNLE training and the synthetic-data chains used random seed zero; the four real-data chains used seeds zero through three. Chain lengths are summarized in Table 6. For trajectory summaries, each sampled path was linearly interpolated between its grid points onto a common plotting grid before computing pointwise posterior credible intervals.

ExperimentChainsSweepsBurn-inRetained
Synthetic-data OU (exact MCMC)410,0005,0005,000
Synthetic-data OU (approx. MCMC with exact FNLE)410,0005,0005,000
Synthetic-data OU (approx. MCMC with Euler–Maruyama FNLE)410,0005,0005,000
Synthetic-data LV410,0005,0005,000
Synthetic-data gene-expression CLE410,0005,0005,000
Synthetic-data susceptible–infected–recovered410,0005,0005,000
Real-data LV410,0005,0005,000

Table 6. MCMC Chain Counts and Lengths Used for Posterior Summaries. Sweep, burn-in, and retained-draw counts are per chain.

Synthetic-Data Experiments

Ornstein–Uhlenbeck Experiment

The OU experiment used Eq. (24). On an interval of length Δ\Delta with regime kk fixed, define mk(x,u)=μk+e−κu(x−μk)m_k(x,u) = \mu_k + e^{-\kappa u}(x - \mu_k) and v(u)=σ2(1−e−2κu)/(2κ)v(u) = \sigma^2(1 - e^{-2\kappa u})/(2\kappa). The exact transition and one-time bridge distributions are

p(y∣x,θk,Δ)=N(y;mk(x,Δ),v(Δ)),(59)p(y \mid x,\theta_k,\Delta) = \mathcal{N}\bigl(y;m_k(x,\Delta),v(\Delta)\bigr), \tag*{(59)}
Yu∣(Y0=x,YΔ=y,θk)∼N(mk(x,u)+e−κ(Δ−u)v(u)v(Δ)[y−mk(x,Δ)],v(u)v(Δ−u)v(Δ)),0<u<Δ.(60)Y_u \mid(Y_0 = x,Y_\Delta= y,\theta_k) \sim\mathcal{N}\left(m_k(x,u) + e^{-\kappa(\Delta-u)}\frac{v(u)}{v(\Delta)}\left[y-m_k(x,\Delta)\right],\frac{v(u)v(\Delta-u)}{v(\Delta)}\right), \qquad0 < u < \Delta. \tag*{(60)}

For multiple interior times, the joint bridge distribution follows from Eq. (33) and is multivariate Gaussian. Exact MCMC uses the transition density directly, while approximate MCMC with FNLE (exact-transition training) uses it only to generate FNLE training transitions and uses the learned density at inference. The exact bridge distribution is used only by exact MCMC; both approximate samplers use the FNLE-based SIR bridge update. Conditional on this path, the state was simulated by Euler–Maruyama with step size h=0.01h = 0.01 and independent Brownian increments.

The initial state was Y0=0.0Y_0 = 0.0. The observation standard deviations were τ1=τ2=0.01\tau_1 = \tau_2 = 0.01. The observation period was T=100T = 100, with 101 observations at spacing 1.0.

Switching Lotka–Volterra Experiment

The LV experiment used Eq. (25). The regime path was simulated from a two-state CTMC with initial probabilities (1/2,1/2)(1/2, 1/2), exact holding times, and exact jump destinations. Conditional on this path, the state was simulated by Euler–Maruyama with step size h=0.01h = 0.01 and independent Brownian increments. After each step, the state was restricted to [0,104]2[0, 10^4]^2 componentwise.

The initial state was (Y0,1,Y0,2)=(1.0,0.5)(Y_{0,1}, Y_{0,2}) = (1.0, 0.5), and the data-generating CTMC rates were q12=q21=0.03q_{12} = q_{21} = 0.03. The observation standard deviations were τ1=τ2=0.01\tau_1 = \tau_2 = 0.01. The observation period was T=100T = 100, with 101 observations at spacing 1.0.

Switching Gene-Expression CLE Experiment

The gene-expression CLE experiment used Eq. (26). The regime path was simulated from a two-state CTMC with initial probabilities (1/2,1/2)(1/2, 1/2), exact holding times, and exact jump destinations. Conditional on this path, the state was simulated by Euler–Maruyama with step size h=0.01h = 0.01 and independent Brownian increments. After each step, the state was restricted to [0,104]2[0, 10^4]^2 componentwise. To see the change of scale, let PtP_t be the continuous approximation to the protein copy number, with translation rate γ/c2\gamma/c^2 per mRNA molecule and degradation rate δ\delta. Its chemical Langevin equation is

dPt=(γc2Yt,1−δPt)dt+γc2Yt,1+δPt dWt,2.(61)\mathrm{d}P_t = \left(\frac{\gamma}{c^2}Y_{t,1} - \delta P_t\right)\mathrm{d}t + \sqrt{\frac{\gamma}{c^2}Y_{t,1} + \delta P_t}\,\mathrm{d}W_{t,2}. \tag*{(61)}

The transformation Yt,2=c2PtY_{t,2} = c^2P_t, with c>0c > 0, gives Eq. (26). Thus, γ\gamma is the fluorescence-scaled production coefficient, and c2c^2 converts protein copy number to fluorescence intensity.

The initial state was (Y0,1,Y0,2)=(100,0.5)(Y_{0,1}, Y_{0,2}) = (100, 0.5), and the data-generating CTMC rates were q12=q21=0.05q_{12} = q_{21} = 0.05. The observation standard deviations were τ1=1.0\tau_1 = 1.0 and τ2=0.01\tau_2 = 0.01. The observation period was T=50T = 50, with 201 observations at spacing 0.25.

Switching Susceptible–Infected–Recovered Epidemic Experiment

The susceptible–infected–recovered experiment used Eq. (27), with fixed total population Npop=1000N_{\mathrm{pop}} = 1000. The regime path had a single prescribed switch at the midpoint of the observation period. Conditional on this path, the state was simulated by Euler–Maruyama with step size h=0.01h = 0.01 and independent Brownian increments. After each step, the state was restricted to [0,104]2[0, 10^4]^2 componentwise and projected onto {(s,r):s≥0,r≥0,s+r≤Npop}\{(s,r): s \ge0, r \ge0, s + r \le N_{\mathrm{pop}}\}.

The initial state was (Y0,1,Y0,2)=(990,0)(Y_{0,1}, Y_{0,2}) = (990, 0), implying I0=10I_0 = 10. The regime path was fixed to regime 1 on [0,20)[0,20) and regime 2 on [20,40][20,40]. The observation standard deviations were τ1=τ2=0.5\tau_1 = \tau_2 = 0.5, and negative noisy observations were truncated at zero. The observation period was T=40T = 40, with 201 observations at spacing 0.20. Both state components were supplied to inference and plotted. The infected population was obtained as It=Npop−Yt,1−Yt,2I_t = N_{\mathrm{pop}} - Y_{t,1} - Y_{t,2}.

Data-Generating Parameters and Inference Settings

Table 7 lists the data-generating SDE parameters, with regime-specific values ordered by regime; Table 8 gives the FNLE ranges, parameter-sharing structures, and priors.

ModelParameterRegime 1Regime 2Structure
OUκ\kappa0.150.15shared
μ\mu-1.21.2regime-specific
σ\sigma0.050.05shared
LVα\alpha1.00.5regime-specific
β\beta1.00.5regime-specific
γ\gamma1.00.2regime-specific
δ\delta1.00.2regime-specific
σ1\sigma_10.050.05shared
σ2\sigma_20.050.05shared
Gene-expression CLEρ\rho100240regime-specific
β\beta1.01.0shared
γ\gamma0.0040.004shared
δ\delta0.80.8shared
cc0.030.03shared
Susceptible–infected–recoveredβ\beta0.400.80regime-specific
γ\gamma0.100.20regime-specific

Table 7. Data-Generating SDE Parameters for the Synthetic Experiments. Regime-specific values are listed for regimes 1 and 2.

ModelParameterStructureFNLE rangePrior
OUκ\kappashared[0.05, 0.2]LogNormal(0, 1)
OUμ\muregime-specific[−2.0, 2.0]Normal(0, 1)
OUσ\sigmashared[0.01, 0.1]LogNormal(0, 1)
LVα\alpharegime-specific[0.01, 2]LogNormal(0, 1)
LVβ\betaregime-specific[0.1, 3]LogNormal(0, 1)
LVγ\gammaregime-specific[0.01, 2]LogNormal(0, 1)
LVδ\deltaregime-specific[0.1, 3]LogNormal(0, 1)
LVσ1\sigma_1shared[0.01, 0.30]LogNormal(−1, 1)
LVσ2\sigma_2shared[0.01, 0.20]LogNormal(−1, 1)
Gene-expression CLEρ\rhoregime-specific[50, 400]LogNormal(4, 1)
Gene-expression CLEβ\betashared[0.5, 1.5]LogNormal(0, 1)
Gene-expression CLEγ\gammashared[0.001, 0.010]LogNormal(0, 1)
Gene-expression CLEδ\deltashared[0.5, 1.5]LogNormal(0, 1)
Gene-expression CLEccshared[0.01, 0.10]LogNormal(0, 1)
Susceptible–infected–recoveredβ\betaregime-specific[0.05, 2]LogNormal(0, 1)
Susceptible–infected–recoveredγ\gammaregime-specific[0.02, 2]LogNormal(0, 1)

Table 8. SDE Parameter Inference Settings for the Synthetic Experiments. Parameter ranges and priors are on the physical scale.

For all synthetic-data experiments, regime labels were aligned to the truth by choosing the permutation that minimized the root-mean-square discrepancy between posterior mean log parameters and the data-generating log parameters.

Real-Data Experiment

The real-data analysis used 71 paired observations of Didinium and Paramecium abundance from Veilleux [34]. The observations were sorted by time, the first time was shifted to zero, and both abundance variables were divided by 100 before fitting. The observation times were irregular and spanned [0,35.08][0, 35.08] days. The state was ordered as Yt=(Yt,1,Yt,2)⊤Y_t = (Y_{t,1}, Y_{t,2})^\top, where Yt,1Y_{t,1} and Yt,2Y_{t,2} denote Didinium and Paramecium, respectively.

The analysis used the LV model in Eq. (25). Table 9 gives the parameter-sharing structure, FNLE ranges, and priors.

ParameterStructureFNLE rangePrior
α\alpharegime-specific[0.1, 4]LogNormal(0, 1)
β\betaregime-specific[0.01, 6]LogNormal(0, 1)
γ\gammaregime-specific[0.1, 8]LogNormal(0, 1)
δ\deltaregime-specific[0.01, 5]LogNormal(0, 1)
σ1\sigma_1shared[0.01, 0.8]LogNormal(−1, 1)
σ2\sigma_2shared[0.01, 2]LogNormal(−1, 1)

Table 9. SDE Parameter Settings for the Real-Data LV Analysis. Parameter ranges and priors are on the physical scale.

For Figure 4, samples from chains 0–3 were pooled after aligning the regime labels.

Chain-Specific Posterior Distributions and Traces

Figure 5 compares the parameter distributions and traces from all four real-data chains.

Figure 5. Multi-chain diagnostics for the real-data Lotka–Volterra analysis. Left panels show chain-specific marginal posterior density estimates, and right panels show traces over all 10,000 sweeps. Colors distinguish the four chains; solid and dotted lines distinguish regimes 1 and 2 for regime-specific parameters. Vertical dashed lines mark the burn-in cutoff at 5,000 sweeps. The observation-noise panels show standard deviations τ1\tau_1, τ2\tau_2, not variances.

MCMC Diagnostics

Table 10: Per-parameter MCMC diagnostics for the three OU samplers on synthetic data.

OU samplerParameterR^\hat{R}Bulk ESSTail ESS
Exact MCMCκ\kappa1.015198.41,004.2
Exact MCMCμ1\mu_11.0041,187.86,199.0
Exact MCMCμ2\mu_21.0051,478.35,050.6
Exact MCMCσ\sigma1.0041,519.82,234.7
Exact MCMCq12q_{12}1.00016,311.019,035.3
Exact MCMCq21q_{21}1.00016,972.118,373.4
Exact MCMCτ\tau1.007787.01,386.9
Approx. MCMC with FNLE (exact-transition training)κ\kappa1.011323.92,294.4
Approx. MCMC with FNLE (exact-transition training)μ1\mu_11.0025,909.513,911.3
Approx. MCMC with FNLE (exact-transition training)μ2\mu_21.006792.13,312.8
Approx. MCMC with FNLE (exact-transition training)σ\sigma1.004778.21,338.5
Approx. MCMC with FNLE (exact-transition training)q12q_{12}1.00111,410.316,523.3
Approx. MCMC with FNLE (exact-transition training)q21q_{21}1.00112,109.219,161.3
Approx. MCMC with FNLE (exact-transition training)τ\tau1.017405.41,032.6
Approx. MCMC with FNLE (Euler–Maruyama training)κ\kappa1.021229.21,903.9
Approx. MCMC with FNLE (Euler–Maruyama training)μ1\mu_11.0061,497.84,256.4
Approx. MCMC with FNLE (Euler–Maruyama training)μ2\mu_21.0042,159.57,742.9
Approx. MCMC with FNLE (Euler–Maruyama training)σ\sigma1.004953.91,984.0
Approx. MCMC with FNLE (Euler–Maruyama training)q12q_{12}1.00014,125.316,715.3
Approx. MCMC with FNLE (Euler–Maruyama training)q21q_{21}1.00012,237.119,034.8
Approx. MCMC with FNLE (Euler–Maruyama training)τ\tau1.008487.4838.5

Table 10.

Table 11: Per-parameter MCMC diagnostics for the synthetic Lotka–Volterra experiment.

ParameterR^\hat{R}Bulk ESSTail ESS
α1\alpha_11.006421.21,090.5
α2\alpha_21.007406.2777.6
β1\beta_11.006395.9973.0
β2\beta_21.006385.9771.1
γ1\gamma_11.028217.1893.4
γ2\gamma_21.038143.4301.5
δ1\delta_11.037128.9726.6
δ2\delta_21.048107.1318.3
σ1\sigma_11.04666.8105.1
σ2\sigma_21.05665.545.1
q12q_{12}1.0042,537.512,637.6
q21q_{21}1.0061,251.75,873.1
τ1\tau_11.016316.61,082.3
τ2\tau_21.016400.5742.1

Table 11.

ParameterR^\hat{R}Bulk ESSTail ESS
ρ1\rho_{1}1.003805.91,595.1
ρ2\rho_{2}1.0011,274.53,142.3
β\beta1.011211.0333.4
γ\gamma1.007334.2691.6
δ\delta1.007335.3681.7
cc1.018201.7358.9
q12q_{12}1.00016,712.818,545.4
q21q_{21}1.00018,588.019,235.4
τ1\tau_{1}1.6976.211.5
τ2\tau_{2}1.003725.22,003.8

Table 12. Per-parameter MCMC diagnostics for the gene-expression CLE experiment.

ParameterR^\hat{R}Bulk ESSTail ESS
β1\beta_{1}1.019481.91,013.8
β2\beta_{2}1.05461.6338.2
γ1\gamma_{1}1.06566.2485.9
γ2\gamma_{2}1.003645.61,278.9
q12q_{12}1.00015,315.118,870.5
q21q_{21}1.00110,209.214,825.5
τ1\tau_{1}1.5397.041.1
τ2\tau_{2}1.29810.838.8

Table 13. Per-parameter MCMC diagnostics for the susceptible–infected–recovered experiment.

ParameterR^\hat{R}Bulk ESSTail ESS
α1\alpha_{1}1.004442.4987.0
α2\alpha_{2}1.005929.8909.5
β1\beta_{1}1.003466.31,065.3
β2\beta_{2}1.005871.0888.9
γ1\gamma_{1}1.011298.2732.9
γ2\gamma_{2}1.0071,160.22,167.1
δ1\delta_{1}1.014296.4493.5
δ2\delta_{2}1.0041,563.63,540.1
σ1\sigma_{1}1.027342.6478.5
σ2\sigma_{2}1.010276.9552.2
q12q_{12}1.0025,023.59,473.7
q21q_{21}1.0023,481.97,393.4
τ1\tau_{1}1.014397.2683.3
τ2\tau_{2}1.010183.5344.5

Table 14. Per-parameter MCMC diagnostics for the real-data Lotka–Volterra analysis.

Computing Environment and Software

Computing Infrastructure

All computations used only the CPU on a local PC with an Intel Core i7-1195G7 processor (4 cores, 8 threads) and 32GiB of RAM, running Ubuntu 22.04.5 LTS.

Software and Existing Assets

We train the local transition densities for FNLE using the NLE implementation in sbi (v0.24.0) [4]. We additionally use the Pyro package (v1.9.1) [1] for posterior sampling with NUTS. We compute R^\hat{R} and bulk and tail ESS using ArviZ (v0.22.0) [21]. All three packages are distributed under the Apache License 2.0. Complete software dependencies and their exact versions are provided in the supplementary material via the accompanying uv.lock file. The real data used in this study are publicly available in the rEDM R package (BSD 2-Clause license), originally from Veilleux [34].

References

  1. [1]Eli Bingham, Jonathan P. Chen, Martin Jankowiak, Fritz Obermeyer, Neeraj Pradhan, Theofanis Karaletsos, Rohit Singh, Paul A. Szerlip, Paul Horsfall, and Noah D. Goodman. Pyro: Deep universal probabilistic programming. J. Mach. Learn. Res., 20:28:1–28:6, 2019. URL http://jmlr.org/papers/v20/18-403.html.arxiv.org/abs/1810.09538
  2. [2]P. G. Blackwell. Bayesian inference for Markov processes with diffusion and discrete components. Biometrika, 90(3):613–627, 09 2003. ISSN 0006-3444. doi: 10.1093/biomet/90.3.613. URL https://doi.org/10.1093/biomet/90.3.613.
  3. [3]Paul G. Blackwell, Mu Niu, Mark S. Lambert, and Scott D. LaPoint. Exact Bayesian inference for animal movement in continuous time. Methods in Ecology and Evolution, 7(2):184–195, 2016. doi: https://doi.org/10.1111/2041-210X.12460. URL https://besjournals.onlinelibrary.wiley.com/doi/abs/10.1111/2041-210X.12460.
  4. [4]Jan Boelts, Michael Deistler, Manuel Gloeckler, Álvaro Tejero-Cantero, Jan-Matthis Lueckmann, Guy Moss, Peter Steinbach, Thomas Moreau, Fabio Muratore, Julia Linhart, Conor Durkan, Julius Vetter, Benjamin Kurt Miller, Maternus Herold, Abolfazl Ziaeemehr, Matthijs Pals, Theo Gruner, Sebastian Bischoff, Nastya Krouglova, Richard Gao, Janne K. Lappalainen, Bálint Mucsányi, Felix Pei, Auguste Schulz, Zinovia Stefanidi, Pedro Rodrigues, Cornelius Schröder, Faried Abu Zaid, Jonas Beck, Jaivardhan Kapoor, David S. Greenberg, Pedro J. Gonçalves, and Jakob H. Macke. sbi reloaded: a toolkit for simulation-based inference workflows. Journal of Open Source Software, 10(108):7754, 2025. doi: 10.21105/joss.07754. URL https://doi.org/10.21105/joss.07754.
  5. [5]Kyle Cramner, Johann Brehmer, and Gilles Louppe. The frontier of simulation-based inference. Proceedings of the National Academy of Sciences, 117(48):30055–30062, 2020. doi: 10.1073/pnas.1912789117. URL https://www.pnas.org/doi/abs/10.1073/pnas.1912789117.
  6. [6]Conor Durkan, Artur Bekasov, Iain Murray, and George Papamakarios. Neural spline flows. In Proceedings of the 33rd International Conference on Neural Information Processing Systems, Red Hook, NY, USA, 2019. Curran Associates Inc.arxiv.org/abs/1906.04032
  7. [7]David A. Van Dyk and Taeyoung Park. Partially collapsed Gibbs samplers: Theory and methods. Journal of the American Statistical Association, 103(482):790–796, 2008. ISSN 01621459. URL http://www.jstor.org/stable/27640101.
  8. [8]S. Frühwirth-Schnatter. Finite Mixture and Markov Switching Models. Springer Series in Statistics. Springer New York, 2006. ISBN 9780387357683. URL https://books.google.ne/books?id=f8KiI7eRjYoC.
  9. [9]Anastasis Georgoulas, Jane Hillston, and Guid Sanguinetti. ProPPA: Probabilistic programming for stochastic dynamical systems. ACM Trans. Model. Comput. Simul., 28(1), January 2018. ISSN 1049-3301. doi: 10.1145/3154392. URL https://doi.org/10.1145/3154392.
  10. [10]Daniel T. Gillespie. The chemical Langevin equation. The Journal of Chemical Physics, 113(11):297–306, 07 2000. ISSN 0021-9606. doi: 10.1063/1.481811. URL https://doi.org/10.1063/1.481811.
  11. [11]Manuel Gloeckler, Shoji Toyota, Kenji Fukumizu, [12] Flávio B Gonçalves, Lívia M Dutra, and Roger WC Silva. Exact and computationally efficient Bayesian inference for generalized Markov modulated Poisson processes. Statistics and Computing, 32(1):14, 2022.
  12. [13]El Houcine Hibbah, Hamid El Maroufy, Christiane Fuchs, and Taib Ziad. An MCMC computational approach for a continuous time state-dependent regime switching diffusion process. Journal of Applied Statistics, 47(8):1354–1374, 2020. doi: 10.1080/02664763.2019.1677573. URL https://doi.org/10.1080/02664763.2019.1677573. PMID: 35706700.
  13. [14]Matthew D. Hoffman and Andrew Gelman. The No-U-Turn Sampler: Adaptively Setting Path Lengths in Hamiltonian Monte Carlo. Journal of Machine Learning Research, 15(47):1593–1623, 2014. ISSN 1533-7928.
  14. [15]Shion Hosoda, Tsukasa Fukunaga, and Michiaki Hamada. Umibato: Estimation of time-varying microbial interaction using continuous-time regression hidden Markov model. Bioinformatics, 37(Supplement_1):i16–i24, July 2021. ISSN 1367-4803. doi: 10.1093/bioinformatics/btab287.DOI
  15. [16]William Ogilvy Kermack and A. G. McKendrick. A contribution to the mathematical theory of epidemics. Proceedings of the Royal Society of London. Series A, Containing Papers of a Mathematical and Physical Character, 115(772):700–721, 08 1927. ISSN 0950-1207. doi: 10.1098/rspa.1927.0118. URL https://doi.org/10.1098/rspa.1927.0118.
  16. [17]Naoki Kiyohara, Edward Johns, and Yingzhen Li. Neural stochastic flows: Solver-free modelling and inference for SDE solutions. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen, editors, Advances in Neural Information Processing Systems, volume 38, pages 16917–16962. Curran Associates, Inc., 2025. doi: 10.52202/085713-0571. URL https://papers.neurips.cc/paper_files/paper/2025/file/18abbeef8cfe9203fdf9053c9c4fe191-Paper-Conference.pdf.DOI
  17. [18]P.E. Kloeden and E. Platen. Numerical Solution of Stochastic Differential Equations. Stochastic Modelling and Applied Probability. Springer Berlin Heidelberg, 2013. ISBN 9783662126165. URL https://books.google.co.jp/books?id=r9r6CAAAQBAJ.
  18. [19]Lukas Köhs, Bastian Alt, and Heinz Koepl. Variational Inference for Continuous-Time Switching Dynamical Systems. In Advances in Neural Information Processing Systems, volume 34, pages 20545–20557. Curran Associates, Inc., 2021.arxiv.org/abs/2109.14492
  19. [20]Lukas Köhs, Bastian Alt, and Heinz Koepl. Markov Chain Monte Carlo for Continuous-Time Switching Dynamical Systems. In Proceedings of the 39th International Conference on Machine Learning, pages 11430–11454. PMLR, June 2022.arxiv.org/abs/2205.08803
  20. [21]Ravin Kumar, Colin Carroll, Ari Hartikainen, and Osvaldo Martin. Arviz a unified library for exploratory analysis of bayesian models in python. Journal of Open Source Software, 4(33):1143, 2019. doi: 10.21105/joss.01143. URL https://doi.org/10.21105/joss.01143.
  21. [22]Haitao Li, Tao Li, and Cindy Yu. No-arbitrage Taylor rules with switching regimes. Management Science, 59(10):2278–2294, 2013. doi: 10.1287/mnsc.1120.1702. URL https://doi.org/10.1287/mnsc.1120.1702.
  22. [23]Xiaoyue Li and Xuerong Mao. Population dynamical behavior of non-autonomous Lotka-Volterra competitive system with random perturbation. Discrete and Continuous Dynamical Systems, 24 (2):523–545, 2009.
  23. [24]Chen Liao, Joao B Xavier, and Zhenduo Zhu. Enhanced inference of ecological networks by parameterizing ensembles of population dynamics models constrained with prior knowledge. BMC ecology, 20(1):3, 2020.DOI
  24. [25]Jun S. Liu. Monte Carlo Strategies in Scientific Computing. Springer, 2001.
  25. [26]Alfred J. Lotka. Analytical note on certain rhythmic relations in organic systems. Proceedings of the National Academy of Sciences, 6(7):410–415, 1920. doi: 10.1073/pnas.6.7.410. URL https://www.pnas.org/doi/abs/10.1073/pnas.6.7.410.DOI
  26. [27]X. Mao and C. Yuan. Stochastic Differential Equations with Markovian Switching. G - Reference,Information and Interdisciplinary Subjects Series. Imperial College Press, 2006. ISBN 9781860947018. URL https://books.google.co.jp/books?id=mEMMAFGfr1sC.DOI
  27. [29]George Papamakarios, David Sterratt, and Iain Murray. Sequential Neural Likelihood: Fast Likelihood-free Inference with Autoregressive Flows. In Proceedings of the Twenty-Second International Conference on Artificial Intelligence and Statistics, pages 837–848. PMLR, April 2019.arxiv.org/abs/1805.07226
  28. [30]Vinayak Rao and Yee Whye Teh. Fast MCMC Sampling for Markov Jump Processes and Extensions. Journal of Machine Learning Research, 14 (103):3295–3320, 2013. ISSN 1533-7928.arxiv.org/abs/1208.4818
  29. [31]Donald B. Rubin. The calculation of posterior distributions by data augmentation: Comment: A noniterative sampling/importance resampling alternative to the data augmentation algorithm for creating a few imputations when fractions of missing information are modest: The SIR algorithm. Journal of the American Statistical Association, 82(398):543–546, 1987. ISSN 01621459, 1537274X. URL http://www.jstor.org/stable/2289460.DOI
  30. [32]Timothée Stumpf-Fétizon, Krzysztof Łatuszyński, Jan Palczewski, and Gareth Roberts. Exact Bayesian inference for Markov switching diffusions. Journal of the Royal Statistical Society Series B: Statistical Methodology, page qkag115, July 2026. ISSN 1369-7412. doi: 10.1093/jrsssb/qkag115.
  31. [33]G. E. Uhlenbeck and L. S. Ornstein. On the theory of the brownian motion. Phys. Rev., 36:823–841, Sep 1930. doi: 10.1103/PhysRev.36.823. URL https://link.aps.org/doi/10.1103/PhysRev.36.823.DOI
  32. [34]B. G. Veilleux. An analysis of the predatory interaction between Paramecium and Didinium. Journal of Animal Ecology, 48(3):787–803, 1979. ISSN 00218790, 13652656. URL http://www.jstor.org/stable/4195.DOI
  33. [35]Vito Volterra. Fluctuations in the abundance of a species considered mathematically. Nature, 119:12–13, 1927.DOI
  34. [36]Jun Yan, Yung-wei Chen, Kirstin Lawrence-Apfel, Isaac M. Ortega, Vladimir Pozdnyakov, Scott Williams, and Thomas Meyer. A moving–resting process with an embedded Brownian motion for animal movements. Population Ecology, 56(2):401–415, 2014. doi: https://doi.org/10.1007/s10144-013-0428-8. URL https://esj-journals.onlinelibrary.wiley.com/doi/abs/10.1007/s10144-013-0428-8.

AI tools statement

This work lists 1 AI tool.

  • generative AI tools · AI tool

    Roles
    ConceptualizationFormal AnalysisInvestigationMethodologySoftwareVisualizationWriting — original draftWriting — review & editing
    Verification
    self-declared at submission

Recorded on the work at submission, not per version. Names and roles are shown as submitted; roles use the CRediT taxonomy.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type