A physics-informed transformer neural operator for learning generalized solutions of initial boundary value problems

Sumanth Kumar Boya, Deepak Subramani · DOI

Abstract

Initial boundary value problems arise commonly in applications with engineering and natural systems governed by nonlinear partial differential equations (PDEs). Operator learning is an emerging field for solving these equations by using a neural network to learn a map between infinite dimensional input and output function spaces. These neural operators are trained using a combination of data (observations or simulations) and PDE-residuals (physics-loss). A major drawback of existing neural approaches is the requirement to retrain with new initial/boundary conditions, and the necessity for a large amount of simulation data for training. We develop a physics-informed transformer neural operator (named PINTO) that efficiently generalizes to unseen initial and boundary conditions, trained in a simulation-free setting using only physics loss. The main innovation lies in our new iterative kernel integral operator units, implemented using cross-attention, to transform the PDE solution's domain points into an initial/boundary condition-aware representation vector, enabling efficient learning of the solution function for new scenarios. The PINTO architecture is applied to simulate the solutions of important equations used in engineering applications: advection, Burgers, and steady and unsteady Navier-Stokes equations (three flow scenarios). For these five test cases, we show that the relative errors during testing under challenging conditions of unseen initial/boundary conditions are only one-fifth to one-third of other leading physics informed operator learning methods. Moreover, our PINTO model is able to accurately solve the advection and Burgers equations at time steps that are not included in the training collocation points.

Introduction

Solving nonlinear partial differential equations (PDEs) is fundamental to engineering and physics, yet traditional numerical methods like Finite Element Methods are computationally expensive and lack flexibility. They typically require full re-computation whenever initial or boundary conditions change. While Physics-Informed Neural Networks (PINNs) emerged as a faster alternative, they often require retraining for each new scenario. Neural Operators (such as DeepONet or FNO) can generalize across conditions but usually depend on massive pre-computed simulation datasets for training.

The Physics-Informed Transformer Neural Operator (PINTO) addresses these limitations by providing a simulation-free operator learning framework. It generalizes to unseen initial and boundary conditions (IC/BC) by training solely on physics-based losses (PDE residuals), requiring zero external simulation data.

Methodology: The PINTO Architecture

The core innovation of PINTO is the iterative kernel integral operator unit, implemented via a cross-attention mechanism. Unlike standard architectures that treat boundary conditions as fixed-size vectors, PINTO processes them as a sequence of tokens, allowing for flexible discretization.

The PINTO architecture utilizes cross-attention units to map domain query points (Q) against boundary position (K) and value (V) encodings.

As shown in the architecture diagram, the model takes a query point $X$ and encodes it. Simultaneously, discretized boundary points $X_b$ and their corresponding values $\mathcal{B}(X_b)$ are encoded into Keys (K) and Values (V). The Cross Attention Mechanism allows the query point to "attend" to the most relevant boundary information, creating a boundary-aware representation. This process is repeated across $N_x$ units, followed by dense layers and residual connections, to produce the final output solution.

Attention as a Numerical Solver

The authors provide a theoretical link between the cross-attention mechanism and classical numerical discretization. Mathematically, the attention operation mirrors schemes like Finite Difference Methods, where the solution at an interior point is derived from a weighted sum of neighboring boundary values. This grounding in numerical theory explains why PINTO can handle varying boundary discretizations during inference without architectural changes.

Experimental Evaluation

PINTO was evaluated on five challenging benchmark cases, comparing its performance against the Physics-Informed DeepONet (PI-DeepONet):

  1. 1D Advection Equation: Modeling the movement of a conserved scalar.
  2. 1D Nonlinear Burgers Equation: A standard test for turbulence and shock waves.
  3. 2D Steady Kovasznay Flow: A Navier-Stokes scenario with an analytical solution.
  4. 2D Unsteady Beltrami Flow: Testing time-varying 2D fluid dynamics.
  5. 2D Steady Lid-Driven Cavity Flow: A classic problem involving complex boundary interactions.

Results and Discussion

PINTO consistently outperformed the leading benchmark, PI-DeepONet, across all test cases, particularly when generalizing to unseen conditions.

Comparative performance of PINTO and PI-DeepONet across five test cases, showing mean relative errors for seen and unseen conditions.

As detailed in the results table, PINTO's error rates for unseen conditions are significantly lower—often by a factor of three to five. For instance, in the 1D Advection case, PINTO achieved a 2.85% error on unseen conditions compared to 11.26% for PI-DeepONet. In complex fluid dynamics scenarios like Lid-Driven Cavity Flow, PINTO maintained a 2.78% error rate, significantly outperforming the 6.08% error of the baseline.

Beyond accuracy, PINTO exhibited strong temporal extrapolation capabilities, accurately solving equations at time steps not included in the training collocation points. This suggests the model captures the underlying operator physics rather than just interpolating data.

Conclusion

PINTO represents a significant advancement in operator learning by combining the flexibility of transformers with the rigor of physics-informed training. By making domain points "boundary-aware" through cross-attention, it achieves high generalization with zero simulation data. Future work will focus on scaling to 3D geometries and addressing spectral bias to capture higher-frequency dynamics in complex turbulent flows.

Summary updated

BibTeX
@misc{boya2024physics,
  author = {Sumanth Kumar Boya and Deepak Subramani},
  title = {{A physics-informed transformer neural operator for learning generalized solutions of initial boundary value problems}},
  year = {2024},
  eprint = {2412.09009},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.09009},
}
Figure