An Efficient High-Dimensional Gradient Estimator for Stochastic Differential Equations

Shengbo Wang, José Blanchet, Peter W. Glynn · DOI

Abstract

Overparameterized stochastic differential equation (SDE) models have achieved remarkable success in various complex environments, such as PDE-constrained optimization, stochastic control and reinforcement learning, financial engineering, and neural SDEs. These models often feature system evolution coefficients that are parameterized by a high-dimensional vector $\theta \in \mathbb{R}^n$, aiming to optimize expectations of the SDE, such as a value function, through stochastic gradient ascent. Consequently, designing efficient gradient estimators for which the computational complexity scales well with $n$ is of significant interest. This paper introduces a novel unbiased stochastic gradient estimator—the generator gradient estimator—for which the computation time remains stable in $n$. In addition to establishing the validity of our methodology for general SDEs with jumps, we also perform numerical experiments that test our estimator in linear-quadratic control problems parameterized by high-dimensional neural networks. The results show a significant improvement in efficiency compared to the widely used pathwise differentiation method: Our estimator achieves near-constant computation times, increasingly outperforms its counterpart as $n$ increases, and does so without compromising estimation variance. These empirical findings highlight the potential of our proposed methodology for optimizing SDEs in contemporary applications.

Introduction

Stochastic Differential Equations (SDEs) serve as the mathematical foundation for modeling dynamic systems under uncertainty, ranging from financial derivatives and robotic path planning to modern "Neural SDE" architectures in machine learning. Optimizing these models typically requires calculating the gradient of an expected outcome with respect to the model's parameters ($\theta$).

The current industry standard for this task is Pathwise Differentiation (also known as Infinitesimal Perturbation Analysis or IPA). While IPA is a robust and reliable tool, it suffers from a critical scalability flaw: its computational cost increases linearly with the number of parameters ($n$). In the context of modern overparameterized models where $n$ can reach millions or billions, simulating the additional "sensitivity" equations for every single parameter becomes a prohibitive bottleneck. This paper addresses this challenge by introducing the Generator Gradient Estimator, a method designed to decouple computational cost from the parameter dimension.

The Generator Gradient Method

The core innovation of the Generator Gradient method lies in shifting the focus from individual trajectories to the generator of the SDE—the operator describing how expectations evolve over time. By leveraging the Feynman-Kac connection between SDEs and Partial Differential Equations (PDEs), the authors differentiate the underlying PDE rather than the specific path. This effectively moves the burden of estimation from the high-dimensional parameter space ($\theta$) to the much lower-dimensional state space ($x$).

Complexity Analysis

The primary advantage of this approach is its theoretical complexity. While Pathwise Differentiation scales with $O(d \cdot n)$, the Generator Gradient method's complexity is determined by the state dimension $d$.

Theoretical computational complexity comparison between Pathwise Differentiation and the Generator Gradient estimator.

As shown in the table above, the Generator Gradient method requires simulating only $O(d^2)$ or $O(d^3)$ SDEs, depending on whether the volatility depends on $\theta$. Crucially, this cost remains constant regardless of how many millions of parameters are used to define the system's drift or volatility. This "dimension decoupling" is achieved through a randomization trick for the time integral, allowing the entire gradient to be estimated using samples from a single point in time.

Experimental Evaluation

The researchers evaluated the estimator using a Linear-Quadratic (LQ) control problem where the controller was parameterized by a 4-layer fully connected neural network. The state space ($d$) was set to 4 (representing positions and velocities), while the parameter space ($n$) was scaled from $10^2$ to nearly $10^8$ (100 million parameters).

Key Results

  • Unprecedented Speedup: For a model with $10^7$ parameters, the Generator Gradient was over 10x faster than Pathwise Differentiation. As $n$ reached $10^8$, the runtime of the standard method continued to explode linearly, while the Generator Gradient's runtime remained nearly constant.
  • Precision and Unbiasedness: The estimator is mathematically proven to be unbiased. Empirically, it demonstrated an "Average SE Ratio" (Standard Error) of approximately 0.9, indicating that it is not only faster but also slightly more precise than the standard IPA approach.
  • Robustness: The method proved effective even when theoretical smoothness requirements (second-order differentiability) were violated, such as in models utilizing ReLU activation functions.

Conclusion and Future Work

The Generator Gradient Estimator represents a significant leap forward for high-dimensional SDE optimization. By making the runtime insensitive to the number of parameters, it enables the training of massive Neural SDEs that were previously computationally inaccessible.

However, some limitations remain. The method's scaling with the state dimension ($d^3$) suggests that for systems with extremely high-dimensional states—such as fluid dynamics—the computational cost may eventually become significant. Future research will focus on extending the formal theoretical framework to non-smooth cases and adapting the method for reflected SDEs involving hard boundary conditions.

Summary updated

BibTeX
@inproceedings{wang2024efficient,
  author = {Shengbo Wang and José Blanchet and Peter W. Glynn},
  title = {{An Efficient High-Dimensional Gradient Estimator for Stochastic Differential Equations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=780uXnA4wN},
}
Figure