Skip to main content
QUICK REVIEW

[Paper Review] Multiple Physics Pretraining for Physical Surrogate Models

Michael T. McCabe, Bruno Régaldo-Saint Blancard|arXiv (Cornell University)|Oct 4, 2023
Model Reduction and Neural NetworksPhysics and Astronomy16 citations
TL;DR

MPP trains a single transformer to autoregressively model dynamics across multiple heterogeneous physical systems by embedding them into a shared space, achieving competitive pretraining and superior low-data transfer performance for physics-based surrogates. Finetuning pretrained MPP models improves multi-step predictions on new physics compared to training from scratch or using video foundation models.

ABSTRACT

We introduce multiple physics pretraining (MPP), an autoregressive task-agnostic pretraining approach for physical surrogate modeling of spatiotemporal systems with transformers. In MPP, rather than training one model on a specific physical system, we train a backbone model to predict the dynamics of multiple heterogeneous physical systems simultaneously in order to learn features that are broadly useful across systems and facilitate transfer. In order to learn effectively in this setting, we introduce a shared embedding and normalization strategy that projects the fields of multiple systems into a shared embedding space. We validate the efficacy of our approach on both pretraining and downstream tasks over a broad fluid mechanics-oriented benchmark. We show that a single MPP-pretrained transformer is able to match or outperform task-specific baselines on all pretraining sub-tasks without the need for finetuning. For downstream tasks, we demonstrate that finetuning MPP-trained models results in more accurate predictions across multiple time-steps on systems with previously unseen physical components or higher dimensional systems compared to training from scratch or finetuning pretrained video foundation models. We open-source our code and model weights trained at multiple scales for reproducibility.

Motivation & Objective

  • Develop a task-agnostic pretraining framework that learns shared physics representations across heterogeneous systems.
  • Demonstrate that a single pretrained model can match or exceed task-specific baselines on multiple pretraining sub-tasks.
  • Show transfer benefits to low-data regimes and downstream tasks beyond autoregressive next-frame prediction.
  • Evaluate the usefulness of pretrained representations for inverse problems and parametric inference in fluid dynamics.
  • Release code and pretrained models to support broader adoption in the community.

Proposed method

  • Embed heterogeneous physical fields into a shared embedding space using reversible instance normalization.
  • Use an Axial ViT (AViT) transformer backbone with fully axial attention to model spatiotemporal data efficiently.
  • Train autoregressively to predict the next time step across multiple physics without task-specific finetuning.
  • Balance multi-task losses with normalized MSE to handle varying scales across systems.
  • Handle periodic boundaries with modified relative position encodings to preserve locality under wraparound conditions.
  • Utilize gradient accumulation for stochastic load-balancing across multi-resolution, multi-physics batches.

Experimental results

Research questions

  • RQ1Can large transformer models learn the dynamics of multiple physical systems simultaneously?
  • RQ2Does multiple physics pretraining provide a finetuning advantage over single-task or video-pretrained baselines for autoregressive prediction on new physics?
  • RQ3Are pretrained representations useful for downstream tasks beyond next-frame prediction (e.g., inverse problems, parameter estimation, forcing identification)?
  • RQ4How well do pretrained models transfer to low-data regimes and to systems with different physical regimes (e.g., incompressible vs compressible flows)?

Key findings

  • A single MPP-pretrained transformer matches or surpasses task-specific baselines across pretraining sub-tasks without finetuning.
  • MPP models achieve competitive or superior NRMSE across SWE, DiffRe2D, CNS M1.0, and CNS M0.1 compared to baselines of varying sizes.
  • In low-data transfer scenarios, MPP outperforms training from scratch and VideoMAE by large margins on incompressible-to-compressible transfer tasks.
  • Pretrained representations enable useful inverse problems like forcing identification in incompressible NS, with MPP reducing RMSE on forcing estimation.
  • Scaling MPP (larger AViT variants) yields further reductions in error (e.g., SWE: 0.0066 to 0.0022; DiffRe2D: 0.0168 to 0.0098; CNS M1.0: 0.0442 to 0.0208; CNS M0.1: 0.0312 to 0.0147).
  • Open-sourced code and pretrained models are provided for community experimentation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.