Base Models for Parabolic Partial Differential Equations

Xingzi Xu, Ali Hasan, Jie Ding, Vahid Tarokh

Abstract

Parabolic partial differential equations (PDEs) are fundamental to modeling time-evolving systems across physics, finance, and engineering. However, solving these equations in high dimensions remains computationally prohibitive, particularly when parameters change frequently. We present a framework for "base models" that solve families of parabolic PDEs by recycling Monte Carlo samples. By integrating the Feynman-Kac formula with a novel Neural Girsanov Operator (NGO), our approach enables one-shot generalization to new PDE parameters. The NGO, a convolutional neural network, learns to approximate the Radon-Nikodym derivative for path reweighting, overcoming the numerical instabilities of traditional importance sampling. Our results demonstrate significant speedups and parameter efficiency compared to traditional solvers and existing neural operators, maintaining stability in dimensions as high as 100D.

Introduction

Parabolic partial differential equations (PDEs) serve as the mathematical foundation for describing diffusion-like processes, ranging from heat conduction and probability flow (Fokker-Planck) to derivative pricing (Black-Scholes) and optimal control (Hamilton-Jacobi-Bellman). Despite their ubiquity, solving these equations in high-dimensional spaces is notoriously difficult due to the "curse of dimensionality."

While Monte Carlo methods—leveraging the Feynman-Kac formula—can bypass dimensionality issues by representing solutions as expectations over stochastic paths, they are computationally intensive. Standard solvers require simulating thousands of random paths for every minor change in PDE parameters. This paper introduces a meta-learning framework designed to create "base models" that learn from an initial set of simulations and adapt instantly to new scenarios, effectively shifting the computational burden from sequential simulation to parallelizable neural inference.

Methodology

Stochastic Representations and Path Recycling

The core of the proposed framework is the stochastic representation of PDEs. The solution to a parabolic PDE can be expressed as an expectation over the paths of a Stochastic Differential Equation (SDE). Traditionally, changing the drift function $\mu^{(i)}$ of the PDE would require generating an entirely new set of paths.

The authors propose Path Recycling via Importance Sampling. By utilizing Girsanov’s theorem, they "reweight" paths generated from a simple, fixed base process (such as Brownian motion) to represent the target process. This allows the model to reuse the same set of stochastic simulations across different PDE parameterizations.

The Neural Girsanov Operator (NGO)

Direct application of Girsanov’s theorem in discretized time often leads to errors that grow exponentially with the time horizon. To address this, the authors introduce the Neural Girsanov Operator (NGO). The NGO is a convolutional neural network (CNN) designed to function as an optimal numerical integrator. It maps the base stochastic process and the target drift parameters directly to the likelihood ratio (the Radon-Nikodym derivative). By learning this transformation, the NGO accurately reweights paths while avoiding the numerical instabilities inherent in standard importance sampling methods.

This framework is highly versatile, capable of handling:

  • Linear PDEs via direct Feynman-Kac representations.
  • Semi-linear PDEs through forward-backward SDEs (FBSDEs).
  • Elliptic PDEs by incorporating the hitting times of boundaries.

Experimental Evaluation

The NGO framework was evaluated across several mathematically rigorous benchmarks to test its generalization and scaling capabilities:

  1. Generative Modeling: The model successfully sampled from 2D and 100D Gaussian distributions and complex "Moons" datasets by meta-learning the underlying probability flow.
  2. Canonical High-Dimensional PDEs: The authors tested the NGO on 10D versions of the Fokker-Planck, Black-Scholes, Hamilton-Jacobi-Bellman, and Black-Scholes-Barenblatt equations.
  3. Randomly Parameterized PDEs: To evaluate generalization, the model was trained on PDEs with drift functions defined by random second-order polynomials and then tested on entirely unseen coefficients.

Key Results and Insights

Efficiency and Scaling

The NGO demonstrates a significant shift in efficiency. By recycling a fixed set of "base" paths, the computational bottleneck is moved from the sequential simulation of SDEs to the parallelizable inference of a neural network. In 10D linear and semi-linear tasks, the NGO maintained high accuracy while outperforming the standard Euler-Maruyama (E-M) baseline in speed.

Parameter Efficiency

Compared to existing operator learning methods like Fourier Neural Operators (FNO), the NGO is remarkably lean. In 2D benchmarks, the NGO achieved comparable or superior loss using only 18.8K parameters, whereas FNO required approximately 2.0M parameters. This efficiency makes the NGO a viable candidate for deployment in resource-constrained environments.

High-Dimensional Stability

One of the most striking findings is the NGO's stability in high dimensions. While naive importance sampling (Girsanov) often fails in high-dimensional settings (up to 100D) due to exploding variance, the NGO remains robust, effectively bridging the gap between meta-learning and operator learning.

Conclusion

The Neural Girsanov Operator represents a significant step toward general-purpose base models for stochastic differential equations. By treating PDE parameters as "tasks" and learning the transformation between stochastic processes, the framework enables rapid, few-shot adaptation to new problems.

While the current approach faces theoretical limits when the target drift differs drastically from the base drift—potentially leading to variance issues—future work may mitigate this through Multi-level Monte Carlo techniques or more complex base processes. The potential applications for this framework in high-frequency finance and complex fluid dynamics are substantial.

Summary updated

Abstract

Parabolic partial differential equations (PDEs) appear in many disciplines to model the evolution of various mathematical objects, such as probability flows, value functions in control theory, and derivative prices in finance. It is often necessary to compute the solutions or a function of the solutions to a parametric PDE in multiple scenarios corresponding to different parameters of this PDE. This process often requires resolving the PDEs from scratch, which is time-consuming. To better employ existing simulations for the PDEs, we propose a framework for finding solutions to parabolic PDEs across different scenarios by meta-learning an underlying base distribution.%tasks. We build upon this base distribution to propose a method for computing solutions to parametric PDEs under different parameter settings. Finally, we illustrate the application of the proposed methods through extensive experiments in generative modeling, stochastic control, and finance. The empirical results suggest that the proposed approach improves generalization to solving new PDEs.
BibTeX
@inproceedings{xu2024base,
  author = {Xingzi Xu and Ali Hasan and Jie Ding and Vahid Tarokh},
  title = {{Base Models for Parabolic Partial Differential Equations}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=TLYNkysFB3},
}
Figure