Solver-as-Teacher: Solver-Guided On-Policy Post-Training Framework for PDE Foundation Models

Hao Wei, Shangzhe Li, Nils ThuereyNeurIPS 2026

TL;DR

Large neural networks for simulating physics—known as PDE Foundation Models—usually fall apart over long-term predictions because tiny errors snowball into unphysical chaos. Solver-as-Teacher (SaT) fixes this by letting the AI model drive its own simulation during fine-tuning, while a traditional numerical physics solver steps in at every frame to show it how to steer back onto the right physical track. By training on its own mistakes rather than pre-recorded data, the AI slashes long-term prediction errors by up to 90% and stays remarkably stable even when the laws of physics shift.

What Problem Does This Paper Address?

Partial differential equations (PDEs) govern everything from weather patterns to turbulent airflow. Recently, researchers have built PDE foundation models (PDE-FMs): massive neural networks pretrained on diverse simulations to predict the next moment in time much faster than traditional supercomputer solvers.

Deploying these models to a new physical setup requires task-specific fine-tuning. The standard approach is Supervised Fine-Tuning (SFT), where the model learns to match pre-computed reference trajectories step-by-step. The catch? SFT is off-policy. During training, the model only ever sees pristine ground-truth states; at deployment, it has to feed its own slightly flawed predictions back into itself (autoregressive rollout).

In chaotic or turbulent systems—think the butterfly effect—tiny per-step errors compound exponentially. Once the model drifts slightly off course, forcing it to match an old reference trajectory makes no mathematical sense, because two valid chaotic paths diverge rapidly anyway. Meanwhile, borrowing post-training tricks from Large Language Models (like RLHF) doesn't work out-of-the-box because PDE-FMs are deterministic: they output continuous physical fields, not probability distributions over words.

Methods

To bridge the gap between training and deployment, the authors introduce Solver-as-Teacher (SaT), an on-policy post-training framework where the student neural network learns directly on the states it visits during its own rollouts.

Overview of the Solver-as-Teacher (SaT) framework

Here is how the loop works:

  1. Student Rollout: Starting from an initial state, the PDE-FM predicts a sequence of future states on its own—warts, drift, and all.
  2. Multi-Step Solver Branching: From every single state the student visits, a classical numerical solver branches forward for several steps, computing what should physically happen next from that exact spot. Crucially, the solver acts as a black-box oracle—no gradients flow through it, meaning you can plug in any legacy solver (even mixing a JAX solver into a PyTorch training loop).
  3. State Vectorization: Running a solver from every student step sounds painfully slow. To keep GPUs humming, the authors bundle all active solver branches at the same lookahead depth into a single "mega-batch" (state vectorization), speeding up solver dispatch by ~13× compared to sequential runs.
  4. Composite Objective: The loss function blends an $L^2$ pointwise error with a spectral (Sobolev) penalty in Fourier space to keep high-frequency details sharp. A tunable parameter $\alpha$ interpolates between pure on-policy solver corrections ($\alpha=0$, SaT-0) and an off-policy anchor to a reference trajectory ($\alpha=1$, SaT-1).

The authors also build a unified post-training testbed to compare SaT fairly against standard SFT, OPD (On-Policy Distillation using a much larger neural model as the teacher), and PITA (which uses physics-equation residuals without a solver).

Datasets

The suite is evaluated across seven 2D and 3D periodic-domain benchmarks spanning chaotic and turbulent dynamics:

  • 2D Tasks ($160^2$ resolution, from APEBench): Kuramoto–Sivashinsky (KS2D, spatiotemporal chaos), Burgers (Burgers2D, shock fronts), and Kolmogorov Flow (KF2D, forced Navier–Stokes vorticity).
  • 3D Tasks ($64^3$ resolution, newly generated at higher resolution via the Exponax solver): 3D extensions of Kuramoto–Sivashinsky (KS3D), Burgers (Burgers3D), and Kolmogorov Flow (KF3D), plus unforced Decaying Turbulence (DT3D).
  • Additional & OOD Tests: Seven zero-shot Out-of-Distribution (OOD) test sets with perturbed physical parameters (e.g., stronger turbulence or altered viscosity), plus appendix extensions to $96^3$ resolution and wall-bounded turbulent channel flow (TCF3D) using a finite-volume PISO solver (PICT).

