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

Spatiotemporal Field Generation Based on Hybrid Mamba-Transformer with Physics-informed Fine-tuning

Peimian Du, Jiabin Liu, Xiaowei Jin, Wangmeng Zuo, Hui LiarXiv 2025 · DOI

Abstract

Generating accurate spatiotemporal physical fields is a cornerstone of computational physics and engineering. While deep learning models offer significant speedups over traditional solvers, they often struggle with physical consistency and irregular geometries. We introduce the Hybrid Mamba-Transformer for Physical Fields (HMT-PF), an architecture that combines the temporal efficiency of Mamba with the spatial flexibility of Transformers. HMT-PF incorporates a physics-informed fine-tuning stage that enforces governing partial differential equations (PDEs) through residual-based latent correction. Our results across five diverse datasets demonstrate that HMT-PF achieves state-of-the-art accuracy and superior physical reliability, particularly in data-sparse environments.

Introduction

The simulation of time-evolving physical fields—such as fluid flow, acoustics, and structural mechanics—typically relies on solving complex partial differential equations (PDEs). While numerical methods like Finite Element Analysis (FEA) are the gold standard for accuracy, their computational cost is prohibitive for real-time applications or large-scale design optimization. Machine learning surrogates have emerged as a promising alternative, yet they face two primary hurdles: the "hallucination" of physically impossible solutions and the difficulty of handling unstructured grids common in real-world engineering.

Methods

The HMT-PF architecture is designed to handle unstructured spatiotemporal data while maintaining physical rigor. The framework operates in two distinct phases: a hybrid backbone for data-driven learning and a physics-informed fine-tuning block for refinement.

Hybrid Mamba-Transformer Backbone

The model utilizes an encoder with Galerkin attention to process irregular point clouds, allowing it to handle complex geometries like airfoils or car bodies. Temporal dynamics are captured by a Mamba block, which leverages a selective state space mechanism to handle long-range dependencies more efficiently than standard Transformers. Finally, a cross-attention decoder acts as a continuous operator, enabling the model to predict physical properties at any arbitrary spatial coordinate.

The HMT-PF framework: The architecture integrates unstructured grid processing, Mamba-based temporal modeling, and a physics-informed fine-tuning block for residual correction.

Physics-Informed Fine-Tuning

To ensure adherence to physical laws, the model undergoes a self-supervised fine-tuning stage. It calculates the residuals of the governing PDEs (e.g., Navier-Stokes) using finite differences on the predicted fields. These residuals are encoded and used to apply a vector correction to the latent space, pushing the model's output toward physical consistency without requiring additional ground-truth data.

Experimental Results

HMT-PF was evaluated on five diverse benchmarks, including 2D airfoil flow, 3D aneurysm dynamics, and acoustic wave propagation. The model consistently outperformed state-of-the-art baselines such as GEO-FNO and Transolver.

Example of a generated physical field around an airfoil geometry, demonstrating the model's ability to capture complex flow features.

Key findings include:

  • State-of-the-Art Accuracy: HMT-PF achieved an MSE of 0.4432 on the Airfoil dataset, significantly lower than competing models.
  • Physical Consistency: The fine-tuning process reduced equation residuals by orders of magnitude (e.g., from $10^{-1}$ to $10^{-5}$), ensuring the generated flows are physically plausible.
  • Robustness to Sparse Data: In scenarios with only 10% of training data, physics-informed fine-tuning improved global prediction accuracy by approximately 13%.

Discussion and Conclusion

The synergy between Mamba and Transformers allows HMT-PF to maintain spatial precision while avoiding the error accumulation common in long-term temporal predictions. By treating the model as a continuous operator, researchers can calculate spatial derivatives at any point, facilitating the enforcement of physical laws. While scaling to high-resolution 3D turbulent flows remains a challenge, HMT-PF represents a significant advancement in reliable, physics-consistent machine learning for engineering simulations.

Summary updated

BibTeX
@misc{du2025spatiotemporal,
  author = {Peimian Du and Jiabin Liu and Xiaowei Jin and Wangmeng Zuo and Hui Li},
  title = {{Spatiotemporal Field Generation Based on Hybrid Mamba-Transformer with Physics-informed Fine-tuning}},
  year = {2025},
  eprint = {2505.11578},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.11578},
}
Figure