Multiple Physics Pretraining for Spatiotemporal Surrogate Models

Michael McCabe, Bruno Régaldo-Saint Blancard, Liam Holden Parker, Ruben Ohana, Miles Cranmer, Alberto Bietti, Michael Eickenberg, Siavash Golkar, Geraud Krawezik, Francois Lanusse, Mariel Pettee, Tiberiu Tesileanu, Kyunghyun Cho, Shirley Ho

In the world of AI, "foundation models" like GPT-4 or CLIP have changed everything by learning general features from massive, diverse datasets before being fine-tuned for specific tasks. But in the physical sciences, we’ve largely stuck to "specialist" models—training one neural network for one specific fluid simulation or one specific weather pattern.

A new paper from the Polymathic AI Collaboration, titled "Multiple Physics Pretraining for Spatiotemporal Surrogate Models," argues that it's time for physics to have its own foundation models. By training a single transformer on a "soup" of different physical systems, the authors show we can build surrogates that are more accurate, more robust, and capable of jumping from 2D to 3D.

TL;DR

The authors introduce Multiple Physics Pretraining (MPP), a method to train a single Transformer backbone on diverse physical systems (like fluids and chemical reactions) simultaneously. This approach creates a "physics foundation model" that outperforms task-specific baselines and transfers remarkably well to new, unseen physics and higher-dimensional (3D) simulations.

What Problem Does This Paper Address?

Simulating complex physical systems (like airflow over a wing or ocean currents) using traditional numerical solvers is computationally expensive. Deep learning "surrogate models" offer a faster alternative, but they usually suffer from two major flaws:

  1. Data Scarcity: High-fidelity simulation data is hard to generate.
  2. Lack of Generalization: A model trained to simulate a calm lake (Shallow Water Equations) usually fails completely if asked to simulate a turbulent gas (Navier-Stokes).

The authors tackle the "compositionality" of physics. Most complex phenomena are just combinations of simpler ones (like advection and diffusion). They ask: Can we train a model to learn these core building blocks across many different systems so it can better understand the physical world as a whole?

Methods

The core of the paper is the MPP framework, which utilizes an Axial Vision Transformer (AViT).

Architecture of the Multiple Physics Pretraining (MPP) framework using an Axial Vision Transformer.
  • Axial Attention: To handle the high computational cost of 3D spatiotemporal data (Time x Height x Width), the model performs attention along each axis sequentially rather than all at once. This allows it to scale to much higher resolutions.
  • Shared Embedding Space: Since different physical systems have different numbers of variables (e.g., one might have just "density," while another has "velocity" and "pressure"), the authors use a 1x1 convolutional strategy. This projects any combination of input fields into a shared, normalized embedding space.
  • Normalization (RevIN): Physical constants can vary by orders of magnitude. The model uses Reversible Instance Normalization to standardize the data before it enters the transformer and "de-normalize" it on the way out.
  • Autoregressive Training: The model is trained to predict the next state of the system given a history of previous states, similar to how a language model predicts the next word in a sentence.

Datasets

The researchers primarily used PDEBench, a comprehensive benchmark for physical simulations. The training data included:

  • Compressible & Incompressible Navier-Stokes (CNS/INS): The gold standard for fluid dynamics.
  • Shallow Water Equations (SWE): Used for modeling waves and atmospheric flows.
  • 2D Diffusion-Reaction: Modeling how substances spread and interact (common in chemistry and biology).
  • PDEArena: Used for additional evaluation on systems involving buoyancy.

Key Insights and Ideas

  • Physics is Modular: The authors proved that pretraining on separate advection and diffusion data makes a model better at simulating a combined advection-diffusion system—even if it never saw them together during pretraining.
  • Scale Matters: Just like LLMs, physical surrogates benefit from "scaling laws." As they increased the model size from 7.6M to 409M parameters, the error rates dropped consistently across all physical tasks.
  • Vision Models Aren't Enough: They compared MPP to VideoMAE (a foundation model for natural video). While VideoMAE is great at understanding pixels, it struggled with the precise conservation laws and multi-scale nature of physics, proving that "Physics AI" needs specialized pretraining.

Key Results

  • Zero-Shot Performance: A single MPP-pretrained model matched or beat specialized baselines (like FNO or UNet) on all tasks without being fine-tuned for them.
  • Low-Data Transfer: When only a few hundred simulation samples were available for a new type of physics, the MPP-pretrained model was significantly more accurate than a model trained from scratch.
Transfer learning performance comparing MPP to training from scratch and VideoMAE baselines.
  • 2D to 3D "Inflation": In one of the most impressive results, the authors "inflated" their 2D pretrained kernels into 3D. This provided a massive head start for 3D Navier-Stokes simulations, resulting in an 11.7% improvement in accuracy over training from scratch.

Limitations and Future Work

Despite the breakthrough, the authors note several areas for improvement:

  • Geometry: The current model is limited to uniform grids. Real-world engineering often requires irregular meshes (like the shape of a car or a turbine blade).
  • Hard Constraints: The model learns physics from data but doesn't "know" the laws of physics perfectly. It can still make predictions that slightly violate the conservation of mass or energy.
  • Data Diversity: While the benchmark is broad, it is still largely fluid-centric. Future work will need to incorporate solids, electromagnetics, and other domains to create a truly universal physics foundation model.

MPP represents a significant step toward a "GPT for Physics," suggesting that the future of scientific simulation lies not in isolated specialists, but in large-scale, multi-physics generalists.

Summary updated

BibTeX
@inproceedings{mccabe2024multiple,
  author = {Michael McCabe and Bruno Régaldo-Saint Blancard and Liam Holden Parker and Ruben Ohana and Miles Cranmer and Alberto Bietti and Michael Eickenberg and Siavash Golkar and Geraud Krawezik and Francois Lanusse and Mariel Pettee and Tiberiu Tesileanu and Kyunghyun Cho and Shirley Ho},
  title = {{Multiple Physics Pretraining for Spatiotemporal Surrogate Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=DKSI3bULiZ},
}
Figure