Error Analysis of Deep PDE Solvers for Option Pricing
Jasper Rou · 2025
Read Error Analysis of Deep PDE Solvers for Option Pricing by Jasper Rou (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2505-05121.txt.
Introduction
Jasper Rou, writing alone in two thousand twenty-five, tests how accurate deep learning solvers are for the equations behind option pricing. Such solvers promise fast prices, but their real-world accuracy is poorly understood.
Rou compares two neural network methods, the Deep Galerkin Method and the Time Deep Gradient Flow method. Tests run under both the Black-Scholes and Heston models. He measures convergence rates and training time against sampling stages, sample counts, network layers, and nodes per layer. For the second method he also varies the discretization order and time steps, giving practitioners concrete guidance on solver settings.
Catalog record
| CREATOR | Jasper Rou |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 27 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2505-05121
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Error Analysis of Deep PDE Solvers for Option Pricing Jasper Rou Abstract . Option pricing often requires solving partial differential equations (PDEs). Although deep learning-based PDE solvers have recently emerged as quick solutions to this problem, their empirical and quantitative accuracy remain not well understood, hindering their real-world applicability. In this research, our aim is to offer actionable insights into the utility of deep PDE solvers for practical option pricing implementation. Through comparative experiments in both the Black–Scholes and the Heston model, we assess the empirical performance of two neural network algorithms to solve PDEs: the Deep Galerkin Method and the Time Deep Gradient Flow method (TDGF). We determine their empirical convergence rates and training time as functions of (i) the number of sampling stages, (ii) the number of samples, (iii) the number of layers, and (iv) the number of nodes per layer. For the TDGF, we also consider the order of the discretization scheme and the number of time steps. 2020 Mathematics Subject Classification 91G20, 91G60, 68T07. 1. Introduction Option pricing is a fundamental problem in finance. Since the seminal work of Black and Scholes 1973 , numerous mathematical models and computational approaches have been developed to determine option prices. One common approach formulates the price of an option as the solution to a partial differential equation (PDE), which can be solved numerically using methods such as finite differences or finite elements. However, traditional grid-based methods suffer from the curse of dimensionality: the number of grid points grows exponentially with the dimension of the problem. This challenge is particularly acute in high-dimensional settings, such as basket options or Markovian approximations of rough volatility models [ 1 , 18 ] . Neural networks provide a promising alternative by efficiently approximating solutions to PDEs. Once trained, they can generate option prices rapidly, bypassing the limitations of conventional numerical methods. Deep learning-based approaches have been successfully applied in other financial contexts, such as risk management [ 6 ] , portfolio optimization [ 21 ] , and optimal stopping [ 4 ] , as well as data-driven methods to price options [ 17 ] . Given their potential, various deep learning-based PDE solvers have been proposed [ 11 ] , including Backward Stochastic Differential Equation (BSDE) methods [ 12 ] , Deep Galerkin Methods (DGMs) [ 19 ] and Time Deep Gradient Flow (TDGF) methods [ 9 , 18 ] . However, their empirical accuracy remains not sufficiently well understood, which limits their practical adoption in financial applications. This study focuses on two neural network methods for solving PDEs: the DGM and the TDGF. Our primary objective is to assess their empirical accuracy. For theoretical convergence analyses, see the work of Jiang et al. 2023 for DGM and Liu et al. 2025 for TDGF. For empirical studies of other deep PDE solvers, such as BSDE-based methods, see the work of Assabumrungrat et al. 2024 . To provide actionable insights into the applicability of deep PDE solvers for option pricing, we systematically analyze the impact of key parameters on accuracy and training time. First, we investigate the effect of training by varying the number of sampling stages and the number of samples. Second, we investigate the effect of the size of the neural network by varying the number of layers and the number of nodes per layer. For a comparison of different architectures, see the work of Van Mieghem et al. 2023 . Finally, for TDGF, we also examine the discretization order and the number of time steps. Our main findings are: the L^{2} -error decreases almost linearly with the number of sampling stages; the number of layers tends to decrease the error, but not with a clear rate; and increasing the number of time steps decreases the L^{2} -error with the second-order method decreasing quicker than the first-order method. These three parameters increase the training time linearly. The number of samples and nodes per layer did not show a clear relationship with neither the L^{2} -error nor the training time. The first three parameters concern training stages done sequentially, while the other two concern training stages which can be done in parallel. The remainder of this paper is structured as follows. Section 2 introduces the two neural network-based PDE solvers. Section 3 outlines the option pricing models under consideration: Black–Scholes and Heston. Section 4 details the implementation aspects. Section 5 presents the numerical results for each of the five parameters. Finally, Section 6 summarizes our findings and conclusions. 2. Neural network methods This section explains the two neural network methods used in this paper. Subsection 2.1 elaborates on the TDGF and Subsection 2.2 on the DGM. 2.1. Time Deep Gradient Flow Method The TDGF is a neural network method to efficiently solve high-dimensional PDEs [ 18 , 9 , 10 ] . Consider the general PDE \displaystyle\frac{\partial}{\partial t}u(t,\mathbf{x})+\mathcal{A}u(t,\mathbf{x})+ru(t,\mathbf{x})=0, \displaystyle(t,\mathbf{x})\in[0,T]\times\Omega, \displaystyle u(0,\mathbf{x})=\Psi(\mathbf{x}), \displaystyle\mathbf{x}\in\Omega, with \mathcal{A} a second-order differential operator of the form (2.1) \mathcal{A}u=-\sum_{i,j=1}^{d}a^{ij}\frac{\partial^{2}u}{\partial x_{i}\partial x_{j}}+\sum_{i=1}^{d}\beta^{i}\frac{\partial u}{\partial x_{i}}. Using the splitting method from Papapantoleon and Rou 2024 , \mathcal{A} can be rewritten in the form (2.2) \mathcal{A}u=-\nabla\cdot\left(A\nabla u\right)+\mathbf{b}\cdot\nabla u, with a symmetric an positive semi-definite matrix (2.3) A=\begin{bmatrix}a^{11}&a^{21}&\dots&a^{d1}\\ a^{21}&a^{22}&\dots&a^{d2}\\ \vdots&\vdots&\ddots&\vdots\\ a^{1d}&a^{2d}&\dots&a^{dd}\end{bmatrix}\quad\textrm{and vector }\quad\mathbf{b}=\begin{bmatrix}b^{1}\\ b^{2}\\ \vdots\\ b^{d}\end{bmatrix}. Let us divide the time interval (0,T] into K equally spaced intervals (t_{k-1},t_{k}] , with h=t_{k}-t_{k-1}=\frac{1}{K} for k=0,1,\dots,K . Let U^{k} denote the approximation to the solution of the PDE u(t_{k},\mathbf{x}) at time step t_{k} , using either a first- or second-order discretization scheme [ 2 ] \displaystyle\frac{U^{k}-U^{k-1}}{h}-\nabla\cdot\left(A\nabla U^{k}\right)+F\left(U^{k-1}\right)+rU^{k} \displaystyle=0, \displaystyle\frac{\frac{3}{2}U^{k}-2U^{k-2}+\frac{1}{2}U^{k-1}}{h}-\nabla\cdot\left(A\nabla U^{k}\right)+2F\left(U^{k-1}\right)-F\left(U^{k-2}\right)+rU^{k} \displaystyle=0, with F(u)=\mathbf{b}\cdot\nabla u , U^{0}=\Psi and in the second-order scheme we take U^{1} from the first-order scheme. Then we can rewrite the discretized PDE as an energy functional [ 18 , 10 ] U^{k}=\argmin_{u\in\mathcal{H}_{0}^{1}}I^{k}(u), with \mathcal{H}_{0}^{1} the Sobolev space in which the derivatives up to order 1 have finite L^{2} -norm and the energy functionals (2.4) \displaystyle I_{1}^{k}(u)= \displaystyle\frac{1}{2}\left\|u-U^{k-1}\right\|_{L^{2}(\Omega)}^{2}+h\left(\int_{\Omega}\frac{1}{2}\left(\left(\nabla u\right)^{\mathsf{T}}A\nabla u+ru^{2}\right)+F\left(U^{k-1}\right)u\mathrm{d}x\right), \displaystyle I_{2}^{k}(u)= \displaystyle\frac{1}{2}\left\|u-\frac{4}{3}U^{k-1}+\frac{1}{3}U^{k-2}\right\|_{L^{2}(\Omega)}^{2} \displaystyle+\frac{2h}{3}\left(\int_{\Omega}\frac{1}{2}\left(\left(\nabla u\right)^{\mathsf{T}}A\nabla u+ru^{2}\right)+\left(2F\left(U^{k-1}\right)-F\left(U^{k-2}\right)\right)u\mathrm{d}x\right), for the first- and second-order discretization respectively. Let f^{k}(\mathbf{x};\theta) denote a neural network approximation of U^{k} with trainable parameters \theta . Applying a Monte Carlo approximation to the integrals, the discretized cost functional takes the form (2.5) L_{n}^{k}\left(\theta;\mathbf{x}\right)=\frac{|\Omega|}{2M}\sum_{m=1}^{M}\left(f^{k}(\mathbf{x}_{m};\theta)+\sum_{j=1}^{n}\alpha_{n}^{j}f^{k-j}(\mathbf{x}_{m})\right)^{2}+\beta_{n}hN_{n}^{k}\left(\theta;\mathbf{x}\right), with \displaystyle N_{n}^{k}\left(\theta;\mathbf{x}\right)= \displaystyle\frac{|\Omega|}{M}\sum_{m=1}^{M}\Bigg[\frac{1}{2}\left(\left(\nabla f^{k}(\mathbf{x}_{m};\theta)\right)^{\mathsf{T}}A\nabla f^{k}(\mathbf{x}_{m};\theta)+r\left(f^{k}({\mathbf{x}_{m}};\theta)\right)^{2}\right) \displaystyle+\left(\mathbf{b}\cdot\sum_{j=1}^{n}\gamma_{n}^{j}\nabla f^{k-j}(\mathbf{x}_{m})\right)f^{k}(\mathbf{x}_{m};\theta)\Bigg]. Here, M denotes the number of samples \mathbf{x}_{m} ; n\in\{1,2\} the order of the discretization and \alpha_{n}^{j},\beta_{n} and \gamma_{n}^{j} are the corresponding coefficients. In order to minimize this cost function, we use a stochastic gradient descent-type algorithm, i.e. an iterative scheme of the form: (2.6) \theta_{n+1}=\theta_{n}-\alpha\nabla_{\theta}L^{k}(\theta_{n};\mathbf{x}). The hyperparameter \alpha is the step size of our update, called the learning rate. An overview of the TDGF method appears in Algorithm 1 . Algorithm 1 Time Deep Gradient Flow method 1: Initialize \theta_{0}^{0} . 2: Set f^{0}(\mathbf{x};\theta)=\Psi(\mathbf{x}) . 3: for each time step k=1,\dots,K do 4: Initialize \theta_{0}^{k}=\theta^{k-1} . 5: for each sampling stage n=1,...,N do 6: Generate M random points \mathbf{x}_{m} for training. 7: Calculate the cost functional L^{k}(\theta_{n}^{k};\mathbf{x}) for the selected points. 8: Take a descent step \theta_{n+1}^{k}=\theta_{n}^{k}-\alpha\nabla_{\theta}L^{k}(\theta_{n}^{k};\mathbf{x}) . 9: end for 10: end for 2.2. Deep Galerkin Method We compare the TDGF method with a popular deep learning method for solving PDEs: the DGM of Sirignano and Spiliopoulos 2018 . In the DGM approach, we minimize the square L^{2} -error of