Skip to main content
QUICK REVIEW

[论文解读] Scalable Transformer for PDE Surrogate Modeling

Zijie Li, Dule Shu|arXiv (Cornell University)|May 27, 2023
Model Reduction and Neural NetworksPhysics and Astronomy被引用 20
一句话总结

本文提出 FactFormer,一种可扩展的轴向分解 Transformer 用于 PDE 代理建模,在高维网格(2D/3D 流体问题)上在计算量减小的同时实现具有竞争力的精度。

ABSTRACT

Transformer has shown state-of-the-art performance on various applications and has recently emerged as a promising tool for surrogate modeling of partial differential equations (PDEs). Despite the introduction of linear-complexity attention, applying Transformer to problems with a large number of grid points can be numerically unstable and computationally expensive. In this work, we propose Factorized Transformer (FactFormer), which is based on an axial factorized kernel integral. Concretely, we introduce a learnable projection operator that decomposes the input function into multiple sub-functions with one-dimensional domain. These sub-functions are then evaluated and used to compute the instance-based kernel with an axial factorized scheme. We showcase that the proposed model is able to simulate 2D Kolmogorov flow on a $256 imes 256$ grid and 3D smoke buoyancy on a $64 imes64 imes64$ grid with good accuracy and efficiency. The proposed factorized scheme can serve as a computationally efficient low-rank surrogate for the full attention scheme when dealing with multi-dimensional problems.

研究动机与目标

  • 动机:用 Transformer 对 PDE 进行可扩展的代理建模,以实现高分辨率网格。
  • 提出一个分解的、无 softmax 的注意力机制,以处理多维域。
  • 开发一个可学习的投影和轴向核积分,以在保持精度的同时降低计算成本。
  • 在具有挑战性的 PDE 问题上进行评估(2D Kolmogorov 流动,3D 烟雾浮力,3D 各向同性湍流,2D Darcy 流动)。

提出的方法

  • 将注意力重写为一个可学习的核积分,基于 RoPE 的相对位置编码。
  • 引入一个可学习的投影算子,将高维输入映射到多个一维域子函数。
  • 定义一个分解的核积分,在各轴上应用核并在不同维度之间进行张量-矩阵乘积。
  • 结合潜在行进与前推(pushforward)技术进行训练,以稳定自回归时序预测。
  • 采用实例归一化和注意力后的多层感知机(MLP)进行最终更新。
Figure 1 : Model’s prediction (pred.) and reference ground truth (ref.). Left : 2D Kolmogorov flow on $256\times 256$ grid; Right : 3D smoke buoyancy on $64\times 64\times 64$ grid ( $zOy$ cross-section is shown).
Figure 1 : Model’s prediction (pred.) and reference ground truth (ref.). Left : 2D Kolmogorov flow on $256\times 256$ grid; Right : 3D smoke buoyancy on $64\times 64\times 64$ grid ( $zOy$ cross-section is shown).

实验结果

研究问题

  • RQ1分解的轴向注意力方案是否能够在高分辨率网格上提供可扩展且稳定的 PDE 代理建模?
  • RQ2FactFormer 是否在提高多维问题效率的同时,保持与最先进神经算子(FNO 变体、Dil-ResNet)相当的精度?
  • RQ3像 latent marching 和 pushforward 这样的训练策略如何影响稳定性和长期预测精度?
  • RQ4在 2D 和 3D 流体动力学基准(Kolmogorov 流、各向同性湍流、烟雾浮力、Darcy 流)上的表现如何?

主要发现

  • FactFormer 在 2D Kolmogorov 流动和 3D 烟雾浮力上实现具有竞争力的精度与良好效率。
  • 在 3D 各向同性湍流上,Dil-ResNet 在短期逐帧精度可能更优,但 FactFormer 在较长预测时域仍然高效且具有竞争力。
  • FactFormer 在不同分辨率下保持相对稳定的性能,与某些误差随离散化提高而增加的基于 CNN 的模型不同。
  • 与自回归训练相比,使用 latent marching 和 pushforward 训练可提升稳定性并降低 rollout 误差。
  • 总体而言,FactFormer 相对于 FNO 变体和 Dil-ResNet,在精度、推理时间和参数数量之间提供更有利的权衡。
Figure 2 : Schematic of the factorized kernel attention. Upper path : the input is transformed into the Value via a linear transformation. Lower path : the input is first projected into multiple sub-functions with a one-dimensional domain. These sub-functions are then used to derive the Query and Ke
Figure 2 : Schematic of the factorized kernel attention. Upper path : the input is transformed into the Value via a linear transformation. Lower path : the input is first projected into multiple sub-functions with a one-dimensional domain. These sub-functions are then used to derive the Query and Ke

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。