Positional Knowledge is All You Need: Position-induced Transformer (PiT) for Operator Learning

Junfeng Chen, Kailiang Wu

Partial Differential Equations (PDEs) are the fundamental language of physics, but solving them using traditional numerical methods is computationally expensive. Recently, "operator learners"—such as Fourier Neural Operators (FNOs) or DeepONets—have emerged as fast AI surrogates capable of mapping between infinite-dimensional function spaces, like predicting future states from initial conditions.

While Transformers have been adapted for this task, standard self-attention (the engine behind Large Language Models) calculates interactions based on the values of the input data. In the context of physics, this content-based attention is often redundant. It leads to high memory costs ($O(N^2)$ complexity) and poor discretization convergence—meaning the model struggles to provide consistent results when moved from a coarse training mesh to a fine testing mesh.

This raises a critical question: Is self-attention actually necessary for learning physical operators?

The Position-induced Transformer (PiT)

To address these inefficiencies, researchers introduce the Position-induced Transformer (PiT), which shifts the focus from what the values are to where they are located.

PiT Architecture

PiT reimagines operator learning through a few core innovations:

  • Position-attention: Instead of the standard $Softmax(QK^T)$ mechanism, PiT uses a kernel induced purely by the pairwise distances between sampling points: $Softmax(-\lambda D)$, where $D$ is a distance matrix and $\lambda$ is a learnable parameter. This effectively treats attention as a global linear convolution, removing the need to compute attention weights from function values.
  • Cross Position-attention: Used in the Encoder and Decoder, this variant performs learnable downsampling and upsampling. It allows the model to project high-resolution input data onto a coarser "latent mesh" where the heavy computational lifting occurs efficiently.
  • Local Position-attention: To handle hyperbolic PDEs or convection-dominated flows where local features are paramount, this variant restricts the "receptive field" to a specific neighborhood.
  • Architecture: PiT utilizes a classic Encoder-Processor-Decoder pipeline. The Processor consists of stacked global position-attention modules operating on the latent mesh, ensuring computational costs scale linearly with the number of input/output points.

Key Insights and Mesh Invariance

The most striking finding of PiT is that positional knowledge is sufficient. The spatial layout of the sensors or mesh points provides enough structural information to define the operator's interaction kernel. Furthermore, position-attention is mathematically inspired by classical numerical schemes (like upwind schemes), making the model highly interpretable. For instance, the learnable $\lambda$ parameter directly relates to the physical "domain of dependence."

Mesh Invariance

Because the attention mechanism is defined over continuous spatial relations, PiT exhibits excellent discretization convergence (true mesh invariance). It can be trained on a tiny, coarse mesh (e.g., $43^2$) and still provide accurate, convergent predictions on a massive, fine mesh (e.g., $421^2$)—a feat where many other neural operators struggle.

State-of-the-Art Results

The authors evaluated PiT against nine strong baselines across six diverse PDE benchmarks, including InviscidBurgers, ShockTube, Darcy2D, Vorticity, Elasticity, and NACA airfoils.

  • Superior Accuracy & Convergence: PiT outperformed all baselines, including FNO, DeepONet, OFormer, and GNOT. In the Darcy2D benchmark, PiT's prediction error was 48% lower than the widely-used FNO++ when performing zero-shot super-resolution (testing on finer meshes than it was trained on).
  • Extreme Parameter Efficiency: On the Darcy2D task, a PiT model with only 20,000 parameters achieved lower error than competing methods using over 2,000,000 parameters.
  • Speed: Training time scales sub-linearly with mesh resolution, making PiT highly viable for large-scale engineering applications.

Limitations and Future Directions

While PiT's complexity is linear relative to the number of points ($N$), scaling to high-dimensional PDEs (e.g., 6D or higher) remains a challenge. The number of points required to resolve these spaces grows exponentially, meaning the latent mesh might need to be prohibitively large.

Future work will explore sparse approximations, low-rank matrix techniques, or "Softmax-free" variants to further reduce the computational footprint for massive, high-dimensional datasets. Researchers also aim to integrate more explicit physical constraints directly into the position-attention kernel, paving the way for even more robust physics-informed AI.

Summary updated

BibTeX
@inproceedings{chen2024positional,
  author = {Junfeng CHEN and Kailiang Wu},
  title = {{Positional Knowledge is All You Need: Position-induced Transformer (PiT) for Operator Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=VOcsmIBiXE},
}
Figure