Key Insights and Ideas

  • Ditching the reference trajectory helps in chaos: In chaotic 3D regimes, pure dynamic solver supervision (SaT-0) beats anchored variants. Once a trajectory drifts, trying to pull it back to an old reference path fights the physics; teaching it to evolve validly from where it actually is stabilizes the rollout.
  • Classical solvers beat giant AI teachers: Replacing the numerical solver with a massive foundation model teacher (OPD, up to 518M parameters) often backfires in chaotic flows—the big model still hallucinates or damps turbulence, passing its flaws to the student. Plus, the numerical solver is 6.2–10.9× faster in total wall-clock training time!
  • Rescuing "memoryless" architectures: Backbones that only look at a single frame without built-in time-history mechanisms (like PDE-S and P3D-S) fail spectacularly under SFT. SaT acts as an external temporal compass, turning P3D-S from the worst 3D model under SFT into the best performer on several tasks.
  • Erasing architectural artifacts: Vision-transformer models that reconstruct patches independently (like MPP-B) develop ugly, grid-like "blocky" artifacts that snowball during inference. Because SaT feeds those exact blocky states to the physics solver, the model learns to smooth out its own seams.

Key Results

Evaluated across six diverse pretrained PDE-FMs (PDE-S, MPP-B, DPOT-Ti, Poseidon-T, P3D-S, and MORPH-Ti):

  • Near-universal wins: SaT variants achieve the lowest 50-step rollout Root Mean Square Error (RMSE) in 23 out of 24 in-distribution model–task pairs, alongside top scores in gradient ($H^1$) and energy-spectrum fidelity.
  • Massive error reductions: Relative to standard SFT, the best SaT variant slashes cross-model average RMSE by up to 68.8% in 2D (Burgers2D) and 90.0% in 3D (KS3D)—with individual model rescues up to 97.4% (P3D-S on DT3D, dropping RMSE from 0.6687 to 0.0175).
  • Zero-shot OOD generalization: SaT-0 achieves the lowest cross-model RMSE on all 7 OOD parameter-shift benchmarks, cutting 3D OOD errors by 81.9% to 92.8% over SFT.

Limitations and Future Work

  • You need a good solver: SaT is only as trustworthy as its numerical teacher. When the authors deliberately coarsened a KS2D teacher grid from $128^2$ down to $80^2$ (causing the solver itself to diverge), student RMSE degraded from 0.090 to 0.268.
  • Known equations & simple grids: The framework assumes the governing equations are completely known; tackling misspecified physics—perhaps by pairing a cheap coarse solver with a learned closure model—is left for future work. Furthermore, experiments thus far focus on regular grids rather than complex geometries or unstructured meshes.
  • Parallelization bottleneck: Training efficiency relies heavily on batching solver calls effectively, making asynchronous solver-student training an exciting next step.

Summary updated

Abstract

PDE foundation models (PDE-FMs) promise general-purpose surrogate simulation, yet deploying a pretrained model to a new physical regime inevitably introduces distribution mismatch, demanding task-specific post-training. The dominant approach, supervised fine-tuning (SFT), is fundamentally off-policy: the model trains on pre-generated states but is evaluated autoregressively on its own. In chaotic regimes, this mismatch is catastrophic as per-step errors compound exponentially along the Lyapunov spectrum, and exact pointwise trajectory matching beyond the predictability horizon becomes an ill-posed training signal. To resolve this, we introduce **Solver-as-Teacher (SaT)**, an on-policy post-training framework for PDE-FMs. During training, the student rolls out autoregressively; a numerical solver branches multi-step correction targets from each student-visited state; and the student is updated against these solver corrections, learning to correct its own rollout dynamics. We instantiate SaT in a unified post-training suite with SFT, physics-informed temporal alignment, and learned-teacher on-policy distillation. Across seven 2D/3D PDE benchmarks and six pretrained PDE-FMs, SaT variants achieve the lowest 50-step rollout RMSE in 23 of 24 in-distribution model--task pairs. The best SaT variant reduces RMSE over SFT up to 90.0\%, and SaT gives the lowest RMSE on all seven OOD parameter-shift benchmarks.
BibTeX
@inproceedings{wei2026solver,
  author = {Hao Wei and Shangzhe Li and Nils Thuerey},
  title = {{Solver-as-Teacher: Solver-Guided On-Policy Post-Training Framework for PDE Foundation Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=afU6OolFcZ},
}
Figure