NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SEA: State-Exchange Attention for High-Fidelity Physics Based Transformers

Parsa Esmati, Amirhossein Dadashzadeh, Vahid Goodarzi, Nicolas Larrosa, Nicolò Grilli

TL;DR

This paper introduces the State-Exchange Attention (SEA) module and a Vision Transformer (ViT)-like mesh autoencoder designed to drastically reduce rollout errors in physics-based machine learning models. By enabling explicit, multidirectional cross-attention between different physical fields (like velocity and pressure), the architecture allows state variables to mutually correct each other, yielding up to a 91% reduction in long-term prediction errors compared to current state-of-the-art models.

What Problem Does This Paper Address?

Numerical simulations for solving Partial Differential Equations (PDEs)—such as fluid dynamics or material deformation—are notoriously slow, often taking days or weeks to compute on fine meshes. While deep learning models (especially Transformers) show great promise as fast surrogate solvers, they suffer from a fatal flaw: rollout error accumulation.

Because these models predict the next time step autoregressively (using their own past predictions), small errors compound rapidly over time, leading to highly inaccurate long-term forecasts. A major reason for this is that standard architectures fail to explicitly capture the complex physical couplings and symmetries between different state variables (e.g., how velocity directly dictates fluid interface movement).

Methods

The authors tackle this challenge with a two-part framework:

  1. ViT Mesh Autoencoder: To handle irregular, unstructured simulation meshes without the heavy computational overhead of Graph Neural Networks (GNNs), the authors adapted a Vision Transformer approach. The mesh domain is divided into patches, padded to ensure uniform size, and passed through a Multi-Layer Perceptron (MLP) and Multi-Head Self-Attention (MHSA) mechanism to create spatially coherent embeddings.
  2. State-Exchange Attention (SEA) Module: Instead of cramming all physical variables into a single latent space, the framework assigns an "expert decoder" to each field group (e.g., one for velocity, one for pressure). The SEA module then uses multi-head cross-attention to allow these fields to continuously exchange information. To keep the model scalable, a low-dimensional bottleneck mechanism (down- and up-projection) is used during this exchange.

Additionally, the authors introduce the Time Invariant Parameter Injection (TIPI) module, which directly injects constant physical parameters (like the Reynolds number) into the network via an MLP and adaptive layer normalization, bypassing more computationally expensive attention-based conditioning methods.

Figure 1: The ViT-based mesh autoencoder divides the domain into patches and pads them to ensure equal sizes. An MLP is then applied to reduce the dimensionality, and the MHSA mechanism provides global awareness to create spatially coherent reconstructions with minimal patch artifacts. These patches are subsequently flattened and adapted as tokens for the temporal model.
Figure 2: (a) State-Exchange Attention (SEA) integrated Transformer model architecture, incorpo- rating the additional modules of SEA and Time Invariant Parameter Injection (TIPI). Dashed lines represent the inclusion of additional fields. (b) Representation of the TIPI, designed to incorporate time-invariant information after the SEA module. (c) Schematic of the SEA module, illustrating how fields communicate through this module.

Datasets

The framework was evaluated on two fluid mechanics datasets simulated using the open-source finite volume solver, OpenFOAM:

  • 2D Cylinder Flow: A standard fluid dynamics benchmark tracking velocity components ($u, v$) and pressure ($p$) governed by the Navier-Stokes equations. The authors generated 70 trajectories across various Reynolds numbers.
  • Multiphase Flow: A simulation depicting the immiscible collapse of two liquid blocks due to a density differential. This tracks velocity alongside a volume fraction variable ($\alpha$) to locate the fluid interface. 40 trajectories were generated for this case.

Key Insights and Ideas

  • Separation of Concerns Beats Fusion: A common approach in physics-ML is "Field Fusion," where all variables are encoded together. This paper proves that keeping embedding spaces separate and introducing a dedicated communication channel (SEA) yields much lower distortion and better generalization.
  • Physics-Driven Self-Correction: The cross-attention mechanism acts as an implicit physics corrector. For instance, in multiphase flow, the volume fraction ($\alpha$) is highly dependent on velocity. The SEA module allows the velocity field to actively correct errors in the volume fraction field during long rollouts.

Key Results

The SEA-integrated Transformer achieved state-of-the-art performance across the board:

  • Cylinder Flow: The model reduced the average rollout error by 88% compared to the PbGMR-GMUS Transformer-RealNVP baseline, and by 91% compared to the standard GMR-GMUS Transformer.
  • Multiphase Flow: For highly coupled variables like the volume fraction ($\alpha$), the SEA module alone reduced prediction errors by 97% compared to Field Fusion models, demonstrating exceptional fluid interface tracking over long time horizons.
Figure 3: Comparison of the rollout error for the cylinder flow dataset.

Limitations and Future Work

The primary limitation of the SEA module is its scaling complexity. Because it initializes a separate transformer block for each field group, systems with a massive number of state variables—such as multiphase flows with many distinct phases or complex material grain growths—would require too many parallel transformers, leading to computational inefficiencies.

For future work, the authors plan to optimize the scaling architecture to handle more state variables and explore integrating the SEA module with probabilistic frameworks like diffusion models.

Summary updated

BibTeX
@inproceedings{esmati2024sea,
  author = {Parsa Esmati and Amirhossein Dadashzadeh and Vahid Goodarzi and Nicolas Larrosa and Nicolò Grilli},
  title = {{SEA: State-Exchange Attention for High-Fidelity Physics Based Transformers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=3gvGZhkkVt},
}
Figure