SurroFlow: A Flow-Based Surrogate Model for Parameter Space Exploration and Uncertainty Quantification

Jingyi Shen, Yuhan Duan, Han-Wei Shen

TL;DR

SurroFlow is a novel surrogate modeling framework that uses normalizing flows to bridge the gap between expensive scientific simulations and real-time exploration. Unlike traditional "black-box" surrogates, it provides built-in uncertainty quantification, enables "reverse prediction" (finding parameters from results), and uses a genetic algorithm-driven visual interface to help scientists efficiently navigate complex parameter spaces.

What Problem Does This Paper Address?

In fields like oceanography and cosmology, scientists rely on massive ensemble simulations to understand complex systems. However, these simulations are computationally grueling, often taking days or weeks to run. Deep learning "surrogate models" are typically used to mimic these simulations at a fraction of the cost, but they suffer from three major flaws:

  1. Lack of Uncertainty: They don't tell the scientist how much to trust a specific prediction.
  2. One-Way Traffic: They can predict data from parameters, but they can't easily work backward to find which parameters produced a specific observation (the "inverse problem").
  3. Inefficient Exploration: Finding the "optimal" set of parameters in a high-dimensional space is often a manual, brute-force process.

Methods

The authors introduce SurroFlow, which combines three sophisticated components:

  • Normalizing Flows (NF): This is the core engine. Unlike standard neural networks, NFs are invertible. They learn a bidirectional mapping between a simple probability distribution (like a Gaussian) and the complex distribution of simulation data. Because they are probabilistic, they don't just give one answer; they allow for sampling, which naturally provides a measure of uncertainty quantification (UQ).
  • 3D Autoencoder: To handle the massive dimensionality of 3D simulation data, the authors first train an autoencoder to compress the data into a compact "latent space." The SurroFlow model then operates on this smaller space, drastically reducing computational overhead.
  • Genetic Algorithm (GA) & Visual Interface: To help scientists find interesting parameters, the system uses a GA that "evolves" parameter candidates. It evaluates them based on a fitness function that balances similarity (matching user interests), diversity (exploring new areas), and uncertainty (favoring reliable predictions). A visual interface featuring Sankey diagrams allows scientists to interactively guide this evolution.

Datasets

The model was evaluated on two distinct, high-stakes scientific datasets:

  1. MPAS-Ocean: A global ocean system simulation focusing on parameters like wind stress and eddy transport. It uses 128 training samples at a resolution of $192 \times 96 \times 12$.
  2. Nyx: A cosmological simulation dataset used to study the density of matter and the expansion rate of the universe. It uses 70 training configurations with a resolution of $128 \times 128 \times 128$.

Key Insights and Ideas

  • Invertibility as a Feature, Not a Constraint: By using normalizing flows, the model solves the "inverse problem" for free. A scientist can take a specific simulation outcome and run the model backward to see what physical parameters likely caused it.
  • Uncertainty as a Navigation Tool: High uncertainty isn't just a sign of model weakness; it’s a signal. In the visual interface, scientists can identify regions where the model is "unsure," suggesting where more real simulation data might be needed to improve the surrogate.
  • Latent Space Optimization: By running the Genetic Algorithm on the compressed latent representations rather than the raw 3D data, the system achieves the speed necessary for an interactive user experience.

Key Results

  • Efficiency: SurroFlow is significantly faster than state-of-the-art baselines like VDL-Surrogate. For the MPAS-Ocean dataset, training took 11.5 hours (vs. 139.8 hours for the baseline) and inference took only 0.8 seconds (vs. 21.0 seconds).
  • Accuracy: Despite the speedup, the model maintained high fidelity. On the MPAS-Ocean data, it achieved a PSNR of 46.68 and an SSIM of 0.9950, slightly outperforming the baseline.
  • Reverse Prediction: The model showed remarkable accuracy in predicting parameters from data, achieving a cosine similarity of 0.9999 on the Nyx dataset.
  • Qualitative Success: In a case study on the "Pacific Cold Tongue," a domain expert used the tool to successfully identify high wind-stress parameters that accurately reproduced known climate patterns.

Limitations and Future Work

  • Invertibility Constraints: The requirement for the model to be mathematically invertible can sometimes limit the complexity of the patterns it can learn compared to non-invertible models like Diffusion Models.
  • Autoencoder Dependency: The quality of the surrogate is heavily dependent on the initial compression by the autoencoder; if the AE loses critical features, the flow model cannot recover them.
  • Future Directions: The authors suggest using the uncertainty maps for active learning—automatically identifying which new simulations should be run to most effectively "teach" the model in its weakest areas. They also aim to test SurroFlow on a wider variety of engineering and scientific discovery tasks.

Summary updated

BibTeX
@article{shen2025surroflow,
  author = {Jingyi Shen and Yuhan Duan and Han-Wei Shen},
  title = {{SurroFlow: A Flow-Based Surrogate Model for Parameter Space Exploration and Uncertainty Quantification}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2025},
  doi = {10.1109/tvcg.2024.3456372},
}
Figure