Improving the Noise Estimation of Latent Neural Stochastic Differential Equations

Linus Heck, Maximilian Gelbrecht, Michael T. Schaub, Niklas Boers · DOI

Abstract

Latent Neural Stochastic Differential Equations (SDEs) are powerful tools for modeling systems with both deterministic and stochastic components. However, they frequently suffer from "noise underestimation," where the model minimizes diffusion to achieve higher likelihood scores, failing to capture critical transitions in multistable systems. This paper introduces a noise regularization penalty to the loss function and architectural improvements to ensure accurate noise estimation. We demonstrate that this approach significantly improves the modeling of transition rates and marginal distributions in complex physical systems.

Introduction

Stochastic Differential Equations (SDEs) are fundamental for modeling systems where deterministic laws interact with random fluctuations. Latent Neural SDEs leverage deep learning to learn drift and diffusion terms from time-series data. Despite their potential, these models often "cheat" during training. In the Variational Autoencoder (VAE) framework, the Evidence Lower Bound (ELBO) objective can lead the model to trace data points with near-zero noise to maximize likelihood. This is particularly problematic in multistable systems, such as climate models, where underestimating noise prevents the prediction of "tipping points" or regime shifts.

Methodology

The proposed solution involves a modification to the training objective. The standard objective is a balance between a Likelihood term and a KL Divergence term. The authors introduce an explicit noise penalty ($\gamma L_G$) to the loss function:

$$ \max_{\theta,\phi} \mathbb{E}_{x_{data}} (\mathcal{L}_E - \beta \mathcal{L}_{KL} + \gamma \mathcal{L}_G) $$

where $L_G$ represents the integral of the diffusion term's magnitude. This penalty encourages the model to maintain a physically accurate level of noise.

Schematic of the Latent Neural SDE framework showing the interaction between data samples, posterior/prior samples, and the loss components.

Architecturally, the authors replaced the common sigmoid activation for the diffusion term with a softplus layer, allowing the learned noise to scale beyond the [0, 1] range, which is necessary for high-variance systems.

Experimental Setup

The method was evaluated on several physics-based models:

  • Energy Balance Model (EBM): A bistable climate model used to study transitions between temperature states.
  • FitzHugh-Nagumo (FHN) Model: A 2D neuronal spiking model tested under partial observability (only one dimension visible).
  • Ornstein-Uhlenbeck (OU) Process: A linear stochastic baseline.
  • Triple-Well Model: A complex potential with three stable states to test transition modeling limits.

Results and Discussion

A key finding is that the model's noise level is a mathematical "balance point" of the loss function. Without regularization, the model treats diffusion as internal uncertainty rather than a physical property of the data. By using transition rates—the frequency of jumps between stable states—as a ground truth, the authors showed that standard models significantly underestimate system noise.

Transition rates of the Latent SDE compared to ground truth data across different hyperparameter settings.

With the $\gamma$ penalty, the Latent Neural SDE matched the EBM's transition rates almost perfectly. Furthermore, the regularized model achieved lower Wasserstein distances, indicating better alignment of probability distributions. In the FHN experiment, the model successfully recovered 2D dynamics from 1D observations, provided the noise penalty was applied.

Conclusion

While effective for constant noise, the current penalty struggles with multiplicative noise where diffusion depends on the system state. Future work includes automating hyperparameter optimization for $\gamma$ and scaling the approach to high-dimensional real-world sensor data where underlying physics are not fully known.

Summary updated

BibTeX
@inproceedings{heck2025improving,
  author = {Linus Heck and Maximilian Gelbrecht and Michael T. Schaub and Niklas Boers},
  title = {{Improving the Noise Estimation of Latent Neural Stochastic Differential Equations}},
  booktitle = {Chaos},
  year = {2025},
  doi = {10.1063/5.0257224},
}
Figure