# Learning Where to Simulate: Generative Active Sampling for Online PDE Surrogate Training

*Pierre Cesar, Sofya Dymchenko, Abhishek Purandare, Bruno Raffin*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151676) · [Open on the map](../papers.html#p151676)

Category: [Time Series, PDEs & Probabilistic ML](../pcat/9.md) › [Physics-Guided Neural Operators](../pgroup/169.md) · Type: new method · Keywords: PDE surrogate, active sampling, online training, diffusion model, tail error reduction

Areas: [AI for Science](../areas/ai-for-science.md) › Physics-Informed Neural Modeling › Neural Operators for PDEs

## Summary
OGAS is an online generative active sampling method that steers PDE solver data generation toward challenging trajectories, improving surrogate reliability and reducing tail errors.

## Explained to a 5-year-old
A computer program learns to predict solutions of complex math problems like fluid flow and pattern formation. To learn well, it needs many example problems, but picking them at random often misses the hardest ones. We gave the program a friend that watches how hard each problem is and asks for more of the tough problems. This friend works while the program is learning, so it doesn't slow down the training. As a result, the program becomes better at the tricky cases and works more reliably.

## Explained to a 5-year-old, longer
A computer program can be taught to guess the answers to complicated math problems that describe things like water moving or patterns growing. To get good at guessing, the program needs many example problems to look at. If we just pick example problems at random, we might miss the ones that are really hard for the program. When the program struggles on a hard problem, it tells us how uncertain it is. We built a helper that watches these difficulty signals and decides which new problems to ask for. The helper prefers problems that look tough, so it asks for more of the challenging examples. This way, the program gets lots of practice on the hardest cases, not just the easy ones. The helper works in the background while the program is still learning, so it doesn't stop the training. Because the helper is fast, the whole learning process stays quick and doesn't need extra time. Over time, the program learns to handle the tough problems better and makes fewer big mistakes. This makes the program more reliable, especially when it faces new situations it hasn't seen before. In the end, the program becomes a more trustworthy tool for solving complex scientific problems.

## For a technical reader
The paper addresses the problem of training data-driven surrogates for partial differential equations (PDEs) when the training data must cover a wide range of configurations. It proposes an online active-sampling framework that continuously steers the generation of solver data toward configurations that are currently most difficult for the surrogate, using a lightweight diffusion model as a conditional sampler. By biasing the sampling prior toward high-difficulty signals (e.g., surrogate loss or uncertainty), the method improves tail-error statistics and reduces error variance without sacrificing overall performance. Experiments on three challenging 2D PDEs (Kuramoto-Sivashinsky, Navier-Stokes, Gray-Scott) and up to 308 parameters show consistent gains in worst-case reliability and negligible computational overhead. The approach is readily integrable into existing surrogate-training pipelines, offering a practical way to enhance model robustness in scientific-computing applications.

## Problem
Training data-driven PDE surrogates often suffers from under-representation of challenging dynamics when configuration parameters are sampled uniformly, leading to high prediction errors and large error variance. This makes it difficult to achieve reliable generalization across diverse PDE configurations.

## Method
The approach trains a fast diffusion model in parallel to the surrogate to act as a conditional sampler, mapping a surrogate-derived difficulty signal to configuration parameters and actively drawing target signals from a prior biased toward high difficulty, thereby steering data generation toward challenging regimes.

## Results
Across all settings, the approach consistently improves tail statistics, yielding substantial reductions in errors above the 99th percentile and overall error dispersion compared to uniform sampling, while maintaining worst-case reliability with negligible wall-time overhead.

## Contributions
It introduces an online active sampling framework that learns to target challenging PDE configurations, integrates a diffusion-based conditional sampler, and demonstrates significant improvements in surrogate reliability across multiple PDE problems and high-dimensional parameter spaces.

## Limitations and assumptions
Prioritizing challenging trajectories can increase average error, and the reported results are limited to the evaluated 2D PDEs and up to 308 parameters.

## Practical relevance
Enables more reliable PDE surrogates for scientific computing and engineering applications where worst-case performance is critical.

## Research questions this paper is counted under

- [How can neural methods reliably solve PDEs across diverse settings with limited data and varying boundary conditions?](../q/19.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151676)
