Martingale Functional Control variates via Deep Learning

Marc Sabate Vidales, David Siska, Lukasz Szpruch · DOI

Abstract

We develop several deep learning algorithms for approximating families of parametric PDE solutions. The proposed algorithms approximate solutions together with their gradients, which in the context of mathematical finance means that the derivative prices and hedging strategies are computed simulatenously. Having approximated the gradient of the solution one can combine it with a Monte-Carlo simulation to remove the bias in the deep network approximation of the PDE solution (derivative price). This is achieved by leveraging the Martingale Representation Theorem and combining the Monte Carlo simulation with the neural network. The resulting algorithm is robust with respect to quality of the neural network approximation and consequently can be used as a black-box in case only limited a priori information about the underlying problem is available. We believe this is important as neural network based algorithms often require fair amount of tuning to produce satisfactory results. The methods are empirically shown to work for high-dimensional problems (e.g. 100 dimensions). We provide diagnostics that shed light on appropriate network architectures.

1. Introduction

Solving partial differential equations (PDEs) in high dimensions—such as pricing a financial option dependent on 100 different underlying stocks—is notoriously difficult due to the "curse of dimensionality." Traditional grid-based methods like finite differences become computationally impossible as dimensions grow.

While deep learning has recently shown promise in "breaking" this curse, neural network solvers often act as "black boxes" that require extensive tuning and can introduce approximation bias. This paper introduces a framework for solving high-dimensional parametric PDEs by combining deep learning with classical Monte Carlo methods. By using neural networks to approximate the solution's gradient and then applying that approximation as a "control variate" in a Monte Carlo simulation, we produce unbiased results with significantly lower variance—even when the neural network itself is imperfectly trained.

2. Methodology

The proposed framework utilizes three main classes of learning algorithms to find PDE solutions and their gradients simultaneously:

  1. Projection Solver: Leverages the Feynman–Kac formula, treating the learning task as an $L^2$-projection problem where the network learns to approximate the conditional expectation of a stochastic process.
  2. Martingale Representation Solver: An iterative, backward-in-time approach inspired by Deep BSDE (Backward Stochastic Differential Equation) solvers. It learns the solution and its gradient at each time step, utilizing the smoothness of the solution over time to initialize weights for the next step.
  3. Martingale Control Variates Solver: These algorithms directly minimize the variance or maximize the correlation of the estimator.

The core innovation is using the learned neural network gradient as a control variate. According to the Martingale Representation Theorem, a specific stochastic integral involving the gradient should have a mean of zero. By subtracting this integral from a standard Monte Carlo path, the expected value remains unchanged (keeping it unbiased), while the variance is drastically reduced.

3. Experimental Setup

The methods were evaluated using synthetic datasets generated from high-dimensional financial models, specifically Black-Scholes models for European exchange options and basket options. Experiments ranged from low-dimensional cases (2 assets) to high-dimensional benchmarks (100 assets). The models were trained across parametric spaces (varying volatilities and interest rates) to test how well the solvers handle "families" of PDEs rather than just a single instance.

4. Results and Discussion

The proposed algorithms achieved massive variance reduction. In a 100-dimensional basket option problem, the algorithms achieved variance reduction factors of over 130x compared to standard Monte Carlo. The methods also significantly outperformed the Deep Galerkin Method (DGM), providing variance reduction that was often an order of magnitude better.

Histogram of the log of squared errors on the test set, showing high accuracy and low error distribution.

A significant insight is the robustness provided by hybridization. The neural network does not have to be perfect; even a "mediocre" network approximation can serve as a powerful control variate. For example, a network trained on a specific volatility ($\sigma = 0.3$) still provided substantial variance reduction when tested on "incorrect" volatilities ranging from 0.2 to 0.4, proving the method's robustness to model uncertainty.

5. Conclusion

This framework harnesses the speed of deep learning while maintaining the statistical rigor of Monte Carlo simulations. While the current focus is on linear parametric PDEs, the ability to train models "offline" for a range of market conditions allows them to function as real-time, unbiased pricers. Future work will explore extending this control variate approach to fully non-linear PDEs and more complex path-dependent options using Recurrent Neural Networks (RNNs).

Summary updated

Abstract

We develop several deep learning algorithms for approximating families of parametric PDE solutions. The proposed algorithms approximate solutions together with their gradients, which in the context of mathematical finance means that the derivative prices and hedging strategies are computed simulatenously. Having approximated the gradient of the solution one can combine it with a Monte-Carlo simulation to remove the bias in the deep network approximation of the PDE solution (derivative price). This is achieved by leveraging the Martingale Representation Theorem and combining the Monte Carlo simulation with the neural network. The resulting algorithm is robust with respect to quality of the neural network approximation and consequently can be used as a black-box in case only limited a priori information about the underlying problem is available. We believe this is important as neural network based algorithms often require fair amount of tuning to produce satisfactory results. The methods are empirically shown to work for high-dimensional problems (e.g. 100 dimensions). We provide diagnostics that shed light on appropriate network architectures.
BibTeX
@inproceedings{vidales2021martingale,
  author = {Marc Sabate Vidales and David Siska and Lukasz Szpruch},
  title = {{Martingale Functional Control variates via Deep Learning}},
  booktitle = {Applied Mathematical Finance},
  year = {2021},
  doi = {10.1080/1350486x.2022.2030773},
}
Figure