We develop a semi-parametric state-space model for time-series data with latent regime transitions. Classical Markov-switching models use fixed parametric transition functions, such as logistic or probit links, which restrict flexibility when transitions depend on nonlinear and context-dependent effects. We replace this assumption with learned functions f0,f1∈\calH, where \calH is either a reproducing kernel Hilbert space or a spline approximation space, and define transition probabilities as pjk,t=\sigmoid(f(\bxt−1)). The transition functions are estimated jointly with emission parameters using a generalized Expectation-Maximization algorithm. The E-step uses the standard forward-backward recursion, while the M-step reduces to a penalized regression problem with weights from smoothed occupation measures. We establish identifiability conditions and provide a consistency argument for the resulting estimators. Experiments on synthetic data show improved recovery of nonlinear transition dynamics compared to parametric baselines. An empirical study on financial time series demonstrates improved regime classification and earlier detection of transition events.
Figures & tables
Model
Log-lik ↑
Accuracy ↑
MATE ↓
MS-VAR-logit
−1843 [92]
0.741 [0.03]
5.2 [1.8]
MS-VAR-probit
−1839 [88]
0.746 [0.03]
5.0 [1.7]
SP-Spline
−1761 [71]
0.812 [0.02]
3.1 [1.1]
SP-RKHS
−1738 [68]
0.829 [0.02]
3.3 [1.2]
Table 1: Simulation results (100 replications). Median [IQR] reported. Higher is better for Log-lik and Accuracy; lower is better for MATE.
Model
Log-lik ↑
Accuracy ↑
MATE (months) ↓
# Params
MS-VAR-logit
−318.4
0.768
2.1
28
MS-VAR-probit
−316.9
0.772
2.0
28
SP-Spline
−291.3
0.836
0.9
43∗
SP-RKHS
−288.7
0.851
0.8
N/A†
Table 2: Empirical results on financial time series (2019–2023 test set).
Figure 1: Estimated risk-off transition probabilities as a function of VIX and investor sentiment. Only the semi-parametric model recovers the joint-tail threshold behavior.
Temporal systems often exhibit non-stationary behaviour, such as seasonal climate variation or glucose fluctuations in patients with type-1 diabetes. One way to model non-stationarity is through discrete latent regimes, i.e., stationary segments of time. Such systems induce a Markov Switching Model (MSM), a class of Hidden Markov Models with autoregressive dependencies among latent regimes and observed variables. Identifying latent regimes is challenging in the presence of frequent regime switches and nonlinear and non-Gaussian dynamics, particularly when there are instantaneous effects between the variables, e.g., due to slow rates of measurements. In this work, we establish the identifiability of both latent regimes and regime-dependent causal structures under temporal regime dependencies, nonlinear lagged and instantaneous effects, and independent noise from the exponential family. Our identifiability theory subsumes non-temporal mixtures of causal models. Furthermore, we introduce FlowMSM, a regime detection framework that can be paired with any stationary causal discovery method to recover regime-dependent causal structures. Experiments on synthetic benchmarks and a financial economics dataset demonstrate the effectiveness of our approach to detect latent regimes and discover causal structures from non-stationary time series.
Roel Hulsman, Carles Balsells-Rodas, Sara Magliacane
University of Amsterdam · 2Adyen · 3Imperial College London +1
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.
Shion Hosoda, Michiaki Hamada
Waseda University · National Institute of Advanced Industrial Science and Technology · Nippon Medical School
Modeling the dynamics of non-stationary stochastic systems requires balancing the representational power of deep learning with the mathematical transparency of classical models. While classical Markov transition operators provide explicit, theoretically grounded rules for system evolution, their empirical estimation collapses due to severe data sparsity when applied to high-resolution, high-noise environments. We explore this statistical barrier using financial time series as a canonical, real-world testbed. To overcome the degeneracy of empirical counting, we introduce a framework that utilizes neural networks strictly as parameterization engines to generate explicit, time-varying Markov transition matrices. By constraining the neural network to output its predictions as a formal stochastic operator, we maintain complete structural interpretability. We demonstrate that these learned operators successfully capture complex regime shifts: the state-conditioned model achieves mean row heterogeneity ρˉ=0.0073 while the state-free ablation collapses to exactly zero, and operator row entropy correlates with realized variance at r=−0.62 (p≈10−251), revealing that high-volatility regimes homogenize transition dynamics rather than diversify them. Furthermore, rather than enforcing the Chapman-Kolmogorov equations as a rigid structural requirement, we repurpose them as a localized diagnostic tool to pinpoint specific temporal windows where first-order memory assumptions break down. Ultimately, this framework demonstrates how neural networks can be constrained to make rigorous, classical operator analysis viable for complex real-world time series.
Jan Rovirosa, Jesse Schmolze
University of Wisconsin – Madison, Madison, WI, USA