arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.27929cs.LGcs.AI
收藏

物理引导的Transformer(PGT):用于PINNs的物理感知注意力机制

Physics-Guided Transformer (PGT): Physics-Aware Attention Mechanism for PINNs

Texas State University(德克萨斯州立大学)

Ehsan Zeraatkar, Rodion Podorozhny, Jelena Tešić

AI总结:

本文提出PGT,通过将物理结构直接嵌入自注意力机制,提升PINNs在稀疏数据下的稳定性与物理一致性,实验显示其在热方程和纳维-斯托克斯方程中表现优异。

摘要:

从稀疏、不规则观测中重建连续物理场是科学机器学习中的核心挑战,尤其对于由偏微分方程(PDEs)支配的系统。现有物理引导方法通常在优化过程中将控制方程作为软惩罚项,导致梯度失衡、不稳定和物理一致性下降。我们引入物理引导的Transformer(PGT),一种将物理结构直接嵌入自注意力机制的神经架构。具体而言,PGT在注意力logits中引入基于热核的加性偏差,编码扩散动力学和时间因果性。查询坐标关注这些物理条件化的上下文标记,生成的特征通过FiLM调节的正弦隐式网络解码,该网络可自适应控制频谱响应。我们评估了PGT在一维热方程和二维不可压缩纳维-斯托克斯系统上的表现。在稀疏1D重建中,PGT在100个观测下达到相对L2误差5.9e-3,显著优于PINNs和正弦表示。在二维圆柱涡旋问题中,PGT实现了低PDE残差(8.3e-4)和竞争性相对误差(0.034),优于仅优化单一目标的方法。这些结果表明,在数据稀少条件下,将物理嵌入注意力可以提升稳定性、泛化能力和物理保真度。

英文摘要:

Reconstructing continuous physical fields from sparse, irregular observations is a central challenge in scientific machine learning, particularly for systems governed by partial differential equations (PDEs). Existing physics-informed methods typically enforce governing equations as soft penalty terms during optimization, often leading to gradient imbalance, instability, and degraded physical consistency under limited data. We introduce the Physics-Guided Transformer (PGT), a neural architecture that embeds physical structure directly into the self-attention mechanism. Specifically, PGT incorporates a heat-kernel-derived additive bias into attention logits, encoding diffusion dynamics and temporal causality within the representation. Query coordinates attend to these physics-conditioned context tokens, and the resulting features are decoded using a FiLM-modulated sinusoidal implicit network that adaptively controls spectral response. We evaluate PGT on the one-dimensional heat equation and two-dimensional incompressible Navier-Stokes systems. In sparse 1D reconstruction with 100 observations, PGT achieves a relative L2 error of 5.9e-3, significantly outperforming both PINNs and sinusoidal representations. In the 2D cylinder wake problem, PGT uniquely achieves both low PDE residual (8.3e-4) and competitive relative error (0.034), outperforming methods that optimize only one objective. These results demonstrate that embedding physics within attention improves stability, generalization, and physical fidelity under data-scarce conditions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