Robust and Scalable SDE Learning: A Functional Perspective

Scott Alexander Cameron, Tyron Luke Cameron, Arnu Pretorius, Stephen J. Roberts

Overview

Learning Stochastic Differential Equations (SDEs) usually requires slow, step-by-step numerical integration that struggles with high-dimensional data. This paper introduces a novel importance-sampling estimator that bypasses integrators entirely by "forcing" sampled paths to pass through data points (using Brownian bridges). This results in a training process that is up to 50x faster and significantly more stable.

The Bottleneck in SDE Learning

Stochastic Differential Equations are the "Swiss Army knife" of modeling systems driven by noise, from the jittery movement of particles in a fluid to the volatility of stock markets. Recently, researchers have started using neural networks to "learn" the drift and diffusion functions of these SDEs from raw data.

However, there is a major bottleneck: Integrators. To train these models, you typically have to simulate paths using methods like Euler-Maruyama. This is problematic for two main reasons:

  1. Sequential Bottleneck: Integrators must calculate step $t+1$ based on step $t$. This makes it nearly impossible to fully utilize the massive parallel processing power of modern GPUs.
  2. The "Wandering" Problem: Early in training, the model's guess for the SDE is usually wrong. If you simulate paths from a bad model, they wander far away from the actual data points, leading to "noisy" gradients that make learning stall or fail, especially in high dimensions.
Comparison of standard SDE integration (left) which wanders from data, versus Brownian bridge sampling (right) which forces paths through observations.

A Functional Perspective: Path-Space Importance Sampling

The authors propose a "functional perspective" that swaps sequential integration for Path-Space Importance Sampling.

Instead of starting at the beginning and hoping a simulated path hits the data points, they use a Brownian bridge. This is a stochastic process that is mathematically constrained to start and end at specific observations.

  • Path Integral Importance Sampling: They sample these "bridges" first. Because these paths are independent of the model's drift function, they can be generated entirely in parallel.
  • Girsanov’s Theorem: They use this classic result from stochastic calculus to calculate an "importance weight." This weight tells us how likely the "bridge" path would be under the SDE they are actually trying to learn.
  • State-Dependent Diffusion: For complex systems where the noise level changes depending on the state, they introduce a coordinate transformation. By mapping the data into a space where the noise is constant, they can still use the Brownian bridge trick and then map the results back.

Key Insights

  • Embarrassingly Parallel: Because the method doesn't rely on the previous step to calculate the next one, the entire path can be processed in a single forward pass of a neural network. This leads to near 100% GPU utilization.
  • Variance Reduction: By forcing paths to pass through the data, the estimator avoids the "high variance" gradients that plague integrator-based methods. The model is always looking at "plausible" trajectories.
  • High-Dimensional Scaling: Most SDE learning papers stop at 3 or 6 dimensions. This paper demonstrates accurate probability estimation in up to 100 dimensions, a significant leap for the field.
  • Bridge vs. Prior: The core "aha moment" is realizing that sampling from the posterior (the bridge) is much more efficient for learning than sampling from the prior (the integrator).

Experimental Results

The researchers evaluated their approach on several benchmarks, including the Lorenz System, Ornstein–Uhlenbeck Process, and a real-world Hungarian Chickenpox dataset.

Training convergence comparison: The proposed path integral method (red) achieves lower error in a fraction of the time compared to the adjoint method (blue).
  • Massive Speedups: On the Lorenz system task, the proposed method was 52 times faster than the state-of-the-art adjoint-based integrator method. Training that took 30 hours with an integrator took only 34 minutes with this new approach.
  • Stability: In the chickenpox dataset experiment, the integrator-based method saw gradient variances explode to $10^{18}$ as the time between observations increased. The importance sampling method remained stable, with variances around $10^{-4}$.
  • Accuracy: The method recovered the underlying vector fields of chaotic systems more robustly than MSE-based integration methods, which often failed to capture the true dynamics despite looking "accurate" on paper.

Limitations and Future Work

While highly effective, the method has a few limitations. It used about 4x more memory than the adjoint method in tests, as the adjoint method is specifically optimized for low memory footprints at the cost of speed. Additionally, the approach for state-dependent diffusion requires the diffusion matrix to be representable as a Jacobian of an invertible transformation. Finally, like all numerical methods, there is a small discretization bias, though it vanishes as the step size approaches zero.

Ultimately, this functional approach opens the door for more complex "Neural SDE" architectures that were previously too computationally expensive to train, paving the way for scalable modeling of complex spatio-temporal processes.

Summary updated

BibTeX
@inproceedings{cameron2022robust,
  author = {Scott Alexander Cameron and Tyron Luke Cameron and Arnu Pretorius and Stephen J. Roberts},
  title = {{Robust and Scalable SDE Learning: A Functional Perspective}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=xZ6H7wydGl},
}
Figure