Multiple Physics Pretraining for Physical Surrogate Models

Michael McCabe, Bruno Régaldo-Saint Blancard, Liam Holden Parker, Ruben Ohana, Miles D. Cranmer, Alberto Bietti, Michael Eickenberg, Siavash Golkar, Géraud Krawezik, François Lanusse, Mariel Pettee, Tiberiu Tesileanu, Kyunghyun Cho, Shirley Ho · DOI

Introduction

In computational science, numerical simulations are the bedrock of discovery, yet they are often prohibitively expensive. To mitigate this, researchers use "surrogate models"—AI-driven emulators that approximate complex physical systems at a fraction of the computational cost. Traditionally, these models have been specialists, trained to solve a single set of equations under specific conditions. However, this approach is inefficient and data-intensive, failing to leverage the shared mathematical structures inherent in different physical phenomena.

Researchers from the Polymathic AI Collaboration have introduced Multiple Physics Pretraining (MPP), a framework designed to create a "generalist" foundation model for physics. By training on diverse physical systems simultaneously, the MPP model learns the underlying principles of dynamics—such as advection and diffusion—allowing it to generalize to new, unseen physics with remarkable efficiency.

The Challenge of Generalist Physical Models

The primary hurdle in building a generalist surrogate model is the heterogeneity of physical data. Different systems operate at vastly different spatial and temporal scales and involve varying numbers of state variables. For instance, a fluid dynamics simulation might track velocity and pressure, while a reaction-diffusion system tracks chemical concentrations.

Standard architectures are typically hard-coded for a specific number of input channels and a fixed scale. To overcome this, the authors developed a flexible backbone capable of ingesting multiple heterogeneous datasets, treating physics as a compositional language where complex behaviors are built from simpler, shared components.

Methodology

The MPP framework is built upon several key architectural innovations designed for scalability and flexibility:

1. Axial Vision Transformer (AViT)

Simulating 3D spatiotemporal data (2D space + 1D time) is computationally taxing. To address this, the model employs Axial Attention. Instead of computing attention across all points in a 3D volume simultaneously, the model performs attention sequentially along the x-axis, y-axis, and time axis. This decomposition significantly reduces memory requirements and allows the model to scale to larger, more complex simulations.

2. Shared Embedding and Normalization

To handle the diverse scales of different physical quantities, the framework utilizes Reversible Instance Normalization (RevIN). This technique standardizes data before it enters the transformer backbone and reverses the process at the output, ensuring that the model can process variables with wildly different magnitudes within a single shared latent space.

3. Flexible Input Layers

The model uses 1x1 convolutional filters to project various physical fields into a unified embedding space. This modular design allows researchers to add new variables (e.g., adding a temperature field to a velocity-only model) by simply adding a new input channel while keeping the massive pretrained transformer backbone intact.

4. Autoregressive Training

Following the success of Large Language Models (LLMs), the MPP model is trained with an autoregressive objective. It learns to predict the next state of a physical system based on its preceding history, effectively learning the "grammar" of physical evolution.

Experimental Insights

The researchers evaluated the model using PDEBench, a comprehensive suite of physical simulations including Shallow Water Equations (SWE), Diffusion-Reaction systems, and both Compressible and Incompressible Navier-Stokes (CNS/INS) equations.

Physics as a Compositional Language

A central hypothesis of the study was that complex Partial Differential Equations (PDEs) are combinations of simpler terms. The experiments confirmed this: a model pretrained on separate advection and diffusion tasks outperformed a model trained from scratch on a combined advection-diffusion task. This suggests that the model successfully learns the "building blocks" of physics.

Scaling and Generalization

The study observed clear scaling laws: larger models (up to 409M parameters) showed consistent performance improvements. Crucially, the "generalist" model's performance on specific tasks actually improved as it was exposed to a wider variety of physical systems, demonstrating a positive transfer of knowledge across domains.

2D to 3D "Inflation"

Generating 3D simulation data is extremely costly. The authors demonstrated a "kernel inflation" technique, where a model pretrained on 2D fluid data is adapted to 3D space. This approach achieved a 4.1% to 11.7% improvement in accuracy over models trained solely on 3D data, providing a viable path for developing high-fidelity 3D emulators with limited data.

Results and Performance

  • Zero-Shot Capabilities: The MPP-pretrained transformer matched or exceeded the performance of specialized baselines—such as UNets and Fourier Neural Operators—on all pretraining tasks without requiring any fine-tuning.
  • Data Efficiency: When transitioning to entirely new physics (e.g., moving from incompressible to compressible fluids), the MPP model reached high accuracy with significantly fewer samples than scratch-trained models or general video-based models like VideoMAE.

Limitations and Future Work

While MPP represents a significant leap toward a foundation model for the physical sciences, several challenges remain:

  • Geometric Constraints: The current model is optimized for regular, rectangular grids. Future iterations must address irregular geometries and unstructured meshes common in engineering applications.
  • Domain Diversity: The current training data is largely fluid-centric. Expanding the model to include solid mechanics, electromagnetics, and quantum dynamics is essential for true generality.
  • Physical Consistency: As the model learns purely from data, it does not inherently respect conservation laws (e.g., mass or energy). Integrating "hard" physical constraints into the transformer architecture is a primary goal for future research.

Conclusion

Multiple Physics Pretraining demonstrates that the "foundation model" paradigm is not only applicable to language and vision but is also a powerful tool for the physical sciences. By learning the shared language of dynamics, MPP provides a scalable, efficient, and highly adaptable framework for the next generation of physical surrogate models.

Summary updated

BibTeX
@inproceedings{mccabe2023multiple,
  author = {Michael McCabe and Bruno Régaldo-Saint Blancard and Liam Holden Parker and Ruben Ohana and Miles D. Cranmer and Alberto Bietti and Michael Eickenberg and Siavash Golkar and Géraud Krawezik and François Lanusse and Mariel Pettee and Tiberiu Tesileanu and Kyunghyun Cho and Shirley Ho},
  title = {{Multiple Physics Pretraining for Physical Surrogate Models}},
  booktitle = {AI4Science @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=M12lmQKuxa},
}
Figure