Monte Carlo Neural PDE Solver for Learning PDEs via Probabilistic Representation
Rui Zhang, Qi Meng, Rongchan Zhu, Yue Wang, Wenlei Shi, Shihua Zhang, Zhi-Ming Ma, Tie-Yan Liu
TL;DR
This work presents MCNP Solver, an unsupervised neural PDE solver that leverages the probabilistic Feynman-Kac representation to treat macroscopic PDE dynamics as ensembles of particle trajectories. By combining Heun's method for convection with a PDF-based diffusion expectation, MCNP forms a neural Monte Carlo loss that learns a function-to-function operator capable of generalizing across initial conditions without data supervision. The method achieves superior accuracy and efficiency compared with existing unsupervised baselines across convection-diffusion, Allen-Cahn, Navier-Stokes, and mesh-free fractional diffusion tasks, including a disk geometry, and demonstrates notable GPU speedups over traditional solvers. The work also discusses limitations and future directions, such as extending to higher dimensions and higher-order PDEs, and provides publicly available code for reproducibility.
Abstract
In scenarios with limited available data, training the function-to-function neural PDE solver in an unsupervised manner is essential. However, the efficiency and accuracy of existing methods are constrained by the properties of numerical algorithms, such as finite difference and pseudo-spectral methods, integrated during the training stage. These methods necessitate careful spatiotemporal discretization to achieve reasonable accuracy, leading to significant computational challenges and inaccurate simulations, particularly in cases with substantial spatiotemporal variations. To address these limitations, we propose the Monte Carlo Neural PDE Solver (MCNP Solver) for training unsupervised neural solvers via the PDEs' probabilistic representation, which regards macroscopic phenomena as ensembles of random particles. Compared to other unsupervised methods, MCNP Solver naturally inherits the advantages of the Monte Carlo method, which is robust against spatiotemporal variations and can tolerate coarse step size. In simulating the trajectories of particles, we employ Heun's method for the convection process and calculate the expectation via the probability density function of neighbouring grid points during the diffusion process. These techniques enhance accuracy and circumvent the computational issues associated with Monte Carlo sampling. Our numerical experiments on convection-diffusion, Allen-Cahn, and Navier-Stokes equations demonstrate significant improvements in accuracy and efficiency compared to other unsupervised baselines. The source code will be publicly available at: https://github.com/optray/MCNP.
