A deep learning based surrogate model for stochastic simulators

Akshay Thakur, Souvik Chakraborty

TL;DR

Researchers have developed a new deep learning-based surrogate model that mimics expensive stochastic simulators by combining generative neural networks with a Conditional Maximum Mean Discrepancy (CMMD) loss function. This approach allows for the accurate prediction of entire response distributions without making any prior assumptions about their shape, significantly reducing the computational cost of uncertainty quantification.

What Problem Does This Paper Address?

In many scientific fields—from epidemiology to finance—researchers use "simulators" to model complex systems. While deterministic simulators yield the same result for a given input, stochastic simulators produce a random variable as an output. Because the output varies every time you run the model (due to intrinsic randomness or incomplete knowledge), characterizing the system requires thousands of "replications" for every single set of input parameters.

This is a computational nightmare. Traditional "surrogate models" (mathematical shortcuts like Gaussian Processes) are great for deterministic systems but struggle with stochasticity. Existing methods for stochastic surrogates usually fall into two traps:

  1. Parametric assumptions: They assume the output follows a specific distribution (like a Normal distribution), which fails for complex, skewed, or multi-modal data.
  2. Data hunger: Non-parametric methods often require an impractical number of replications (sometimes $10^4$ per input point) to be accurate.

This paper introduces a framework that is both flexible (non-parametric) and computationally efficient.

Methods

The authors propose a framework based on Conditional Generative Moment Matching Networks (CGMMNs).

The Architecture

The surrogate is a five-layer Feed-forward Neural Network (FNN). To turn a standard FNN into a generative model capable of producing a distribution, the authors concatenate the actual input parameters ($x$) with a set of latent random variables ($S$) sampled from a standard normal distribution. This allows the network to map a single input to a variety of possible outputs.

The "Secret Sauce": CMMD

The core innovation is the use of Conditional Maximum Mean Discrepancy (CMMD) as the loss function.

  • What it does: Instead of comparing individual data points, CMMD measures the distance between the distribution predicted by the neural network and the target distribution from the simulator.
  • How it works: It leverages the "kernel trick" in a Reproducing Kernel Hilbert Space (RKHS). This allows the model to match all moments of the distributions (mean, variance, skewness, etc.) without ever needing to explicitly define a probability density function.
  • Trainable Kernels: The authors use a squared exponential kernel and make its parameters ($\ell$ and $\sigma$) "trainable," meaning the model optimizes the kernel itself during the learning process.

Datasets

The model was evaluated on four benchmark problems designed to test different types of stochastic behavior:

  1. 1D Analytical Simulator: A simple model where the output follows a lognormal distribution.
  2. Black-Scholes SDE: A 2D problem based on the famous stochastic differential equation used for stock price modeling.
  3. SDE without a Closed-form Solution: A more complex system (Ornstein-Uhlenbeck process with multiplicative noise) that requires numerical solvers like Euler-Maruyama.
  4. Stochastic SIR Model: A classic epidemiological model (Susceptible-Infected-Recovered) used to simulate disease outbreaks, which produces highly skewed distributions.

Key Insights and Ideas

  • Distribution Agnostic: The biggest "aha moment" is that the model makes zero assumptions about the shape of the response. Whether the output is bell-shaped, heavily skewed, or multi-modal, the CMMD loss allows the network to "discover" the shape from the data.
  • Efficiency through Kernels: By using the kernel-based CMMD, the model can capture the discrepancy between distributions more effectively than standard regression, requiring fewer replications than traditional non-parametric estimators.
  • Latent Variable Integration: Simply "injecting" noise ($S$) into the input layer is a powerful way to transform a deterministic regressor into a stochastic generator, provided the loss function is designed to handle distributions.

Key Results

The authors used the Hellinger distance (a measure of similarity between two probability distributions) to quantify error.

  • Accuracy: In all four benchmarks, the surrogate model's predicted PDFs (Probability Density Functions) almost perfectly overlapped with the reference data.
  • Quantile Matching: The model accurately predicted not just the mean and standard deviation, but also the 10%, 50%, and 90% quantiles across the entire input space.
  • Convergence: The error (Hellinger distance) consistently decreased as the number of training points ($N$), replications ($R$), and latent variables ($N_z$) increased, proving the stability of the framework.

Limitations and Future Work

  • Computational Overhead of CMMD: While the surrogate is fast once trained, calculating the CMMD loss during training involves operations on Gram matrices, which can become computationally expensive as the training dataset grows very large.
  • Architecture Simplicity: This paper stuck to simple feed-forward networks. The authors suggest that future work could incorporate more complex architectures like Convolutional Neural Networks (CNNs) for spatial data or Recurrent Neural Networks (RNNs) for time-series stochastic processes.
  • Mathematical Assumptions: The framework assumes the existence of a Hilbert-Schmidt norm for the conditional mean embedding, which might not hold for all mathematical edge cases, though it worked for all practical benchmarks tested.

Summary updated

BibTeX
@inproceedings{thakur2022deep,
  author = {Akshay Thakur and Souvik Chakraborty},
  title = {{A deep learning based surrogate model for stochastic simulators}},
  booktitle = {Probabilistic},
  year = {2022},
  doi = {10.1016/j.probengmech.2022.103248},
}
Figure