Transolver: A Fast Transformer Solver for PDEs on General Geometries

Haixu Wu, Huakun Luo, Haowen Wang, Jianmin Wang, Mingsheng Long

TL;DR

Transolver is a novel Transformer-based framework for solving Partial Differential Equations (PDEs) that moves beyond processing individual mesh points to learning "intrinsic physical states." By adaptively grouping mesh points into learnable, physics-aware "slices," it achieves state-of-the-art accuracy with linear computational complexity, making it both faster and more accurate than previous neural operators on complex, real-world geometries like cars and airfoils.

The Challenge of Discretization in PDEs

Solving PDEs is fundamental to engineering tasks like weather forecasting and aerodynamic design. While traditional numerical solvers are computationally expensive, deep learning "surrogate models" aim to accelerate this process. However, they face a major hurdle: discretization.

PDEs are typically solved on meshes. When these meshes become large or irregular (unstructured), standard Transformers struggle. Vanilla attention has quadratic complexity $O(N^2)$, making it impossible to run efficiently on meshes with tens of thousands of points. Furthermore, treating every mesh point as an independent token makes it difficult for the model to capture the high-level physical correlations—like shock waves or turbulence—that actually govern the system.

Enter Transolver: Physics-Attention

The core innovation of Transolver is Physics-Attention. Instead of calculating attention between every pair of mesh points, the model learns to "slice" the physical domain based on underlying physics rather than just spatial proximity.

  1. Slicing: A small, point-wise linear layer projects each mesh point into $M$ potential "slices." Points that share similar geometric and physical features are assigned higher weights for the same slice.
  2. Physics-Aware Tokens: The model aggregates all points within a slice into a single "physics-aware token." For example, if a mesh has 30,000 points ($N$) and 64 slices ($M$), the attention space is reduced from $30,000 \times 30,000$ to a highly manageable $64 \times 64$.
  3. Attention: Standard multi-head attention is performed between these $M$ tokens to capture intricate physical correlations.
  4. De-slicing: The updated token information is broadcast back to the original mesh points using the learned slice weights.

This design ensures the computation scales linearly $O(N)$ with respect to the number of mesh points. It also makes the model "geometry-general," meaning it performs well whether the data is on a regular grid, a point cloud, or an unstructured 3D mesh.

Key Insights: Physics over Geometry

The learned "slices" aren't just arbitrary spatial chunks; they represent distinct physical states. For a car, one slice might automatically learn to represent the "front-facing surfaces," while another captures the "wake flow" behind the vehicle.

Visualization of Transolver's learned slices across different geometries and physical problems. The slices adaptively capture specific physical regions, such as the pressure zones on a car or the flow around an airfoil.

Unlike traditional domain decomposition, slices can group points that are spatially distant but physically similar (e.g., the two side mirrors of a car). This allows the model to capture global correlations that local methods often miss. Furthermore, the authors prove that Physics-Attention is mathematically equivalent to a learnable integral operator, providing a solid theoretical link to traditional PDE analysis.

Datasets and Performance

The authors evaluated Transolver on a wide range of benchmarks covering different geometries and physics, including standard benchmarks (Elasticity, Plasticity, Airfoil, Pipe flow, Navier-Stokes, and Darcy flow) and large-scale industrial simulations (Shape-Net Car and AirfRANS).

Key Results: * State-of-the-Art Accuracy: Transolver achieved a 22% relative error reduction on average across six standard benchmarks compared to previous leading models like GNOT and LSM. * Efficiency at Scale: For large-scale meshes (32k+ points), Transolver is nearly 5x faster than competitive models and uses significantly less GPU memory. * Robustness: It maintains high performance even when the input mesh is randomly resampled, proving it learns the underlying physics rather than just memorizing a specific grid. * Generalization: In Out-of-Distribution (OOD) tests on airfoils, Transolver maintained a 99% correlation with ground truth even on Reynolds numbers and angles of attack it never saw during training.

Limitations and Future Work

While Transolver is highly efficient, the number of slices ($M$) is a hyperparameter that currently needs to be set manually (typically between 32 and 256). The optimal $M$ depends on the complexity of the target PDE.

Future work includes exploring large-scale pre-training, with the goal of creating a "foundation model" for PDEs that can generalize across entirely different physical domains without being retrained from scratch.

Summary updated

BibTeX
@inproceedings{wu2024transolver,
  author = {Haixu Wu and Huakun Luo and Haowen Wang and Jianmin Wang and Mingsheng Long},
  title = {{Transolver: A Fast Transformer Solver for PDEs on General Geometries}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=Ywl6pODXjB},
}
Figure