Learning Controlled Stochastic Differential Equations

Luc Brogat-Motte, Riccardo Bonalli, Alessandro Rudi · OpenReview

Abstract

Identification of nonlinear dynamical systems is crucial across various fields, facilitating tasks such as control, prediction, optimization, and fault detection. Many applications require methods capable of handling complex systems while providing strong learning guarantees for safe and reliable performance. However, existing approaches often focus on simplified scenarios, such as deterministic models, known diffusion, discrete systems, one-dimensional dynamics, or systems constrained by strong structural assumptions such as linearity. This work proposes a novel method for estimating both drift and diffusion coefficients of continuous, multidimensional, nonlinear controlled stochastic differential equations with non-uniform diffusion. We assume regularity of the coefficients within a Sobolev space, allowing for broad applicability to various dynamical systems in robotics, finance, climate modeling, and biology. Leveraging the Fokker-Planck equation, we split the estimation into two tasks: (a) estimating system dynamics for a finite set of controls, and (b) estimating coefficients that govern those dynamics. We provide strong theoretical guarantees, including finite-sample bounds for $L^2$, $L^\infty$, and risk metrics, with learning rates adaptive to coefficients' regularity, similar to those in nonparametric least-squares regression literature. The practical effectiveness of our approach is demonstrated through extensive numerical experiments. Our method is available as an open-source Python library.

Introduction

Modeling complex systems—ranging from robotic actuators to volatile financial markets—requires a mathematical framework that accounts for both intentional control inputs and inherent stochastic fluctuations. Controlled Stochastic Differential Equations (SDEs) serve as the gold standard for this task. However, "learning" these equations from observed data is notoriously difficult, particularly when the control affects both the system's direction (drift) and the intensity of its noise (diffusion).

Historically, researchers have relied on simplifying assumptions: assuming the system is linear, the noise is constant or known, or the state space is restricted to a single dimension. Furthermore, few existing methods offer "finite-sample guarantees"—mathematical assurances of model accuracy relative to the amount of data provided. This research addresses these gaps by introducing a framework for identifying multidimensional, nonlinear controlled SDEs with non-uniform diffusion and providing rigorous theoretical bounds on performance.

Methodology: Fokker-Planck Matching

The core of the proposed approach is a two-step pipeline termed Fokker-Planck (FP) Matching. This method transforms a traditionally non-convex and ill-posed estimation problem into a convex least-squares objective.

1. Density Estimation

The first stage involves estimating the probability density of the system's state over time. This is performed for a finite set of distinct control inputs. By observing how the distribution of states evolves under different conditions, the model gathers the necessary information to decouple the effects of control from the underlying stochasticity.

2. Coefficient Regression

The second stage leverages the Fokker-Planck equation—a partial differential equation describing the evolution of a probability density under a specific SDE. By minimizing the discrepancy between the estimated density's evolution and the predictions of the FP equation, the framework solves for the unknown drift and diffusion coefficients.

Technical Innovations

  • Convexification: By framing the matching problem as a least-squares objective, the authors ensure the optimization is computationally efficient and avoids the local minima common in non-convex formulations.
  • Kernel Representations: The method utilizes Reproducing Kernel Hilbert Spaces (RKHS) to represent unknown coefficients. This allows the model to capture highly complex, nonlinear dynamics while maintaining a tractable mathematical structure.
  • Physical Constraints: To ensure the model remains physically plausible, the framework implements "hard" and "soft" constraints that force the estimated diffusion coefficient to remain positive definite, reflecting the nature of real-world noise.

Theoretical Contributions and Safety

A significant contribution of this work is the shift from standard error metrics to safety-critical guarantees. While most machine learning literature focuses on $L^2$ (mean squared) error, this framework provides bounds for $L^\infty$ (worst-case error) and Conditional Value at Risk (CVaR).

In safety-critical fields like autonomous driving or medical robotics, average performance is often less important than "tail risk"—the small percentage of cases where a model might fail catastrophically. By providing guarantees on these metrics, the authors offer a path toward more reliable and verifiable AI in physical systems. Additionally, the research demonstrates that if the system's coefficients belong to high-order Sobolev spaces (i.e., they are sufficiently "smooth"), the learning rates improve significantly, effectively mitigating the curse of dimensionality.

Experimental Results

The framework was evaluated using several sophisticated numerical benchmarks designed to simulate real-world time-series path data:

  • Ornstein-Uhlenbeck (OU) Process: Used as a baseline for mean-reverting dynamics.
  • Dubins Process: A classic robotics model representing vehicles with constrained turning radii.
  • Finite Exponential Sum (FES) Process: A complex benchmark used to test the limits of non-parametric estimation.

Key Findings

  • Efficiency: The algorithm is highly performant; on standard hardware (Apple M3 Pro), the matching step for a 2D problem requires only approximately 10 seconds of training time.
  • Generalization: In tests with the controlled Dubins process, the model accurately predicted system behavior under control inputs that were entirely absent from the training data.
  • Optimality: The authors proved that their estimator achieves learning rates comparable to the best-known rates in nonparametric least-squares regression literature.

Conclusion and Future Work

This work provides a robust, kernel-based foundation for identifying controlled SDEs with strong theoretical backing. By making the implementation available via the sde-learn and controlled-sde-learn Python libraries, the authors facilitate broader adoption in the scientific community.

Future research directions include the development of Active Learning strategies—determining which control inputs an agent should select during data collection to maximize information gain—and testing the framework's robustness against non-Gaussian disturbances and real-world sensor noise.

Summary updated

BibTeX
@misc{brogatmotte2024learning,
  author = {Luc Brogat-Motte and Riccardo Bonalli and Alessandro Rudi},
  title = {{Learning Controlled Stochastic Differential Equations}},
  year = {2024},
  eprint = {2411.01982},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.01982},
}
Figure