Introduction
Neural operators, such as the Fourier Neural Operator (FNO), have emerged as powerful surrogate models for solving Partial Differential Equations (PDEs), offering significant speedups over traditional numerical solvers. However, these models typically struggle with generalization; they are often "specialists" trained on specific equations and coefficients. When faced with variations in diffusion rates or shifts between different physical systems (e.g., from Heat to Burgers' equations), performance often degrades.
The core challenges in building "generalist" neural operators include the mathematical unboundedness of differential operators, sensitivity to the magnitude of physical coefficients, and the inherent overlap between different physical systems. Physics Informed Contrastive Learning (PICL) addresses these issues by enabling models to learn shared physical representations across diverse systems, leading to substantial improvements in long-term simulation accuracy.
Methodology
The PICL framework employs a two-stage process: Contrastive Pretraining followed by Fine-tuning. The pretraining phase is designed to organize the model's latent space according to physical principles.
Two novel components drive this process:
- Magnitude-Aware Cosine Similarity: Standard similarity metrics often ignore the scale of coefficients. PICL introduces a metric that accounts for both the "angle" and the magnitude of equation parameters, ensuring the model distinguishes between systems with different physical intensities (e.g., weak vs. strong diffusion).
- Physics-Informed Distance Metric ($d_{physics}$): To anchor the latent representations in physical reality, the model calculates distances based on how input data evolves over time. By incorporating a low-order finite-difference scheme, the framework ensures that the learned embeddings respect the underlying governing equations.
The model is trained using a Generalized Contrastive Loss (GCL), which pulls representations of physically similar systems together while pushing dissimilar ones apart in the embedding space.
Experimental Setup
The researchers evaluated PICL on 1D and 2D versions of three fundamental PDEs: the Heat Equation (linear diffusion), the Linear Advection Equation (linear transport), and the Burgers’ Equation (non-linear advection and diffusion). Datasets were generated by sampling a wide range of coefficients ($\alpha, \beta, \gamma$) and initial conditions. For 2D benchmarks, the models were tested on $64 \times 64$ grids using both existing datasets and new finite-difference generations.
Results and Discussion
The most significant performance gains were observed in long-term "autoregressive rollout" tasks. In these scenarios, where the model must predict many steps into the future, PICL-pretrained models achieved up to a two-order-of-magnitude improvement in accuracy compared to standard FNO baselines.
Key insights from the study include:
- Physical Intuition in Latent Space: Visualizations of the learned embeddings revealed that PICL naturally groups physically similar systems. For instance, diffusion-dominated Burgers' equations were clustered near Heat equations, suggesting the model learns the underlying physical "DNA" rather than just memorizing labels.
- Robustness and Stability: The framework proved resilient even when the numerical schemes used for physics-informed anchoring were technically unstable. This suggests that the contrastive approach effectively captures the essential dynamics of the system.
- Generalization: PICL demonstrated superior performance when trained on "Combined" datasets containing multiple equation types, proving its ability to navigate multi-system learning without confusion.
Conclusion and Future Work
PICL represents a significant step toward generalist neural operators for scientific machine learning. While the current framework requires prior knowledge of governing equations and involves additional pretraining costs, it offers a robust path for cross-system generalization. Future research will focus on scaling the framework to 3D systems and incorporating complex external forcing terms, such as wind or heat sources, which present new challenges for magnitude-aware distance functions.
Summary updated