Towards a Foundation Model for Partial Differential Equations: Multi-Operator Learning and Extrapolation

Jingmin Sun, Yuxuan Liu, Zecheng Zhang, Hayden SchaefferarXiv 2024 · DOI

Abstract

We present PROSE-PDE (Predicting Operators and Symbolic Expressions for PDEs), a multi-modal foundation model designed to simultaneously solve forward and inverse problems in partial differential equations. By integrating numerical spatiotemporal data with symbolic mathematical expressions, PROSE-PDE addresses the challenges of multi-operator learning and demonstrates robust extrapolation to unseen physical phenomena. Our model achieves state-of-the-art performance across 20 distinct PDE classes, maintaining high accuracy where traditional single-operator models fail.

Introduction

In scientific computing, researchers typically face two distinct challenges: the forward problem (predicting future states from known equations) and the inverse problem (identifying governing equations from data). Traditional machine learning approaches, such as Fourier Neural Operators (FNO), are often "single-operator," meaning they are specialized for one specific equation.

The challenge lies in Multi-Operator Learning (MOL). Training a single model on diverse physical systems (e.g., heat diffusion vs. wave propagation) often leads to ambiguity because different physical systems can exhibit similar initial states, creating a well-posedness issue. Furthermore, most models struggle with extrapolation—failing when encountering new physical parameters or phenomena like shock waves that were not present in the training set.

The PROSE-PDE Framework

PROSE-PDE adopts a "bi-modality to bi-modality" approach, leveraging both numerical data and symbolic "guesses" to resolve physical ambiguities. This allows the model to function as a foundation model capable of handling a wide variety of physical regimes.

The PROSE-PDE Network architecture: A multi-modal transformer that fuses data and symbolic encoders to produce spatiotemporal predictions and refined symbolic expressions.

The architecture comprises five core components:

  • Data Encoder: Extracts features from numerical snapshots of the physical system.
  • Symbol Encoder: Processes symbolic equation skeletons or guesses.
  • Feature Fusion: A central mechanism where numerical and symbolic features interact, allowing the symbolic modality to "anchor" the data interpretation and resolve ambiguity.
  • Data Decoder: Generates future state predictions (solving the forward problem).
  • Symbol Decoder: An autoregressive component that completes or corrects governing equations (solving the inverse problem).

Symbolic Representation and Encoding

A key innovation in PROSE-PDE is the representation of equations as mathematical trees, which are then serialized using Polish (prefix) notation. This approach avoids the complexities of nested parentheses and allows the transformer to interpret mathematical structures as clear sequential tokens.

Mathematical tree representation used to encode PDEs into Polish notation for the symbolic transformer.

This representation enables the model to handle "skeleton" inputs—equations with unknown coefficients (e.g., $u_t + [?]u u_x = [?]u_{xx}$). In these cases, the model must infer the missing physics from the numerical data while simultaneously predicting the system's evolution.

Experimental Setup and Results

The model was trained on a comprehensive dataset of 512,000 systems spanning 20 PDE classes, including linear/nonlinear diffusion, wave/dispersive equations (KdV, Sine-Gordon), and conservation laws (Burgers', Advection).

Key Insights

  • Symbols as Anchors: The symbolic modality acts as a critical identifier in MOL. It resolves the inherent ambiguity when different physical systems present similar initial states, effectively instructing the model on which physical laws to apply.
  • Extrapolation of Physical Features (EPF): By training on a diverse set of operators, the model learns the underlying "grammar" of physics. For instance, after learning about shock waves in one context, it can successfully predict rarefaction waves in a completely different equation that was excluded from the training set.
  • Self-Correction: The autoregressive Symbol Decoder allows the model to take a noisy or incomplete equation guess and "fix" it based on the observed numerical data.

Performance Metrics

PROSE-PDE achieved a relative $L^2$ error of just 1.06% and an $R^2$ score of 0.998 in skeleton-based tasks. While baselines like FNO and DeepONet struggled with errors exceeding 30% in multi-operator settings where only initial states were provided, PROSE-PDE maintained errors near 1% by utilizing symbolic cues. The model also demonstrated strong zero-shot generalization to unseen timestamps and out-of-distribution physical parameters.

Conclusion

PROSE-PDE represents a significant step toward a foundation model for physical systems. By fusing data with symbolic logic, it overcomes the limitations of single-operator models and exhibits strong generalization to unseen physics. Future work will focus on extending the framework to higher dimensions and handling spatially or temporally varying coefficients.

Summary updated

BibTeX
@misc{sun2024towards,
  author = {Jingmin Sun and Yuxuan Liu and Zecheng Zhang and Hayden Schaeffer},
  title = {{Towards a Foundation Model for Partial Differential Equations: Multi-Operator Learning and Extrapolation}},
  year = {2024},
  eprint = {2404.12355},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.12355},
}
Figure