Physics-informed Temporal Alignment for Auto-regressive PDE Foundation Models

Congcong Zhu, Xiaoyan Xu, Jiayue Han, Jingrun Chen

Introduction

Foundation models for Partial Differential Equations (PDEs) are revolutionizing scientific machine learning by providing surrogate solvers that operate orders of magnitude faster than traditional numerical methods. These models are typically trained auto-regressively, predicting the next state of a physical system based on a sequence of previous frames. However, a significant hurdle remains: the "shortcut problem." Because the temporal evolution between consecutive steps in many physical simulations is incremental, neural networks often learn to simply duplicate the previous frame to minimize training loss. While this strategy yields low short-term error, it prevents the model from learning the underlying physical dynamics, leading to catastrophic error accumulation and "drift" during long-term inference or when encountering out-of-distribution (OOD) scenarios.

To address this, we present Physics-informed Temporal Alignment (PITA), a self-supervised framework designed to prevent auto-regressive models from adopting these "lazy" habits. PITA discovers the underlying physical laws on the fly and enforces consistency between the predicted dynamics and the actual physical evolution of the system.

The Shortcut Problem: "Mendacious" Predictions

The core issue in auto-regressive PDE modeling is that the model often prioritizes identity mapping over physical evolution. By analyzing Structural Similarity (SSIM) metrics, research shows that in standard models, a predicted frame eventually becomes more similar to the previous prediction than to the ground truth. This confirms that the model is "copying" rather than "evolving" the state. This lack of physical grounding results in unphysical artifacts and a failure to generalize to new physical parameters or unseen geometries.

The PITA Framework

PITA treats the training process as a simultaneous discovery and alignment task. Unlike traditional physics-informed neural networks (PINNs) that require pre-defined governing equations, PITA infers the physics directly from the data.

1. Governing Equation Discovery

PITA utilizes sparse regression—specifically the STRidge (Sequentially Thresholded Ridge regression) algorithm—to identify the underlying PDE. It constructs a candidate library of potential physical terms (e.g., advection terms like $u u_x$ or diffusion terms like $\nabla^2 u$) and determines which combination best describes the observed trajectory.

2. Temporal Alignment and Consistency

The "secret sauce" of PITA is the enforcement of physical consistency across time. The framework discovers the physical laws for both the ground-truth sequence and the model's predicted sequence. It then introduces a Consistency Loss, which requires the discovered coefficients of the predicted trajectory to align with those of the ground truth. This ensures that the model's internal representation of the physics remains stable over time.

3. Multi-component Optimization

The total loss function in PITA balances three critical objectives:

  • Data Loss: Standard grid-wise accuracy (e.g., MSE) to ensure the predictions match the target values.
  • Physics Loss: A penalty ensuring the predictions satisfy the discovered PDE terms.
  • Consistency Loss: A penalty ensuring the "physics" of the prediction matches the "physics" of reality.

To manage the complexity of optimizing both the neural network weights and the sparse coefficients of the PDE, PITA employs Alternating Direction Optimization (ADO). This strategy ensures stable convergence by alternating updates between the model parameters and the discovered physical coefficients.

Experimental Results

PITA was evaluated across 12 diverse datasets, including 2D Navier-Stokes (FNO-NS), the Shallow-Water Equations (PDEBench), and fluid dynamics on irregular geometries (CFDBench).

Long-term Accuracy and Generalization

PITA demonstrated a significant reduction in total accumulated error, averaging a 30.22% improvement over long trajectories compared to standard auto-regressive finetuning. Its ability to generalize was particularly evident when tested on the viscous Burgers' equation—a system not present in the pretraining data—where PITA achieved an average error reduction of 37.8%.

Robustness to Noise and Sparsity

The framework proved highly resilient to data imperfections. Even when 25% of the input data was masked or significant noise was introduced, PITA maintained high performance. The discovery module allows the model to "reconstruct" missing physical information by identifying the underlying governing laws, effectively acting as a regularizer against noise.

Discussion and Limitations

While PITA significantly improves model reliability, it introduces a computational overhead of approximately 20-40% additional training time due to the library construction and gradient propagation requirements. Furthermore, the success of the discovery phase is dependent on the candidate library; if the underlying physics involves highly exotic or non-polynomial terms not present in the library, the alignment may be less effective.

Conclusion

PITA represents a shift toward truly autonomous PDE foundation models. By moving away from hard-coded physics and instead discovering and aligning physical laws during training, PITA prevents models from taking numerical shortcuts. This results in surrogate solvers that are not only fast but also physically consistent and robust across diverse scientific domains.

Summary updated

BibTeX
@inproceedings{zhu2025physics,
  author = {Congcong Zhu and Xiaoyan Xu and Jiayue Han and Jingrun Chen},
  title = {{Physics-informed Temporal Alignment for Auto-regressive PDE Foundation Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=OKDN1Hg3im},
}
Figure